695593266@qq.com пре 4 месеци
родитељ
комит
4e7fcf6c29
1 измењених фајлова са 11 додато и 11 уклоњено
  1. 11 11
      src/views/workOrder/mixins/release.js

+ 11 - 11
src/views/workOrder/mixins/release.js

@@ -952,19 +952,19 @@ export default {
       this.$set(dataRow, 'list', finalList);
       this.$set(dataRow, 'radioBun', radioBun);
       this.$set(dataRow, 'selection', []);
-      let tab = `tableRef${[dataRow.index]}`;
-      this.$refs[tab][0].setSelectedRowKeys([]);
-      // this.$nextTick(() => {
-      //   const tab = `tableRef${dataRow.index}`;
-      //   const tableRefs = this.$refs[tab];
+      // let tab = `tableRef${[dataRow.index]}`;
+      // this.$refs[tab][0].setSelectedRowKeys([]);
+      this.$nextTick(() => {
+        const tab = `tableRef${dataRow.index}`;
+        const tableRefs = this.$refs[tab];
 
-      //   if (!tableRefs || !tableRefs[0]) {
-      //     console.warn(`table ref ${tab} not ready`);
-      //     return;
-      //   }
+        if (!tableRefs || !tableRefs[0]) {
+          console.warn(`table ref ${tab} not ready`);
+          return;
+        }
 
-      //   tableRefs[0].setSelectedRowKeys([]);
-      // });
+        tableRefs[0].setSelectedRowKeys([]);
+      });
     },
 
     mergeNewRows(oldList, newList) {