|
@@ -910,16 +910,15 @@ export default {
|
|
this.initPaper();
|
|
this.initPaper();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- async initPaper(bool, bool2) {
|
|
|
|
|
|
+ async initPaper(bool) {
|
|
const res = await paperDetailApi(this.paperId);
|
|
const res = await paperDetailApi(this.paperId);
|
|
- if (!bool2) {
|
|
|
|
- res.data.paperDetails.forEach((detail) => {
|
|
|
|
- detail.showQuestions = true;
|
|
|
|
- detail.paperDetailUnits.forEach((question) => {
|
|
|
|
- question.showSubQuestions = true;
|
|
|
|
- });
|
|
|
|
|
|
+ res.data.paperDetails.forEach((detail) => {
|
|
|
|
+ detail.showQuestions = true;
|
|
|
|
+ detail.paperDetailUnits.forEach((question) => {
|
|
|
|
+ question.showSubQuestions = true;
|
|
});
|
|
});
|
|
- }
|
|
|
|
|
|
+ });
|
|
|
|
+
|
|
this.paper = res.data;
|
|
this.paper = res.data;
|
|
this.paper.title = this.paper.title || this.paper.name;
|
|
this.paper.title = this.paper.title || this.paper.name;
|
|
this.showCheckDuplicate();
|
|
this.showCheckDuplicate();
|
|
@@ -1183,7 +1182,7 @@ export default {
|
|
|
|
|
|
if (!res) return;
|
|
if (!res) return;
|
|
this.$message.success("操作成功!");
|
|
this.$message.success("操作成功!");
|
|
- this.initPaper(false, true);
|
|
|
|
|
|
+ this.initPaper();
|
|
},
|
|
},
|
|
// 删除大题
|
|
// 删除大题
|
|
async toDeletePaperDetail(detail) {
|
|
async toDeletePaperDetail(detail) {
|