zhangjie 2 tahun lalu
induk
melakukan
b1e971a410

+ 10 - 0
src/modules/stmms/components/markParam/MarkParamMarkerLeader.vue

@@ -34,7 +34,9 @@
               v-for="user in users"
               :key="user.id"
               closable
+              size="medium"
               :disable-transitions="false"
+              class="mb-1 mr-1"
               @close="toDeleteUser(user)"
             >
               {{ user.label }}
@@ -74,6 +76,14 @@ import SelectTypeUser from "../SelectTypeUser.vue";
 export default {
   name: "mark-param-marker-leader",
   components: { SelectTypeUser },
+  props: {
+    instance: {
+      type: Object,
+      default() {
+        return {};
+      },
+    },
+  },
   data() {
     return {
       loading: false,

+ 19 - 1
src/modules/stmms/components/markParam/MarkParamStructure.vue

@@ -103,7 +103,10 @@ export default {
     this.initData();
   },
   methods: {
-    ...mapMutations("markParam", ["setMarkParamInfos"]),
+    ...mapMutations("markParam", [
+      "setMarkParamInfos",
+      "setObjectiveStructure",
+    ]),
     async initData() {
       this.current = 0;
       this.loading = false;
@@ -341,6 +344,21 @@ export default {
       this.loading = false;
 
       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.$message.success("提交成功!");
       this.$emit("confirm");