Commit f8762f54 authored by XieZhiXiong's avatar XieZhiXiong

feat: 添加 paas开启多租户 显示上级会员名称下拉框 UI

parent 3750ed22
......@@ -411,6 +411,8 @@ export default {
'member.memberQuery.components.AddRoleDrawer.memberTypeId.rules-required':'Please select the membership type',
'member.memberQuery.components.AddRoleDrawer.roleId':'Member Role',
'member.memberQuery.components.AddRoleDrawer.roleId.rules-required':'Please select a member role',
'member.memberQuery.components.AddRoleDrawer.upperMember': 'Upper Member',
'member.memberQuery.components.AddRoleDrawer.upperMember.required': 'Please select the upper member',
'member.memberQuery.detailed.archiveInfo.inspectionColumns.id':'Serial Number',
'member.memberQuery.detailed.archiveInfo.inspectionColumns.subject':'Inspection Subject',
'member.memberQuery.detailed.archiveInfo.inspectionColumns.inspectTypeName':'Inspection Type',
......
......@@ -403,6 +403,8 @@ export default {
'member.memberQuery.components.AddRoleDrawer.memberTypeId.rules-required': '회원 유형 선택',
'member.memberQuery.components.AddRoleDrawer.roleId': '회원 역할',
'member.memberQuery.components.AddRoleDrawer.roleId.rules-required': '회원 캐릭터를 선택하세요',
'member.memberQuery.components.AddRoleDrawer.upperMember': '상위 멤버',
'member.memberQuery.components.AddRoleDrawer.upperMember.required': '상위 멤버를 선택하세요.',
'member.memberQuery.detailed.archiveInfo.inspectionColumns.id': '번호',
'member.memberQuery.detailed.archiveInfo.inspectionColumns.subject': '주제를 고찰하다',
'member.memberQuery.detailed.archiveInfo.inspectionColumns.inspectTypeName': '고찰 유형',
......
......@@ -407,6 +407,8 @@ export default {
'member.memberQuery.components.AddRoleDrawer.memberTypeId.rules-required': '请选择会员类型',
'member.memberQuery.components.AddRoleDrawer.roleId': '会员角色',
'member.memberQuery.components.AddRoleDrawer.roleId.rules-required': '请选择会员角色',
'member.memberQuery.components.AddRoleDrawer.upperMember': '上级会员名称',
'member.memberQuery.components.AddRoleDrawer.upperMember.required': '请选择上级会员名称',
'member.memberQuery.detailed.archiveInfo.inspectionColumns.id': '序号',
'member.memberQuery.detailed.archiveInfo.inspectionColumns.subject': '考察主题',
'member.memberQuery.detailed.archiveInfo.inspectionColumns.inspectTypeName': '考察类型',
......
......@@ -20,6 +20,7 @@ import {
} from '@formily/antd';
import { useLinkageUtils } from '@/utils/formEffectUtils';
import { getMemberAbilityInfoMembertypeList, getMemberAbilityInfoRoleList } from '@/services/MemberV2Api';
import BASE_CONFIG from '@/../config/base.config.json';
import schema from './schema';
const formActions = createFormActions();
......@@ -151,6 +152,7 @@ const AddRoleDrawer: React.FC<IProps> = (props: IProps) => {
}}
effects={($, { setFieldState, getFieldValue }) => {
const linkage = useLinkageUtils();
onFieldValueChange$('agree').subscribe(fieldState => {
setFieldState('reason', state => {
state.visible = !fieldState.value;
......@@ -178,6 +180,11 @@ const AddRoleDrawer: React.FC<IProps> = (props: IProps) => {
linkage.loaded('roleId');
});
});
// 如果【PAAS-站点管理】未勾选【SAAS多租户部署】,隐藏上级会员名称选择框
if (!BASE_CONFIG.global.siteInfo.enableMultiTenancy) {
linkage.hide('upperMemberId');
}
}}
actions={formActions}
schema={schema}
......
......@@ -24,11 +24,22 @@ const schema: ISchema = {
type: 'object',
'x-component': 'Mega-Layout',
'x-component-props': {
labelCol: 4,
wrapperCol: 20,
labelCol: 5,
wrapperCol: 18,
labelAlign: 'left',
},
properties: {
upperMemberId: {
type: 'string',
title: intl.formatMessage({ id: 'member.memberQuery.components.AddRoleDrawer.upperMember' }),
'x-rules': [
{
required: true,
message: intl.formatMessage({ id: 'member.memberQuery.components.AddRoleDrawer.upperMember.required' }),
},
],
enum: [],
},
memberTypeId: {
type: 'string',
title: intl.formatMessage({ id: 'member.memberQuery.components.AddRoleDrawer.memberTypeId' }),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment