Commit 3b9f2ddbd3278f6e76b0f2e0668cd27381db274b
1 parent
a0f751c7
学生。教师筛选参数
Showing
2 changed files
with
18 additions
and
15 deletions
src/views/standard/setUp/student.vue
... | ... | @@ -55,7 +55,7 @@ |
55 | 55 | @change="_QueryData(4)" |
56 | 56 | placeholder="学生状态" |
57 | 57 | > |
58 | - <el-option disabled label="请选择" value=""></el-option> | |
58 | + <el-option disabled label="请选择" :value=9></el-option> | |
59 | 59 | <el-option label="正常" :value="0"></el-option> |
60 | 60 | <el-option label="未分配" :value="-1"></el-option> |
61 | 61 | <el-option label="已毕业" :value="2"></el-option> |
... | ... | @@ -550,24 +550,26 @@ export default { |
550 | 550 | return; |
551 | 551 | } |
552 | 552 | this.query.classId = ""; |
553 | - this.query.status = ""; | |
553 | + this.query.status = 9; | |
554 | 554 | this.query.studentCode = ""; |
555 | 555 | this.query.grade = ""; |
556 | 556 | query.studentName = this.query.studentName; |
557 | + query.status = this.query.status; | |
557 | 558 | } else if (type == 2) { |
558 | 559 | if (!this.query.studentCode) { |
559 | 560 | this.$message.warning("输入学生学号~"); |
560 | 561 | return; |
561 | 562 | } |
562 | 563 | this.query.classId = ""; |
563 | - this.query.status = ""; | |
564 | + this.query.status = 9; | |
564 | 565 | this.query.studentName = ""; |
565 | 566 | this.query.grade = ""; |
566 | 567 | query.studentCode = this.query.studentCode; |
568 | + query.status = this.query.status; | |
567 | 569 | } else if (type == 3) { |
568 | 570 | this.query.studentName = ""; |
569 | 571 | this.query.studentCode = ""; |
570 | - this.query.status = ""; | |
572 | + this.query.status = 0; | |
571 | 573 | query.grade = this.query.grade; |
572 | 574 | query.classId = this.query.classId; |
573 | 575 | } else if (type == 4) { | ... | ... |
src/views/standard/setUp/teacher.vue
... | ... | @@ -60,7 +60,7 @@ |
60 | 60 | @change="_QueryData(4)" |
61 | 61 | placeholder="选择类型" |
62 | 62 | > |
63 | - <el-option disabled label="请选择" value=""></el-option> | |
63 | + <el-option disabled label="请选择" :value=9></el-option> | |
64 | 64 | <el-option label="已分配教师" :value="0"></el-option> |
65 | 65 | <el-option label="未分配教师" :value="1"></el-option> |
66 | 66 | </el-select> |
... | ... | @@ -481,7 +481,7 @@ export default { |
481 | 481 | duration: 5000, |
482 | 482 | }); |
483 | 483 | this.diaUp = false; |
484 | - this._QueryData(10); | |
484 | + this._QueryData(5); | |
485 | 485 | }, |
486 | 486 | addRoleList() { |
487 | 487 | //添加教师角色 |
... | ... | @@ -570,7 +570,7 @@ export default { |
570 | 570 | if (res.status === 0) { |
571 | 571 | this.$message.success(res.info); |
572 | 572 | this.diaTeacher = false; |
573 | - this._QueryData(10); | |
573 | + this._QueryData(5); | |
574 | 574 | } else { |
575 | 575 | this.$message.error(res.info); |
576 | 576 | } |
... | ... | @@ -695,7 +695,7 @@ export default { |
695 | 695 | ...query, |
696 | 696 | }); |
697 | 697 | if (status === 0) { |
698 | - this._QueryData(10); | |
698 | + this._QueryData(5); | |
699 | 699 | } else { |
700 | 700 | this.$message.error(info); |
701 | 701 | } |
... | ... | @@ -740,26 +740,27 @@ export default { |
740 | 740 | query.subjectNames.length ? "" : delete query.subjectNames; |
741 | 741 | this.query.teacherName = ""; |
742 | 742 | this.query.phone = ""; |
743 | - this.query.type = ""; | |
744 | - } | |
745 | - if (type == 2) { | |
743 | + this.query.type = 0; | |
744 | + }else if (type == 2) { | |
746 | 745 | if (this.query.teacherName == "") { |
747 | 746 | this.$message.warning("请输入老师姓名"); |
748 | 747 | return; |
749 | 748 | } |
750 | - query.teacherName = this.query.teacherName; | |
751 | - this.query.type = ""; | |
749 | + this.query.type = 9; | |
752 | 750 | this.query.phone = ""; |
753 | 751 | this.query.gradeClassSub = []; |
752 | + query.teacherName = this.query.teacherName; | |
753 | + query.type = this.query.type; | |
754 | 754 | } else if (type == 3) { |
755 | 755 | if (this.query.phone == "") { |
756 | 756 | this.$message.warning("请输入老师手机"); |
757 | 757 | return; |
758 | 758 | } |
759 | - this.query.type = ""; | |
760 | - query.phone = this.query.phone; | |
759 | + this.query.type = 9; | |
761 | 760 | this.query.teacherName = ""; |
762 | 761 | this.query.gradeClassSub = []; |
762 | + query.phone = this.query.phone; | |
763 | + query.type = this.query.type; | |
763 | 764 | } else if (type == 4) { |
764 | 765 | this.query.teacherName = ""; |
765 | 766 | this.query.phone = ""; | ... | ... |