소스 검색

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

莫绍宝 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()