zhaoke 3 سال پیش
والد
کامیت
07077c81da
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 1 1
      src/components/rolelist/index.vue
  2. 2 0
      src/views/staffManagement/compontents/staffEdit.vue

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

@@ -173,7 +173,7 @@ export default {
           if (this.roleType == 'account') {
           if (this.roleType == 'account') {
             this.checkBoxs('UserId')
             this.checkBoxs('UserId')
           }
           }
-           if (
+          if (
             (this.roleType == 'onlyRole' && !this.GroupIds.length) ||
             (this.roleType == 'onlyRole' && !this.GroupIds.length) ||
             (this.roleType == 'onlyRole' && this.GroupIds.length === 1 && this.GroupIds[0] === -1) ||
             (this.roleType == 'onlyRole' && this.GroupIds.length === 1 && this.GroupIds[0] === -1) ||
             (this.roleType === 'group' && this.GroupIds.length)
             (this.roleType === 'group' && this.GroupIds.length)

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

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