Browse Source

修改bug

chenrui 2 years ago
parent
commit
102951a72b
1 changed files with 10 additions and 6 deletions
  1. 10 6
      src/views/dealerManagement/businessOwnerSettings/settingsIndex.vue

+ 10 - 6
src/views/dealerManagement/businessOwnerSettings/settingsIndex.vue

@@ -158,8 +158,7 @@ export default {
               data.list[i].no = no + i + 1
             }
             this.disabled = false
-          }
-          this.dataList = data.list
+          }
           this.spinning = false
           return data
         })
@@ -217,18 +216,23 @@ export default {
       this.$refs.subarea.clearData()
       this.$refs.table.refresh(true)
     },
-    openAreaModal () {
+    async openAreaModal (params = {}) {
       this.$refs.partQuery.pageInit()
       const _this = this
       const checkedArr = []
-      _this.dataList.forEach(item => {
+      const dataList = await bizuserScopeQueryPage({
+        pageNo: 1,
+        pageSize: 1000,
+        ...params
+      })
+      dataList.list.forEach(item => {
         if (item.bizType == 'subarea_area') {
           item.bixSn = item.bizSn + '_'
         }
         checkedArr.push(item.bizSn)
       })
-      console.log('1111', checkedArr)
-      this.newChooseData.checked = checkedArr
+      const newCheckedArr = new Set(checkedArr)
+      this.newChooseData.checked = newCheckedArr
       _this.$nextTick(() => {
         _this.openChooseArea = true
       })