Pārlūkot izejas kodu

fix: #9610 用户管理 版本回滚,无部门或者角色权限,新增时可以选择

jackhoo_98 3 gadi atpakaļ
vecāks
revīzija
e1926f1929
1 mainītis faili ar 2 papildinājumiem un 4 dzēšanām
  1. 2 4
      src/pages/system/User/Save/index.tsx

+ 2 - 4
src/pages/system/User/Save/index.tsx

@@ -331,10 +331,9 @@ const Save = (props: Props) => {
             'x-decorator': 'FormItem',
             'x-decorator': 'FormItem',
             'x-component': 'Select',
             'x-component': 'Select',
             'x-component-props': {
             'x-component-props': {
-              disabled: !rolePermission.view,
               mode: 'multiple',
               mode: 'multiple',
               showArrow: true,
               showArrow: true,
-              placeholder: !rolePermission.view ? '暂无权限,请联系管理员' : '请选择角色',
+              placeholder: '请选择角色',
               filterOption: (input: string, option: any) =>
               filterOption: (input: string, option: any) =>
                 option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0,
                 option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0,
             },
             },
@@ -374,10 +373,9 @@ const Save = (props: Props) => {
             'x-decorator': 'FormItem',
             'x-decorator': 'FormItem',
             'x-component': 'TreeSelect',
             'x-component': 'TreeSelect',
             'x-component-props': {
             'x-component-props': {
-              disabled: !deptPermission.view,
               multiple: true,
               multiple: true,
               showArrow: true,
               showArrow: true,
-              placeholder: !deptPermission.view ? '暂无权限,请联系管理员' : '请选择组织',
+              placeholder: '请选择组织',
               showCheckedStrategy: ATreeSelect.SHOW_ALL,
               showCheckedStrategy: ATreeSelect.SHOW_ALL,
               filterOption: (input: string, option: any) =>
               filterOption: (input: string, option: any) =>
                 option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0,
                 option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0,