Merge pull request #502 from lenboo/dev-1.1.0

update tenant in ui
This commit is contained in:
bao liang 2019-07-02 15:09:56 +08:00 committed by GitHub
commit d5aff2be3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -125,9 +125,9 @@ public class TenantService extends BaseService{
public Map<String,Object> queryTenantList(User loginUser, String searchVal, Integer pageNo, Integer pageSize) {
Map<String, Object> result = new HashMap<>(5);
// if (checkAdmin(loginUser, result)) {
// return result;
// }
if (checkAdmin(loginUser, result)) {
return result;
}
Integer count = tenantMapper.countTenantPaging(searchVal);
@ -269,9 +269,9 @@ public class TenantService extends BaseService{
public Map<String, Object> queryTenantList(User loginUser) {
Map<String, Object> result = new HashMap<>(5);
if (checkAdmin(loginUser, result)) {
return result;
}
// if (checkAdmin(loginUser, result)) {
// return result;
// }
List<Tenant> resourceList = tenantMapper.queryAllTenant();
result.put(Constants.DATA_LIST, resourceList);

View File

@ -45,7 +45,7 @@
if (stateTenantAllList.length) {
this.itemList = stateTenantAllList
} else {
this.store.dispatch('actions/getTenantList').then(res => {
this.store.dispatch('security/getTenantList').then(res => {
this.$nextTick(() => {
this.itemList = res
})