|
@@ -114,7 +114,8 @@ export default {
|
|
|
total: "",
|
|
|
loading: false,
|
|
|
asyncData: [],
|
|
|
- msgDatas: []
|
|
|
+ msgDatas: [],
|
|
|
+ OpenGroup: null
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -177,11 +178,13 @@ export default {
|
|
|
if (this.roleType == 'account') {
|
|
|
this.getRoleData('UserId', 'UserName');
|
|
|
}
|
|
|
- if (this.roleType == "roleByUpId") {
|
|
|
- this.getRoleDataByUpId("roleId");
|
|
|
- }
|
|
|
- if (this.roleType == "onlyRole") {
|
|
|
- this.getRoleData('RoleId', 'RoleName');
|
|
|
+ if (!this.OpenGroup) {
|
|
|
+ if (this.roleType == "roleByUpId") {
|
|
|
+ this.getRoleDataByUpId("roleId");
|
|
|
+ }
|
|
|
+ if (this.roleType == "onlyRole") {
|
|
|
+ this.getRoleData('RoleId', 'RoleName');
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -196,6 +199,11 @@ export default {
|
|
|
return this.loading || this.noMore;
|
|
|
},
|
|
|
},
|
|
|
+ created () {
|
|
|
+ const obj = this.$store.state.app.systemSet;
|
|
|
+ const { OpenGroup } = typeof obj === 'string' ? JSON.parse(obj) : obj;
|
|
|
+ this.OpenGroup = OpenGroup;
|
|
|
+ },
|
|
|
methods: {
|
|
|
// 选中
|
|
|
handleBg (item, i) {
|