浏览代码

bug修复

chenrui 3 年之前
父节点
当前提交
9860c3de8e

+ 1 - 1
src/views/allocationManagement/transferOut/basicInfoModal.vue

@@ -114,7 +114,7 @@ export default {
       this.fetching = true
       dealerSubareaScopeList({ nameLike: value, pageNo: 1, pageSize: 20 }).then(res => {
         if (res.status == 200) {
-          this.dealerData = res.data.list || []
+          this.dealerData = res.data && res.data.list ? res.data.list : []
           this.fetching = false
         } else {
           this.dealerData = []

+ 1 - 1
src/views/common/custList.vue

@@ -44,7 +44,7 @@ export default {
         if (fetchId !== this.lastFetchId) {
           return
         }
-        this.data = res.data.list || []
+        this.data = res.data && res.data.list ? res.data.list : []
         this.fetching = false
       })
     },

+ 1 - 1
src/views/common/promoList.vue

@@ -44,7 +44,7 @@ export default {
         if (fetchId !== this.lastFetchId) {
           return
         }
-        this.data = res.data.list || []
+        this.data = res.data && res.data.list ? res.data.list : []
         this.fetching = false
       })
     },

+ 1 - 1
src/views/dealerManagement/dealerRelationshipBinding/queryChild.vue

@@ -50,7 +50,7 @@ export default {
         if (fetchId !== this.lastFetchId) {
           return
         }
-        this.data = res.data.list || []
+        this.data = res.data && res.data.list ? res.data.list : []
         this.fetching = false
       })
     },

+ 1 - 1
src/views/dealerManagement/rebateSettings/queryChild.vue

@@ -49,7 +49,7 @@ export default {
         if (fetchId !== this.lastFetchId) {
           return
         }
-        this.data = res.data.list || []
+        this.data = res.data && res.data.list ? res.data.list : []
         this.fetching = false
       })
     },

+ 1 - 1
src/views/purchasingManagement/bulkWarehousingOrder/productModal.vue

@@ -158,7 +158,7 @@ export default {
       }
       supplierProductList(params).then(res => {
         if (res.status == 200) {
-          this.productData = res.data.list || []
+          this.productData = res.data && res.data.list ? res.data.list : []
           this.fetching = false
         } else {
           this.productData = []

+ 1 - 1
src/views/salesManagement/salesReturn/chooseCustomModal.vue

@@ -120,7 +120,7 @@ export default {
       this.fetching = true
       dealerSubareaScopeList({ nameLike: value, pageNo: 1, pageSize: 20 }).then(res => {
         if (res.status == 200) {
-          this.dealerData = res.data.list || []
+          this.dealerData = res.data && res.data.list ? res.data.list : []
           this.fetching = false
         } else {
           this.dealerData = []