Browse Source

项目分享的接口修改

zhuliu 1 year ago
parent
commit
487b1f1fa0
3 changed files with 8 additions and 2 deletions
  1. 6 0
      src/api/client.js
  2. 1 1
      src/views/client/index.vue
  3. 1 1
      src/views/components/drawer/Share.vue

+ 6 - 0
src/api/client.js

@@ -13,6 +13,12 @@ export default {
     addClient(data) {
         return axios.post('/v2/client/add', data)
     },
+      /**
+   * 客户列表(同时是租户)
+   */
+    getTenantClients(params) {
+    return axios.post('/permission/api/client/getTenantClients',  params )
+  },
     /**
    * 客户列表
    */

+ 1 - 1
src/views/client/index.vue

@@ -150,7 +150,7 @@ export default {
     //获取客户信息(建议改成远程搜索,或者懒加载)
     this.getPersonnelList()
     //去除获取所有租户的方法以及相关信息
-    // this.getAllTenantList()
+    this.getAllTenantList()
   },
   methods: {
     //检索

+ 1 - 1
src/views/components/drawer/Share.vue

@@ -143,7 +143,7 @@ export default {
         ...this.queryParams,//分页信息以及检索信息
       }
       this.$api
-        .getAdminClientList(params)
+        .getTenantClients(params)
         .then((response) => {
           this.tableData = response.data.records;
           this.total = response.data.total;