zhangjie 1 năm trước cách đây
mục cha
commit
0317d5e730

+ 8 - 0
src/modules/mark/components/markParam/MarkParamStructure.vue

@@ -23,6 +23,7 @@
         :data="tableData"
         border
         :row-class-name="getRowClassName"
+        :key="tableKey"
       >
         <el-table-column width="50" align="center">
           <template slot-scope="scope" v-if="scope.row.mainFirstSub">
@@ -243,6 +244,7 @@ export default {
       intervalScorePerTopic: {},
       loading: false,
       editOpen: false,
+      tableKey: "",
     };
   },
   computed: {
@@ -266,12 +268,18 @@ export default {
         .flat();
     },
   },
+  watch: {
+    structureEditable() {
+      this.tableKey = this.$randomCode();
+    },
+  },
   mounted() {
     this.initData();
   },
   methods: {
     ...mapMutations("markParam", ["setPaperStructureInfo"]),
     initData() {
+      this.tableKey = this.$randomCode();
       this.editOpen = this.structureCanEdit;
 
       let questionTypeDict = {};