|
@@ -254,7 +254,7 @@ export default {
|
|
this.initData();
|
|
this.initData();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- async initData() {
|
|
|
|
|
|
+ async initData(defaultPaperType = null) {
|
|
const params = {
|
|
const params = {
|
|
examId: this.basicInfo.examId,
|
|
examId: this.basicInfo.examId,
|
|
paperNumber: this.basicInfo.paperNumber,
|
|
paperNumber: this.basicInfo.paperNumber,
|
|
@@ -293,7 +293,10 @@ export default {
|
|
this.tableDict[paperType] = tableData;
|
|
this.tableDict[paperType] = tableData;
|
|
});
|
|
});
|
|
|
|
|
|
- this.curPaperType = this.paperTypes[0];
|
|
|
|
|
|
+ this.curPaperType =
|
|
|
|
+ defaultPaperType && this.tableDict[defaultPaperType]
|
|
|
|
+ ? defaultPaperType
|
|
|
|
+ : this.paperTypes[0];
|
|
this.prevPaperType = this.curPaperType;
|
|
this.prevPaperType = this.curPaperType;
|
|
this.tableData = this.tableDict[this.curPaperType];
|
|
this.tableData = this.tableDict[this.curPaperType];
|
|
},
|
|
},
|
|
@@ -461,7 +464,7 @@ export default {
|
|
},
|
|
},
|
|
importAnswerSuccess() {
|
|
importAnswerSuccess() {
|
|
this.$message.success("导入成功!");
|
|
this.$message.success("导入成功!");
|
|
- this.initData();
|
|
|
|
|
|
+ this.initData(this.curPaperType);
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|