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