@@ -173,7 +173,7 @@ export default {
if (this.roleType == 'account') {
this.checkBoxs('UserId')
}
- if (
+ if (
(this.roleType == 'onlyRole' && !this.GroupIds.length) ||
(this.roleType == 'onlyRole' && this.GroupIds.length === 1 && this.GroupIds[0] === -1) ||
(this.roleType === 'group' && this.GroupIds.length)
@@ -328,6 +328,8 @@ export default {
})
this.userGroupKeys = datas;
this.GroupIds = datas;
+ } else {
+ this.roleType = 'q';
if (UserList && UserList.length) {
const datas = [];