Ver Fonte

fix: 工程子帐号经销商更改接口

zh há 2 anos atrás
pai
commit
c95a68e61b
1 ficheiros alterados com 5 adições e 12 exclusões
  1. 5 12
      src/views/setting/engineeringSubAccount.vue

+ 5 - 12
src/views/setting/engineeringSubAccount.vue

@@ -143,7 +143,7 @@
 
 <script>
 import { mapGetters } from 'vuex'
-import { getStagecustomerListV2 } from '@/api/basic_data/dealer'
+import { getDealerListV2 } from '@/api/basic_data/dealer'
 import {
   addEngineeringUser,
   deleteRole,
@@ -211,17 +211,10 @@ export default {
       return true
     },
     // 获取子经销商
-    getStagecustomerListV2() {
-      getStagecustomerListV2({
+    getDealerListV2() {
+      getDealerListV2({
         pageNum: 1,
-        pageSize: -1,
-        params: [
-          {
-            param: 'a.jiaxian_type',
-            compare: '=',
-            value: 'KING'
-          }
-        ]
+        pageSize: -1
       }).then(res => {
         this.subCustomerList = res.data.records
       })
@@ -276,7 +269,7 @@ export default {
           }
         })
       }
-      this.getStagecustomerListV2()
+      this.getDealerListV2()
     },
 
     // 取消 新增编辑