Commit 76693d69c32fedc51c971b896b59195aad420ae4

Authored by 梁保满
1 parent a2db6e1d

批量设置答案按钮位置

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