فهرست منبع

修改手动编辑

achao 3 سال پیش
والد
کامیت
0a9968d153
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      src/views/houseSelfCollect/acquisitionManagement.vue

+ 3 - 3
src/views/houseSelfCollect/acquisitionManagement.vue

@@ -218,6 +218,7 @@
               } else {
                 this.checked = false
               }
+              localStorage.setItem('houseSelfCollect_house', JSON.stringify(this.warehouseList[0]))
             }
 
             // this.tableData = response.records
@@ -248,14 +249,13 @@
           })
           .toPromise()
           .then(response => {
-            let _data = localStorage.getItem('houseSelfCollect_house1')
-            _data = JSON.parse(localStorage.getItem('houseSelfCollect_house1'))
+            let _data = JSON.parse(localStorage.getItem('houseSelfCollect_house'))
             if (_data.allowEdit == 0) {
               _data.allowEdit = 1
             } else {
               _data.allowEdit = 0
             }
-            localStorage.setItem('houseSelfCollect_house1', JSON.stringify(_data))
+            localStorage.setItem('houseSelfCollect_house', JSON.stringify(_data))
             this.getWarehouseSelf()
             // this.tableData = response.records
           })