|
@@ -493,7 +493,6 @@ export default {
|
|
return {
|
|
return {
|
|
loading: false,
|
|
loading: false,
|
|
orgLoading4InsertOrUpdate: false,
|
|
orgLoading4InsertOrUpdate: false,
|
|
- isSuperAdmin: false,
|
|
|
|
roleList4Search: [],
|
|
roleList4Search: [],
|
|
roleList4InsertOrUpdate: [],
|
|
roleList4InsertOrUpdate: [],
|
|
rootOrgList: [],
|
|
rootOrgList: [],
|
|
@@ -592,6 +591,9 @@ export default {
|
|
return this.roleList4InsertOrUpdate.filter(
|
|
return this.roleList4InsertOrUpdate.filter(
|
|
item => item.roleCode != "SUPER_ADMIN"
|
|
item => item.roleCode != "SUPER_ADMIN"
|
|
);
|
|
);
|
|
|
|
+ },
|
|
|
|
+ isSuperAdmin() {
|
|
|
|
+ return this.user.roleList.some(role => role.roleCode == "SUPER_ADMIN");
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -986,13 +988,6 @@ export default {
|
|
|
|
|
|
/*初始化*/
|
|
/*初始化*/
|
|
init() {
|
|
init() {
|
|
- for (let role of this.user.roleList) {
|
|
|
|
- if (role.roleCode == "SUPER_ADMIN") {
|
|
|
|
- this.isSuperAdmin = true;
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
this.searchForm.rootOrgId = this.user.rootOrgId;
|
|
this.searchForm.rootOrgId = this.user.rootOrgId;
|
|
this.userForm.rootOrgId = this.user.rootOrgId;
|
|
this.userForm.rootOrgId = this.user.rootOrgId;
|
|
|
|
|