zhaoke 3 жил өмнө
parent
commit
07077c81da

+ 1 - 1
src/components/rolelist/index.vue

@@ -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)

+ 2 - 0
src/views/staffManagement/compontents/staffEdit.vue

@@ -328,6 +328,8 @@ export default {
             })
             this.userGroupKeys = datas;
             this.GroupIds = datas;
+          } else {
+            this.roleType = 'q';
           }
           if (UserList && UserList.length) {
             const datas = [];