Browse Source

【修改】政策新增编辑

howie 2 năm trước cách đây
mục cha
commit
45de0d231b

+ 1 - 1
src/views/sales_policy/components/AddPolicy.vue

@@ -857,7 +857,7 @@ export default {
       };
       try {
         const {data}  =  await getMaterialList(paramss)
-      this.dataList = [...this.dataList,...data.records];
+      this.dataList = data.records
           data.records.forEach((k) => {
             k.walletIds = [];
             k.rebateWalletIds = [];

+ 1 - 1
src/views/sales_policy/components/editPolicy.vue

@@ -903,7 +903,7 @@ export default {
             }
           })
 
-          this.dataList = [...this.dataList,...result.data.records]
+          this.dataList = result.data.records
           this.listTotal = result.data.total
           this.listLoading = false
         })