Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
f8762f54
Commit
f8762f54
authored
Mar 14, 2022
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加 paas开启多租户 显示上级会员名称下拉框 UI
parent
3750ed22
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
2 deletions
+26
-2
member.ts
src/locales/en-US/member.ts
+2
-0
member.ts
src/locales/ko-KR/member.ts
+2
-0
member.ts
src/locales/zh-CN/member.ts
+2
-0
index.tsx
...ges/member/memberQuery/components/AddRoleDrawer/index.tsx
+7
-0
schema.ts
...ges/member/memberQuery/components/AddRoleDrawer/schema.ts
+13
-2
No files found.
src/locales/en-US/member.ts
View file @
f8762f54
...
...
@@ -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'
,
...
...
src/locales/ko-KR/member.ts
View file @
f8762f54
...
...
@@ -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'
:
'고찰 유형'
,
...
...
src/locales/zh-CN/member.ts
View file @
f8762f54
...
...
@@ -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'
:
'考察类型'
,
...
...
src/pages/member/memberQuery/components/AddRoleDrawer/index.tsx
View file @
f8762f54
...
...
@@ -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
}
...
...
src/pages/member/memberQuery/components/AddRoleDrawer/schema.ts
View file @
f8762f54
...
...
@@ -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'
}),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment