瀏覽代碼

修改bug

lichao 3 年之前
父節點
當前提交
884db8201b
共有 1 個文件被更改,包括 9 次插入0 次删除
  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>