Переглянути джерело

【修改】账号管理-经销商选择

莫绍宝 2 роки тому
батько
коміт
ac7ac0fb9f
1 змінених файлів з 4 додано та 3 видалено
  1. 4 3
      src/views/setting/account.vue

+ 4 - 3
src/views/setting/account.vue

@@ -605,12 +605,13 @@ export default {
     },
 
     // 获取经销商列表
-    async getDealerList() {
+    async getDealerList(id) {
       const result = await new Promise((resolve, reject) => {
         getDealerList({
           pageNum: 1,
           pageSize: -1,
-          bindUser: false
+          bindUser: false,
+          adminUserId: id || ''
         })
           .then(res => {
             this.dealerList = res.data.records
@@ -707,7 +708,7 @@ export default {
       this.AccountFormType = type
       this.AccountFormVisible = true
       await this.getMerchantList()
-      await this.getDealerList()
+      await this.getDealerList(id)
       await this.getRoleList()
       await this.getCategoryList()