Parcourir la source

人员设置角色时放开 所属机构类型和角色的限制关系, 能选择所有角色

zhulu il y a 1 an
Parent
commit
24c5740bb5
1 fichiers modifiés avec 6 ajouts et 5 suppressions
  1. 6 5
      src/views/system/user/index.vue

+ 6 - 5
src/views/system/user/index.vue

@@ -435,7 +435,7 @@
                 ref="configSelect"
               >
                 <el-option
-                  v-for="item in roleOptions"
+                  v-for="item in role_options"
                   :key="item.id"
                   :label="item.roleName"
                   :value="item.id"
@@ -776,10 +776,11 @@ export default {
       });
     },
     selectRoles() {
-      selectrolesByOrgId({ orgId: this.form.orgId }).then((res) => {
-        console.log(res, "selectrolesByOrgId");
-        this.roleOptions = res.data;
-      });
+      // 由于保卫科等科室人员 所在机构的类型没法设置,所有在人员设置角色时 先解除 机构类型和角色的限制关系
+      // selectrolesByOrgId({ orgId: this.form.orgId }).then((res) => {
+      //   console.log(res, "selectrolesByOrgId");
+      //   this.roleOptions = res.data;
+      // });
     },
     /** 查询机构树数据 */
     getDeptTree() {