|
@@ -109,7 +109,12 @@
|
|
|
<el-button type="info" size="small" @click="showAuditDialog">
|
|
|
审核记录
|
|
|
</el-button>
|
|
|
- <el-button type="info" size="small" @click="toEditCard">
|
|
|
+ <el-button
|
|
|
+ v-if="enableCardEdit"
|
|
|
+ type="info"
|
|
|
+ size="small"
|
|
|
+ @click="toEditCard"
|
|
|
+ >
|
|
|
编辑题卡
|
|
|
</el-button>
|
|
|
</div>
|
|
@@ -1337,6 +1342,11 @@ export default {
|
|
|
this.quesModel.questionType == "BANKED_CLOZE"
|
|
|
);
|
|
|
},
|
|
|
+ enableCardEdit() {
|
|
|
+ return (
|
|
|
+ this.paper.auditStatus === "PASS" && this.paper.paperType === "GENERATE"
|
|
|
+ );
|
|
|
+ },
|
|
|
},
|
|
|
created() {
|
|
|
let qt = sessionStorage.getItem("quesTagShow");
|
|
@@ -1521,6 +1531,9 @@ export default {
|
|
|
type: "success",
|
|
|
});
|
|
|
this.loading = false;
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.loading = false;
|
|
|
});
|
|
|
}
|
|
|
},
|
|
@@ -1574,6 +1587,9 @@ export default {
|
|
|
type: "success",
|
|
|
});
|
|
|
this.loading = false;
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.loading = false;
|
|
|
});
|
|
|
}
|
|
|
},
|
|
@@ -1626,6 +1642,9 @@ export default {
|
|
|
type: "success",
|
|
|
});
|
|
|
this.loading = false;
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.loading = false;
|
|
|
});
|
|
|
}
|
|
|
},
|
|
@@ -1856,6 +1875,9 @@ export default {
|
|
|
console.log(scrollPosition);
|
|
|
}, 1000);
|
|
|
this.loading = false;
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
//删除大题
|
|
@@ -1892,6 +1914,9 @@ export default {
|
|
|
type: "success",
|
|
|
});
|
|
|
this.loading = false;
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.loading = false;
|
|
|
});
|
|
|
}
|
|
|
},
|
|
@@ -2016,6 +2041,7 @@ export default {
|
|
|
return count;
|
|
|
},
|
|
|
quesBodyChange(quesBodyJson) {
|
|
|
+ console.log(quesBodyJson);
|
|
|
this.quesModel.quesBody = quesBodyJson;
|
|
|
|
|
|
if (this.quesModel.questionType == "FILL_BLANK_QUESTION") {
|
|
@@ -2431,6 +2457,9 @@ export default {
|
|
|
type: "success",
|
|
|
});
|
|
|
this.loading = false;
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.loading = false;
|
|
|
});
|
|
|
}
|
|
|
},
|
|
@@ -2470,6 +2499,9 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
this.loading = false;
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.loading = false;
|
|
|
});
|
|
|
}
|
|
|
},
|