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 | 159 | </el-form-item> |
| 160 | 160 | <el-form-item label="科目:" prop="subjectNames"> |
| 161 | 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 | 163 | showAll ? "收起" : "更多..." |
| 164 | 164 | }}</span> |
| 165 | 165 | <el-checkbox-group v-model="formClass.subjectNames"> | ... | ... |
src/views/personal/test/analysis.vue
| ... | ... | @@ -448,7 +448,7 @@ export default { |
| 448 | 448 | loading: false, |
| 449 | 449 | exportLoading: false, |
| 450 | 450 | diaUp: false, |
| 451 | - url: "/api_html/teaching/importSubjectiveScore", | |
| 451 | + url: "/api_html/personal/importSubjectiveScore", | |
| 452 | 452 | id: "", |
| 453 | 453 | title: "", |
| 454 | 454 | score: "", |
| ... | ... | @@ -492,8 +492,15 @@ export default { |
| 492 | 492 | print() { |
| 493 | 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 | 504 | this.diaUp = false; |
| 498 | 505 | this._QueryData(); |
| 499 | 506 | }, | ... | ... |
src/views/personal/test/index.vue
| ... | ... | @@ -426,7 +426,7 @@ export default { |
| 426 | 426 | loading: false, |
| 427 | 427 | diaUp: false, |
| 428 | 428 | loadingDown: false, |
| 429 | - url: "/api_html/teaching/importSubjectiveScore", | |
| 429 | + url: "/api_html/personal/importSubjectiveScore", | |
| 430 | 430 | examId: "", |
| 431 | 431 | date: "", //今天-昨天-本周 |
| 432 | 432 | query: { |
| ... | ... | @@ -516,8 +516,8 @@ export default { |
| 516 | 516 | id: obj.studentId, |
| 517 | 517 | classId: this.query.classId, |
| 518 | 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 | 614 | this.page = 1; |
| 615 | 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 | 626 | this.diaUp = false; |
| 620 | 627 | this._QueryData(); |
| 621 | 628 | }, |
| ... | ... | @@ -722,7 +729,7 @@ export default { |
| 722 | 729 | this.loading = false; |
| 723 | 730 | if (status === 0) { |
| 724 | 731 | this.tableData = (data?.list && [...data?.list]) || []; |
| 725 | - this.total = data.count; | |
| 732 | + this.total = data?.count || 0; | |
| 726 | 733 | } else { |
| 727 | 734 | this.$message.error(info); |
| 728 | 735 | } | ... | ... |
src/views/standard/setUp/account.vue
| ... | ... | @@ -454,8 +454,15 @@ export default { |
| 454 | 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 | 466 | this.diaUp = false; |
| 460 | 467 | this._QueryData(4); |
| 461 | 468 | }, | ... | ... |
src/views/standard/setUp/school.vue
| ... | ... | @@ -309,8 +309,15 @@ export default { |
| 309 | 309 | this._QuerySubject(); |
| 310 | 310 | }, |
| 311 | 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 | 321 | this.diaUp = false; |
| 315 | 322 | this._QueryDataSchool(); |
| 316 | 323 | this._QueryDataGrade(); | ... | ... |
src/views/standard/setUp/teacher.vue
| ... | ... | @@ -441,8 +441,15 @@ export default { |
| 441 | 441 | await this._QueryClass(); |
| 442 | 442 | }, |
| 443 | 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 | 453 | this.diaUp = false; |
| 447 | 454 | this._QueryData(10); |
| 448 | 455 | }, | ... | ... |
src/views/standard/test/analysis.vue
| ... | ... | @@ -474,8 +474,15 @@ export default { |
| 474 | 474 | print() { |
| 475 | 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 | 486 | this.diaUp = false; |
| 480 | 487 | this._QueryData(); |
| 481 | 488 | }, | ... | ... |
src/views/standard/test/index.vue
| ... | ... | @@ -692,8 +692,15 @@ export default { |
| 692 | 692 | this.page = 1; |
| 693 | 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 | 704 | this.diaUp = false; |
| 698 | 705 | this._QueryData(); |
| 699 | 706 | }, | ... | ... |