Commit 757a21e3284a05e272738d4471a15421b2590528
1 parent
3617eaad
上传成功提示成功数量
Showing
8 changed files
with
62 additions
and
13 deletions
src/views/personal/setUp/student.vue
@@ -159,7 +159,7 @@ | @@ -159,7 +159,7 @@ | ||
159 | </el-form-item> | 159 | </el-form-item> |
160 | <el-form-item label="科目:" prop="subjectNames"> | 160 | <el-form-item label="科目:" prop="subjectNames"> |
161 | <div class="subject-box" :class="showAll ? 'active' : ''"> | 161 | <div class="subject-box" :class="showAll ? 'active' : ''"> |
162 | - <span class="showAll" @click="showAll = !showAll">{{ | 162 | + <span class="showAll" v-if="subjectList.length>6" @click="showAll = !showAll">{{ |
163 | showAll ? "收起" : "更多..." | 163 | showAll ? "收起" : "更多..." |
164 | }}</span> | 164 | }}</span> |
165 | <el-checkbox-group v-model="formClass.subjectNames"> | 165 | <el-checkbox-group v-model="formClass.subjectNames"> |
src/views/personal/test/analysis.vue
@@ -448,7 +448,7 @@ export default { | @@ -448,7 +448,7 @@ export default { | ||
448 | loading: false, | 448 | loading: false, |
449 | exportLoading: false, | 449 | exportLoading: false, |
450 | diaUp: false, | 450 | diaUp: false, |
451 | - url: "/api_html/teaching/importSubjectiveScore", | 451 | + url: "/api_html/personal/importSubjectiveScore", |
452 | id: "", | 452 | id: "", |
453 | title: "", | 453 | title: "", |
454 | score: "", | 454 | score: "", |
@@ -492,8 +492,15 @@ export default { | @@ -492,8 +492,15 @@ export default { | ||
492 | print() { | 492 | print() { |
493 | tablePrint("print-content"); | 493 | tablePrint("print-content"); |
494 | }, | 494 | }, |
495 | - upSuccess() { | 495 | + upSuccess(res) { |
496 | //导入成功 | 496 | //导入成功 |
497 | + this.$message.closeAll(); | ||
498 | + this.$message({ | ||
499 | + showClose: true, | ||
500 | + message: `成功(${res.data.success})`, | ||
501 | + type: "success", | ||
502 | + duration:5000 | ||
503 | + }); | ||
497 | this.diaUp = false; | 504 | this.diaUp = false; |
498 | this._QueryData(); | 505 | this._QueryData(); |
499 | }, | 506 | }, |
src/views/personal/test/index.vue
@@ -426,7 +426,7 @@ export default { | @@ -426,7 +426,7 @@ export default { | ||
426 | loading: false, | 426 | loading: false, |
427 | diaUp: false, | 427 | diaUp: false, |
428 | loadingDown: false, | 428 | loadingDown: false, |
429 | - url: "/api_html/teaching/importSubjectiveScore", | 429 | + url: "/api_html/personal/importSubjectiveScore", |
430 | examId: "", | 430 | examId: "", |
431 | date: "", //今天-昨天-本周 | 431 | date: "", //今天-昨天-本周 |
432 | query: { | 432 | query: { |
@@ -516,8 +516,8 @@ export default { | @@ -516,8 +516,8 @@ export default { | ||
516 | id: obj.studentId, | 516 | id: obj.studentId, |
517 | classId: this.query.classId, | 517 | classId: this.query.classId, |
518 | subjectNames: subjectNames.join(""), | 518 | subjectNames: subjectNames.join(""), |
519 | - studentName:obj.studentName, | ||
520 | - studentCode:obj.studentCode, | 519 | + studentName: obj.studentName, |
520 | + studentCode: obj.studentCode, | ||
521 | }, | 521 | }, |
522 | }); | 522 | }); |
523 | }, | 523 | }, |
@@ -614,8 +614,15 @@ export default { | @@ -614,8 +614,15 @@ export default { | ||
614 | this.page = 1; | 614 | this.page = 1; |
615 | this._QueryData(); | 615 | this._QueryData(); |
616 | }, | 616 | }, |
617 | - upSuccess() { | 617 | + upSuccess(res) { |
618 | //导入成功 | 618 | //导入成功 |
619 | + this.$message.closeAll(); | ||
620 | + this.$message({ | ||
621 | + showClose: true, | ||
622 | + message: `成功(${res.data.success})`, | ||
623 | + type: "success", | ||
624 | + duration:5000 | ||
625 | + }); | ||
619 | this.diaUp = false; | 626 | this.diaUp = false; |
620 | this._QueryData(); | 627 | this._QueryData(); |
621 | }, | 628 | }, |
@@ -722,7 +729,7 @@ export default { | @@ -722,7 +729,7 @@ export default { | ||
722 | this.loading = false; | 729 | this.loading = false; |
723 | if (status === 0) { | 730 | if (status === 0) { |
724 | this.tableData = (data?.list && [...data?.list]) || []; | 731 | this.tableData = (data?.list && [...data?.list]) || []; |
725 | - this.total = data.count; | 732 | + this.total = data?.count || 0; |
726 | } else { | 733 | } else { |
727 | this.$message.error(info); | 734 | this.$message.error(info); |
728 | } | 735 | } |
src/views/standard/setUp/account.vue
@@ -454,8 +454,15 @@ export default { | @@ -454,8 +454,15 @@ export default { | ||
454 | this.$message.error(info); | 454 | this.$message.error(info); |
455 | } | 455 | } |
456 | }, | 456 | }, |
457 | - upSuccess() { | 457 | + upSuccess(res) { |
458 | //导入成功 | 458 | //导入成功 |
459 | + this.$message.closeAll(); | ||
460 | + this.$message({ | ||
461 | + showClose: true, | ||
462 | + message: `成功(${res.data.success})`, | ||
463 | + type: "success", | ||
464 | + duration:5000 | ||
465 | + }); | ||
459 | this.diaUp = false; | 466 | this.diaUp = false; |
460 | this._QueryData(4); | 467 | this._QueryData(4); |
461 | }, | 468 | }, |
src/views/standard/setUp/school.vue
@@ -309,8 +309,15 @@ export default { | @@ -309,8 +309,15 @@ export default { | ||
309 | this._QuerySubject(); | 309 | this._QuerySubject(); |
310 | }, | 310 | }, |
311 | methods: { | 311 | methods: { |
312 | - upSuccess() { | 312 | + upSuccess(res) { |
313 | //导入成功 | 313 | //导入成功 |
314 | + this.$message.closeAll(); | ||
315 | + this.$message({ | ||
316 | + showClose: true, | ||
317 | + message: `成功(${res.data.success})`, | ||
318 | + type: "success", | ||
319 | + duration:5000 | ||
320 | + }); | ||
314 | this.diaUp = false; | 321 | this.diaUp = false; |
315 | this._QueryDataSchool(); | 322 | this._QueryDataSchool(); |
316 | this._QueryDataGrade(); | 323 | this._QueryDataGrade(); |
src/views/standard/setUp/teacher.vue
@@ -441,8 +441,15 @@ export default { | @@ -441,8 +441,15 @@ export default { | ||
441 | await this._QueryClass(); | 441 | await this._QueryClass(); |
442 | }, | 442 | }, |
443 | methods: { | 443 | methods: { |
444 | - upSuccess() { | 444 | + upSuccess(res) { |
445 | //导入成功 | 445 | //导入成功 |
446 | + this.$message.closeAll(); | ||
447 | + this.$message({ | ||
448 | + showClose: true, | ||
449 | + message: `成功(${res.data.success})`, | ||
450 | + type: "success", | ||
451 | + duration:5000 | ||
452 | + }); | ||
446 | this.diaUp = false; | 453 | this.diaUp = false; |
447 | this._QueryData(10); | 454 | this._QueryData(10); |
448 | }, | 455 | }, |
src/views/standard/test/analysis.vue
@@ -474,8 +474,15 @@ export default { | @@ -474,8 +474,15 @@ export default { | ||
474 | print() { | 474 | print() { |
475 | tablePrint("print-content"); | 475 | tablePrint("print-content"); |
476 | }, | 476 | }, |
477 | - upSuccess() { | 477 | + upSuccess(res) { |
478 | //导入成功 | 478 | //导入成功 |
479 | + this.$message.closeAll(); | ||
480 | + this.$message({ | ||
481 | + showClose: true, | ||
482 | + message: `成功(${res.data.success})`, | ||
483 | + type: "success", | ||
484 | + duration:5000 | ||
485 | + }); | ||
479 | this.diaUp = false; | 486 | this.diaUp = false; |
480 | this._QueryData(); | 487 | this._QueryData(); |
481 | }, | 488 | }, |
src/views/standard/test/index.vue
@@ -692,8 +692,15 @@ export default { | @@ -692,8 +692,15 @@ export default { | ||
692 | this.page = 1; | 692 | this.page = 1; |
693 | this._QueryData(); | 693 | this._QueryData(); |
694 | }, | 694 | }, |
695 | - upSuccess() { | 695 | + upSuccess(res) { |
696 | //导入成功 | 696 | //导入成功 |
697 | + this.$message.closeAll(); | ||
698 | + this.$message({ | ||
699 | + showClose: true, | ||
700 | + message: `成功(${res.data.success})`, | ||
701 | + type: "success", | ||
702 | + duration:5000 | ||
703 | + }); | ||
697 | this.diaUp = false; | 704 | this.diaUp = false; |
698 | this._QueryData(); | 705 | this._QueryData(); |
699 | }, | 706 | }, |