lilei 1 年之前
父節點
當前提交
965565e085
共有 1 個文件被更改,包括 8 次插入6 次删除
  1. 8 6
      src/views/dealerManagement/rebateBinding/categoryList.vue

+ 8 - 6
src/views/dealerManagement/rebateBinding/categoryList.vue

@@ -150,8 +150,7 @@ export default {
       listData.map((item, i) => {
         let sub = item.rebateScopeList || [{ productBrandName: null, productTypeName1: null, productTypeName2: null, productTypeName3: null }]
         const sup = item.rebateDealerList.find(b => b.rebateParentType == 'SUPERIORS')
-        this.checkedDealerSn.push(sup)
-        const rebateDealerList = item.rebateDealerList
+        // this.checkedDealerSn.push(sup)
         // 筛选条件
         if (item.rebateScopeList) {
           sub = this.filterData(sub, queryParam)
@@ -164,9 +163,11 @@ export default {
           a.dealerUpsSn = item.dealerUpsSn
           a.dealerSn = item.dealerSn
           a.no = no + j + 1
-          a.sup = sup
-          a.superDealerName = sup.parentDealer.dealerName
-          a.rebateDealerList = rebateDealerList
+          if (sup) {
+            a.sup = sup
+            a.superDealerName = sup.parentDealer.dealerName
+          }
+          a.rebateDealerList = item.rebateDealerList
         })
         no = no + sub.length
         ret = ret.concat(sub)
@@ -183,7 +184,8 @@ export default {
         this.$emit('loaded', res.data || [])
         this.dataSource = res.data || []
         // 处理数据
-        this.list = this.formatData(this.dataSource, queryParam)
+        // this.list = this.formatData(this.dataSource, queryParam)
+        this.list = res.data || []
         this.showEmpty = this.dataSource.length <= 0
         this.tableHeight = (this.showEmpty ? 0 : this.maxHeight) + 'px'
         this.spinning = false