Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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
project
jinfa-admin
Commits
84e18af8
Commit
84e18af8
authored
Nov 18, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
4312d6c1
d765b7a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
addMember.tsx
src/pages/member/memberMaintain/addMember.tsx
+11
-12
index.tsx
src/pages/member/memberMaintain/schema/index.tsx
+1
-1
No files found.
src/pages/member/memberMaintain/addMember.tsx
View file @
84e18af8
...
...
@@ -90,7 +90,7 @@ const AddMember: React.FC<any> = props => {
const
{
memberTypeId
,
roleId
,
level
Id
,
level
,
countryCodeId
,
phone
,
email
,
...
...
@@ -100,7 +100,6 @@ const AddMember: React.FC<any> = props => {
statusName
,
currentOuterStep
,
level
,
outerVerifySteps
,
validateId
,
...
rest
...
...
@@ -115,7 +114,7 @@ const AddMember: React.FC<any> = props => {
PublicApi
.
postMemberMaintenanceAddmember
({
memberTypeId
,
roleId
,
level
Id
,
level
,
countryCodeId
,
phone
,
email
,
...
...
@@ -143,7 +142,7 @@ const AddMember: React.FC<any> = props => {
validateId
,
memberTypeId
,
roleId
,
level
Id
,
level
,
countryCodeId
,
phone
,
email
,
...
...
@@ -212,8 +211,8 @@ const AddMember: React.FC<any> = props => {
}
linkage
.
value
(
'roleId'
,
undefined
);
linkage
.
enum
(
'roleId'
,
[]);
linkage
.
value
(
'level
Id
'
,
undefined
);
linkage
.
enum
(
'level
Id
'
,
[]);
linkage
.
value
(
'level'
,
undefined
);
linkage
.
enum
(
'level'
,
[]);
});
// 根据会员角色,查询其他注册资料
...
...
@@ -233,8 +232,8 @@ const AddMember: React.FC<any> = props => {
// 手动触发改变的话重置等级下拉框
onFieldInputChange$
(
'*(memberTypeId,roleId)'
).
subscribe
(()
=>
{
linkage
.
value
(
'level
Id
'
,
undefined
);
linkage
.
enum
(
'level
Id
'
,
[]);
linkage
.
value
(
'level'
,
undefined
);
linkage
.
enum
(
'level'
,
[]);
});
// 根据会员类型和角色,查询等级下拉
...
...
@@ -247,7 +246,7 @@ const AddMember: React.FC<any> = props => {
const
otherValue
=
formActions
.
getFieldState
(
otherName
,
state
=>
state
.
value
);
if
(
selfValue
&&
otherValue
)
{
linkage
.
loading
(
'level
Id
'
);
linkage
.
loading
(
'level'
);
PublicApi
.
getMemberMaintenanceAddpageitemsLevel
({
memberTypeId
:
selfName
==
'memberTypeId'
?
selfValue
:
otherValue
,
...
...
@@ -257,11 +256,11 @@ const AddMember: React.FC<any> = props => {
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
const
{
data
=
[]
}
=
res
;
const
options
=
data
.
map
(
item
=>
({
label
:
item
.
levelTag
,
value
:
item
.
level
Id
}));
linkage
.
enum
(
'level
Id
'
,
options
);
const
options
=
data
.
map
(
item
=>
({
label
:
item
.
levelTag
,
value
:
item
.
level
}));
linkage
.
enum
(
'level'
,
options
);
}
}).
finally
(()
=>
{
linkage
.
loaded
(
'level
Id
'
);
linkage
.
loaded
(
'level'
);
});
}
},
0
);
...
...
src/pages/member/memberMaintain/schema/index.tsx
View file @
84e18af8
...
...
@@ -245,7 +245,7 @@ export const initDetailSchema = (props: any) => {
hasFeedback
:
true
,
},
},
level
Id
:
{
level
:
{
type
:
'string'
,
required
:
true
,
title
:
'会员等级'
,
...
...
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