Commit 76693d69c32fedc51c971b896b59195aad420ae4
1 parent
a2db6e1d
批量设置答案按钮位置
Showing
7 changed files
with
18 additions
and
16 deletions
src/api/axios.js
@@ -63,6 +63,7 @@ service.interceptors.response.use( | @@ -63,6 +63,7 @@ service.interceptors.response.use( | ||
63 | return Promise.resolve(res); | 63 | return Promise.resolve(res); |
64 | }, | 64 | }, |
65 | (error) => { | 65 | (error) => { |
66 | + debugger | ||
66 | const { data, status } = error.response; | 67 | const { data, status } = error.response; |
67 | if (error.response == undefined) { | 68 | if (error.response == undefined) { |
68 | return Promise.reject(error); | 69 | return Promise.reject(error); |
src/components/setAnswer.vue
@@ -201,8 +201,8 @@ export default { | @@ -201,8 +201,8 @@ export default { | ||
201 | let types = [{}]; | 201 | let types = [{}]; |
202 | let addndex = 0; | 202 | let addndex = 0; |
203 | this.FormQuestionList?.map((sub, index) => { | 203 | this.FormQuestionList?.map((sub, index) => { |
204 | - if (!!sub.questionType && sub.questionType != 5) { | ||
205 | - if (sub.questionType == types[addndex].qusType) { | 204 | + if (!!sub.questionType) { |
205 | + if (sub.questionType == types[addndex].qusType && sub.questionType != 5) { | ||
206 | //同类型批量答案+1 | 206 | //同类型批量答案+1 |
207 | types[addndex].subNum += 1; | 207 | types[addndex].subNum += 1; |
208 | if ( | 208 | if ( |
src/views/card/index.vue
@@ -29,7 +29,7 @@ | @@ -29,7 +29,7 @@ | ||
29 | <el-button | 29 | <el-button |
30 | slot="append" | 30 | slot="append" |
31 | icon="el-icon-search" | 31 | icon="el-icon-search" |
32 | - @click="_QueryData(1)" | 32 | + @click="_QueryData(2)" |
33 | ></el-button> | 33 | ></el-button> |
34 | </el-input> | 34 | </el-input> |
35 | <el-input | 35 | <el-input |
@@ -41,10 +41,10 @@ | @@ -41,10 +41,10 @@ | ||
41 | <el-button | 41 | <el-button |
42 | slot="append" | 42 | slot="append" |
43 | icon="el-icon-search" | 43 | icon="el-icon-search" |
44 | - @click="_QueryData(2)" | 44 | + @click="_QueryData(3)" |
45 | ></el-button> | 45 | ></el-button> |
46 | </el-input> | 46 | </el-input> |
47 | - <el-button type="primary" round @click="_QueryData(1)" | 47 | + <el-button type="primary" round @click="_QueryData(4)" |
48 | >筛选</el-button | 48 | >筛选</el-button |
49 | > | 49 | > |
50 | </div> | 50 | </div> |
@@ -76,7 +76,7 @@ | @@ -76,7 +76,7 @@ | ||
76 | <el-table-column | 76 | <el-table-column |
77 | align="center" | 77 | align="center" |
78 | label="学号" | 78 | label="学号" |
79 | - prop="studentId" | 79 | + prop="studentCode" |
80 | ></el-table-column> | 80 | ></el-table-column> |
81 | <el-table-column align="center" label="类型"> | 81 | <el-table-column align="center" label="类型"> |
82 | <template slot-scope="scope"> | 82 | <template slot-scope="scope"> |
src/views/examinationPaper/add.vue
@@ -1282,8 +1282,8 @@ export default { | @@ -1282,8 +1282,8 @@ export default { | ||
1282 | let types = [{}]; | 1282 | let types = [{}]; |
1283 | let addndex = 0; | 1283 | let addndex = 0; |
1284 | item.subQuestions.map((sub, index) => { | 1284 | item.subQuestions.map((sub, index) => { |
1285 | - if (!!sub.questionType && sub.questionType != 5) { | ||
1286 | - if (sub.questionType == types[addndex].qusType) { | 1285 | + if (!!sub.questionType) { |
1286 | + if (sub.questionType == types[addndex].qusType && sub.questionType != 5) { | ||
1287 | //同类型批量答案+1 | 1287 | //同类型批量答案+1 |
1288 | types[addndex].subNum += 1; | 1288 | types[addndex].subNum += 1; |
1289 | if ( | 1289 | if ( |
src/views/examinationPaper/edit.vue
@@ -667,8 +667,8 @@ export default { | @@ -667,8 +667,8 @@ export default { | ||
667 | let types = [{}]; | 667 | let types = [{}]; |
668 | let addndex = 0; | 668 | let addndex = 0; |
669 | item.subQuestions.map((sub, index) => { | 669 | item.subQuestions.map((sub, index) => { |
670 | - if (!!sub.questionType && sub.questionType != 5) { | ||
671 | - if (sub.questionType == types[addndex].qusType) { | 670 | + if (!!sub.questionType) { |
671 | + if (sub.questionType == types[addndex].qusType && sub.questionType != 5) { | ||
672 | //同类型批量答案+1 | 672 | //同类型批量答案+1 |
673 | types[addndex].subNum += 1; | 673 | types[addndex].subNum += 1; |
674 | if ( | 674 | if ( |
@@ -725,8 +725,8 @@ export default { | @@ -725,8 +725,8 @@ export default { | ||
725 | let types = [{}]; | 725 | let types = [{}]; |
726 | let addndex = 0; | 726 | let addndex = 0; |
727 | this.questionList?.map((sub, index) => { | 727 | this.questionList?.map((sub, index) => { |
728 | - if (!!sub.questionType && sub.questionType != 5) { | ||
729 | - if (sub.questionType == types[addndex].qusType) { | 728 | + if (!!sub.questionType) { |
729 | + if (sub.questionType == types[addndex].qusType && sub.questionType != 5) { | ||
730 | //同类型批量答案+1 | 730 | //同类型批量答案+1 |
731 | types[addndex].subNum += 1; | 731 | types[addndex].subNum += 1; |
732 | if ( | 732 | if ( |
src/views/setUp/teacher.vue
@@ -494,6 +494,7 @@ export default { | @@ -494,6 +494,7 @@ export default { | ||
494 | ...obj, | 494 | ...obj, |
495 | }); | 495 | }); |
496 | } else { | 496 | } else { |
497 | + | ||
497 | res = await this.$request.updateTeacher({ | 498 | res = await this.$request.updateTeacher({ |
498 | teacherId: this.formTeacher.id, | 499 | teacherId: this.formTeacher.id, |
499 | teacherName: this.formTeacher.teacherName, | 500 | teacherName: this.formTeacher.teacherName, |
src/views/test/editAnswer.vue
@@ -620,8 +620,8 @@ export default { | @@ -620,8 +620,8 @@ export default { | ||
620 | let types = [{}]; | 620 | let types = [{}]; |
621 | let addndex = 0; | 621 | let addndex = 0; |
622 | item.subQuestions.map((sub, index) => { | 622 | item.subQuestions.map((sub, index) => { |
623 | - if (!!sub.questionType && sub.questionType != 5) { | ||
624 | - if (sub.questionType == types[addndex].qusType) { | 623 | + if (!!sub.questionType) { |
624 | + if (sub.questionType == types[addndex].qusType && sub.questionType != 5) { | ||
625 | //同类型批量答案+1 | 625 | //同类型批量答案+1 |
626 | types[addndex].subNum += 1; | 626 | types[addndex].subNum += 1; |
627 | if ( | 627 | if ( |
@@ -677,8 +677,8 @@ export default { | @@ -677,8 +677,8 @@ export default { | ||
677 | let types = [{}]; | 677 | let types = [{}]; |
678 | let addndex = 0; | 678 | let addndex = 0; |
679 | this.questionList?.map((sub, index) => { | 679 | this.questionList?.map((sub, index) => { |
680 | - if (!!sub.questionType && sub.questionType != 5) { | ||
681 | - if (sub.questionType == types[addndex].qusType) { | 680 | + if (!!sub.questionType) { |
681 | + if (sub.questionType == types[addndex].qusType && sub.questionType != 5) { | ||
682 | //同类型批量答案+1 | 682 | //同类型批量答案+1 |
683 | types[addndex].subNum += 1; | 683 | types[addndex].subNum += 1; |
684 | if ( | 684 | if ( |