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