zhaoke 3 жил өмнө
parent
commit
ba89f16636

+ 7 - 11
src/views/staffManagement/compontents/staffEdit.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2022-02-10 14:49:20
- * @LastEditTime: 2022-02-14 11:14:55
+ * @LastEditTime: 2022-02-14 11:42:37
  * @LastEditors: Please set LastEditors
  * @Description: 编辑职员
  * @FilePath: \Foshan4A4.0\src\views\staffManagement\compontents\staffEdit.vue
@@ -58,7 +58,7 @@
           </div>
           <div class="flex1 part">
             <Rulesofcompetency style="height: 512px" class="hucPower" :authList="authList" :authTo="authTo" @getData="getData" title="权限规则" />
-            <Loginpolicy style="margin-top: 24px; height: calc(100% - 24px - 512px)" :imageSize="120" :checkedList="checkedList" @getCheckedList="getCheckedList" title="登录策略" />
+            <Loginpolicy style="margin-top: 24px; height: calc(100% - 24px - 512px)" :imageSize="20" :checkedList="checkedList" @getCheckedList="getCheckedList" title="登录策略" />
           </div>
         </template>
         <!--有角色 无账号组-->
@@ -91,7 +91,7 @@
           </div>
           <div class="flex1 part">
             <Rulesofcompetency style="height: 512px" class="hucPower" :authList="authList" :authTo="authTo" @getData="getData" title="权限规则" />
-            <Loginpolicy style="margin-top: 24px; height: calc(100% - 24px - 512px)" :imageSize="120" :checkedList="checkedList" @getCheckedList="getCheckedList" title="登录策略" />
+            <Loginpolicy style="margin-top: 24px; height: calc(100% - 24px - 512px)" :imageSize="20" :checkedList="checkedList" @getCheckedList="getCheckedList" title="登录策略" />
           </div>
         </template>
       </template>
@@ -239,13 +239,9 @@ export default {
     this.openRole = OpenRole;
     this.OpenGroup = OpenGroup;
     this.OpenAuthData = UserOfficerMulti;
-    // if (!OpenRole) {
-    //   if (OrganId == -1) {
-    //     this.queryType = "all";
-    //   } else {
-    //     this.queryType = "origin";
-    //   }
-    // }
+    if (OpenGroup || !OpenGroup && !OpenRole) {
+      this.queryType = "all";
+    }
     this.getOfficerDetails(OfficerId);
   },
   methods: {
@@ -300,7 +296,7 @@ export default {
           if (RoleList && RoleList.length) {
             this.roleCheckBoxs = RoleList;
             this.checkRoles = RoleList;
-            if (this.openRole && this.OpenGroup) {
+            if (this.openRole && this.OpenGroup && !this.OpenAuthData) {
               this.roleType = 'role';
             }
           }