Commit c065091a858c0e7a87ae7b8b689dec02082feb0c
1 parent
10cf4c8c
即时测跳转画像参数调整
Showing
3 changed files
with
23 additions
and
7 deletions
src/views/personal/test/index.vue
| ... | ... | @@ -499,7 +499,11 @@ export default { |
| 499 | 499 | }, |
| 500 | 500 | toPortrait(obj) { |
| 501 | 501 | let subjectNames = []; |
| 502 | - subjectNames = [...this.query["subjectNames"]]; | |
| 502 | + subjectNames = | |
| 503 | + this.role == "ROLE_BANZHUREN" | |
| 504 | + ? [...this.query["subjectNames"]] | |
| 505 | + : [this.query["subjectNames"]]; | |
| 506 | + | |
| 503 | 507 | if ( |
| 504 | 508 | this.query["subjectNames"] && |
| 505 | 509 | this.query["subjectNames"]?.length == 1 && |
| ... | ... | @@ -519,6 +523,9 @@ export default { |
| 519 | 523 | subjectNames: subjectNames.join(","), |
| 520 | 524 | studentName: obj.studentName, |
| 521 | 525 | studentCode: obj.studentCode, |
| 526 | + startDay: this.query.startDay, | |
| 527 | + endDay: this.query.endDay, | |
| 528 | + date: this.date, | |
| 522 | 529 | }, |
| 523 | 530 | }); |
| 524 | 531 | }, |
| ... | ... | @@ -622,7 +629,7 @@ export default { |
| 622 | 629 | showClose: true, |
| 623 | 630 | message: `成功(${res.data.success})`, |
| 624 | 631 | type: "success", |
| 625 | - duration:5000 | |
| 632 | + duration: 5000, | |
| 626 | 633 | }); |
| 627 | 634 | this.diaUp = false; |
| 628 | 635 | this._QueryData(); |
| ... | ... | @@ -857,7 +864,7 @@ div::-webkit-scrollbar-thumb { |
| 857 | 864 | } |
| 858 | 865 | .click-b { |
| 859 | 866 | cursor: pointer; |
| 860 | - color: #409EFF; | |
| 867 | + color: #409eff; | |
| 861 | 868 | text-decoration: underline; |
| 862 | 869 | } |
| 863 | 870 | .down { | ... | ... |
src/views/portrait/detail.vue
| ... | ... | @@ -193,6 +193,9 @@ export default { |
| 193 | 193 | this.classId = this.$route.query.classId; |
| 194 | 194 | this.studentCode = this.$route.query.studentCode; |
| 195 | 195 | this.studentName = this.$route.query.studentName; |
| 196 | + this.query.startDay = this.$route.query.startDay || ""; | |
| 197 | + this.query.endDay = this.$route.query.endDay || ""; | |
| 198 | + this.date = this.$route.query.date || 1; | |
| 196 | 199 | if (this.role != "ROLE_JIAOSHI") { |
| 197 | 200 | this.subjectNames = |
| 198 | 201 | (this.$route.query.subjectNames && |
| ... | ... | @@ -202,11 +205,14 @@ export default { |
| 202 | 205 | this.subjectNames = this.$route.query.subjectNames; |
| 203 | 206 | } |
| 204 | 207 | await this._QuerySubjectList(); |
| 205 | - await this.setDate(1); | |
| 208 | + | |
| 206 | 209 | let startDay = this.query?.startDay; |
| 207 | 210 | if (!startDay) { |
| 211 | + await this.setDate(1); | |
| 208 | 212 | this.query.startDay = new Date(); |
| 209 | 213 | this.query.endDay = new Date(); |
| 214 | + }else{ | |
| 215 | + this._QueryData() | |
| 210 | 216 | } |
| 211 | 217 | }, |
| 212 | 218 | methods: { | ... | ... |
src/views/standard/test/index.vue
| ... | ... | @@ -576,7 +576,7 @@ export default { |
| 576 | 576 | return; |
| 577 | 577 | } |
| 578 | 578 | let subjectNames = []; |
| 579 | - subjectNames = [...this.query["subjectNames"]]; | |
| 579 | + subjectNames = this.role == 'ROLE_BANZHUREN'?[...this.query["subjectNames"]]:[this.query["subjectNames"]]; | |
| 580 | 580 | if ( |
| 581 | 581 | this.query["subjectNames"] && |
| 582 | 582 | this.query["subjectNames"]?.length == 1 && |
| ... | ... | @@ -596,6 +596,9 @@ export default { |
| 596 | 596 | subjectNames: subjectNames.join(","), |
| 597 | 597 | studentName: obj.studentName, |
| 598 | 598 | studentCode: obj.studentCode, |
| 599 | + startDay: this.query.startDay, | |
| 600 | + endDay: this.query.endDay, | |
| 601 | + date:this.date | |
| 599 | 602 | }, |
| 600 | 603 | }); |
| 601 | 604 | }, |
| ... | ... | @@ -700,7 +703,7 @@ export default { |
| 700 | 703 | showClose: true, |
| 701 | 704 | message: `成功(${res.data.success})`, |
| 702 | 705 | type: "success", |
| 703 | - duration:5000 | |
| 706 | + duration: 5000, | |
| 704 | 707 | }); |
| 705 | 708 | this.diaUp = false; |
| 706 | 709 | this._QueryData(); |
| ... | ... | @@ -1001,7 +1004,7 @@ div::-webkit-scrollbar-thumb { |
| 1001 | 1004 | } |
| 1002 | 1005 | .click-b { |
| 1003 | 1006 | cursor: pointer; |
| 1004 | - color: #409EFF; | |
| 1007 | + color: #409eff; | |
| 1005 | 1008 | text-decoration: underline; |
| 1006 | 1009 | } |
| 1007 | 1010 | </style> |
| 1008 | 1011 | \ No newline at end of file | ... | ... |