|
@@ -103,7 +103,10 @@ export default {
|
|
this.initData();
|
|
this.initData();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- ...mapMutations("markParam", ["setMarkParamInfos"]),
|
|
|
|
|
|
+ ...mapMutations("markParam", [
|
|
|
|
+ "setMarkParamInfos",
|
|
|
|
+ "setObjectiveStructure",
|
|
|
|
+ ]),
|
|
async initData() {
|
|
async initData() {
|
|
this.current = 0;
|
|
this.current = 0;
|
|
this.loading = false;
|
|
this.loading = false;
|
|
@@ -341,6 +344,21 @@ export default {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
|
|
|
if (!res) return;
|
|
if (!res) return;
|
|
|
|
+ // 判断客观题数据结构是否变化
|
|
|
|
+ const cacheObjectiveQuestionList =
|
|
|
|
+ this.markParamInfos.paperStructureInfo.filter(
|
|
|
|
+ (item) => item.qType === "objective"
|
|
|
|
+ );
|
|
|
|
+ const cacheStruct = this.getPaperStructData(cacheObjectiveQuestionList);
|
|
|
|
+ const curStruct = this.getPaperStructData(
|
|
|
|
+ datas.paperStructureInfo.objectiveQuestionList
|
|
|
|
+ );
|
|
|
|
+ if (curStruct.join("") !== cacheStruct.join("")) {
|
|
|
|
+ this.setObjectiveStructure(
|
|
|
|
+ datas.paperStructureInfo.objectiveQuestionList
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+
|
|
this.setMarkParamInfos(this.infos);
|
|
this.setMarkParamInfos(this.infos);
|
|
this.$message.success("提交成功!");
|
|
this.$message.success("提交成功!");
|
|
this.$emit("confirm");
|
|
this.$emit("confirm");
|