yusheng 10 ay önce
ebeveyn
işleme
21a45658a9

+ 5 - 5
src/views/warehouseManagement/stockManagement/components/selectType.vue

@@ -180,7 +180,6 @@
             columnKey: 'selection',
             align: 'center',
             reserveSelection: true
-
           },
           {
             columnKey: 'index',
@@ -304,11 +303,13 @@
         });
       },
       handleSearch() {
-        this.reload()
+        this.reload();
       },
       /* 刷新表格 */
       reload(where) {
-        this.$refs.table&&this.$refs.table.reload({ page: 1, where });
+        this.$nextTick(() => {
+          this.$refs.multipleTable.reload({ page: 1, where });
+        });
       },
       onConfirm() {
         // console.log([...this.memoSelection, ...this.multipleSelection]);
@@ -346,7 +347,7 @@
       closeWindows() {
         this.selection = [];
         // this.multipleSelection = [];
-        this.$refs.multipleTable.setSelectedRows([])
+        this.$refs.multipleTable.setSelectedRows([]);
         this.$emit('update:loadTree', false);
         this.$emit('update:visibleDialog', false);
         this.pages.pageNum = 1;
@@ -377,7 +378,6 @@
           searchKey: this.value,
           categoryLevelId: this.classificationId
         };
-        console.log(params);
         let res = await getList(params);
 
         if (res && this.classificationId == params.categoryLevelId) {