Browse Source

修改bug

lichao 3 years ago
parent
commit
884db8201b
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/views/businessManagement/inventoryAccount/index.vue

+ 9 - 0
src/views/businessManagement/inventoryAccount/index.vue

@@ -11,6 +11,7 @@
         :table-loading="loading"
         @on-load="onLoad"
         @row-update="rowUpdate"
+        @refresh-change="refreshChange"
         :cell-style="cellStyle">
         <template slot-scope="scope" slot="lockingQuantity">
           <span v-if="Number(scope.row.lockingQuantity) > 0" style="color: #409EFF;cursor: pointer" @click.stop="viewCell(scope.row,scope.index)">{{ scope.row.lockingQuantity }}</span>
@@ -261,6 +262,14 @@ export default {
     onClose(val) {
       this.switchDialog = val;
     },
+    //列表刷新触发
+    refreshChange() {
+      this.data.forEach(item => {
+        this.$refs.crud.toggleRowExpansion(item, false)
+      })
+      this.page.currentPage = 1;
+      this.onLoad(this.page,this.search);
+    },
   }
 }
 </script>