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
shenshaokai
jinfa-admin
Commits
fbcfc76c
Commit
fbcfc76c
authored
Nov 18, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改 levelId 为 level
parent
dda9dbc7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
addMember.tsx
src/pages/member/memberMaintain/addMember.tsx
+11
-11
index.tsx
src/pages/member/memberMaintain/schema/index.tsx
+1
-1
No files found.
src/pages/member/memberMaintain/addMember.tsx
View file @
fbcfc76c
...
...
@@ -90,7 +90,7 @@ const AddMember: React.FC<any> = props => {
const
{
memberTypeId
,
roleId
,
level
Id
,
level
,
countryCodeId
,
phone
,
email
,
...
...
@@ -115,7 +115,7 @@ const AddMember: React.FC<any> = props => {
PublicApi
.
postMemberMaintenanceAddmember
({
memberTypeId
,
roleId
,
level
Id
,
level
,
countryCodeId
,
phone
,
email
,
...
...
@@ -143,7 +143,7 @@ const AddMember: React.FC<any> = props => {
validateId
,
memberTypeId
,
roleId
,
level
Id
,
level
,
countryCodeId
,
phone
,
email
,
...
...
@@ -212,8 +212,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 +233,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 +247,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 +257,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 @
fbcfc76c
...
...
@@ -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