Commit a0f751c7084b42cbc31b4050d960874ed4a6f2b8
1 parent
799818f7
学生查询条件
Showing
1 changed file
with
9 additions
and
8 deletions
src/views/standard/setUp/student.vue
@@ -55,6 +55,7 @@ | @@ -55,6 +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 label="正常" :value="0"></el-option> | 59 | <el-option label="正常" :value="0"></el-option> |
59 | <el-option label="未分配" :value="-1"></el-option> | 60 | <el-option label="未分配" :value="-1"></el-option> |
60 | <el-option label="已毕业" :value="2"></el-option> | 61 | <el-option label="已毕业" :value="2"></el-option> |
@@ -418,7 +419,7 @@ export default { | @@ -418,7 +419,7 @@ export default { | ||
418 | }); | 419 | }); |
419 | //导入成功 | 420 | //导入成功 |
420 | this.diaUp = false; | 421 | this.diaUp = false; |
421 | - this._QueryData(3); | 422 | + this._QueryData(5); |
422 | }, | 423 | }, |
423 | //添加学生 | 424 | //添加学生 |
424 | addStu() { | 425 | addStu() { |
@@ -549,34 +550,34 @@ export default { | @@ -549,34 +550,34 @@ export default { | ||
549 | return; | 550 | return; |
550 | } | 551 | } |
551 | this.query.classId = ""; | 552 | this.query.classId = ""; |
552 | - query.status = this.query.status; | ||
553 | - query.studentName = this.query.studentName; | 553 | + this.query.status = ""; |
554 | this.query.studentCode = ""; | 554 | this.query.studentCode = ""; |
555 | this.query.grade = ""; | 555 | this.query.grade = ""; |
556 | + query.studentName = this.query.studentName; | ||
556 | } else if (type == 2) { | 557 | } else if (type == 2) { |
557 | if (!this.query.studentCode) { | 558 | if (!this.query.studentCode) { |
558 | this.$message.warning("输入学生学号~"); | 559 | this.$message.warning("输入学生学号~"); |
559 | return; | 560 | return; |
560 | } | 561 | } |
561 | this.query.classId = ""; | 562 | this.query.classId = ""; |
562 | - query.status = this.query.status; | ||
563 | - query.studentCode = this.query.studentCode; | 563 | + this.query.status = ""; |
564 | this.query.studentName = ""; | 564 | this.query.studentName = ""; |
565 | this.query.grade = ""; | 565 | this.query.grade = ""; |
566 | + query.studentCode = this.query.studentCode; | ||
566 | } else if (type == 3) { | 567 | } else if (type == 3) { |
567 | this.query.studentName = ""; | 568 | this.query.studentName = ""; |
568 | this.query.studentCode = ""; | 569 | this.query.studentCode = ""; |
569 | - this.query.status = 0; | 570 | + this.query.status = ""; |
570 | query.grade = this.query.grade; | 571 | query.grade = this.query.grade; |
571 | query.classId = this.query.classId; | 572 | query.classId = this.query.classId; |
572 | } else if (type == 4) { | 573 | } else if (type == 4) { |
573 | this.clazzDetail.stationSn = ""; | 574 | this.clazzDetail.stationSn = ""; |
575 | + this.query.studentName = ""; | ||
576 | + this.query.studentCode = ""; | ||
574 | if (this.query.status) { | 577 | if (this.query.status) { |
575 | this.query.grade = ""; | 578 | this.query.grade = ""; |
576 | this.query.classId = ""; | 579 | this.query.classId = ""; |
577 | } else { | 580 | } else { |
578 | - this.query.studentName = ""; | ||
579 | - this.query.studentCode = ""; | ||
580 | this.query.grade = this.gradeList[0]?.value; | 581 | this.query.grade = this.gradeList[0]?.value; |
581 | this.query.classId = this.classList[0]?.id; | 582 | this.query.classId = this.classList[0]?.id; |
582 | query.grade = this.query.grade; | 583 | query.grade = this.query.grade; |