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
17ab5570
Commit
17ab5570
authored
Nov 17, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 levelId 为 level
parent
d85cd3dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
index.tsx
...pages/member/memberImport/components/MemberForm/index.tsx
+11
-11
index.ts
...member/memberImport/components/MemberForm/schema/index.ts
+1
-1
No files found.
src/pages/member/memberImport/components/MemberForm/index.tsx
View file @
17ab5570
...
...
@@ -157,7 +157,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
const
{
memberTypeId
,
roleId
,
level
Id
,
level
,
countryCodeId
,
phone
,
email
,
...
...
@@ -183,7 +183,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
PublicApi
.
postMemberAbilitySubAdd
({
memberTypeId
,
roleId
,
level
Id
,
level
,
countryCodeId
,
phone
,
email
,
...
...
@@ -219,7 +219,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
validateId
,
memberTypeId
,
roleId
,
level
Id
,
level
,
countryCodeId
,
phone
,
email
,
...
...
@@ -294,8 +294,8 @@ const MemberForm: React.FC<MemberFormProps> = ({
linkage
.
value
(
'roleId'
,
undefined
);
linkage
.
enum
(
'roleId'
,
[]);
linkage
.
value
(
'level
Id
'
,
undefined
);
linkage
.
enum
(
'level
Id
'
,
[]);
linkage
.
value
(
'level'
,
undefined
);
linkage
.
enum
(
'level'
,
[]);
// 清空渠道原来数据
linkage
.
value
(
'channelTypeId'
,
undefined
);
...
...
@@ -359,8 +359,8 @@ const MemberForm: React.FC<MemberFormProps> = ({
// 手动触发改变的话重置等级下拉框
onFieldInputChange$
(
'*(memberTypeId,roleId)'
).
subscribe
(()
=>
{
linkage
.
value
(
'level
Id
'
,
undefined
);
linkage
.
enum
(
'level
Id
'
,
[]);
linkage
.
value
(
'level'
,
undefined
);
linkage
.
enum
(
'level'
,
[]);
});
// 根据会员类型和角色,查询等级下拉
...
...
@@ -373,7 +373,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
const
otherValue
=
formActions
.
getFieldState
(
otherName
,
state
=>
state
.
value
);
if
(
selfValue
&&
otherValue
)
{
linkage
.
loading
(
'level
Id
'
);
linkage
.
loading
(
'level'
);
PublicApi
.
getMemberAbilitySubPageitemsLevel
({
memberTypeId
:
selfName
==
'memberTypeId'
?
selfValue
:
otherValue
,
...
...
@@ -383,11 +383,11 @@ const MemberForm: React.FC<MemberFormProps> = ({
}).
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/memberImport/components/MemberForm/schema/index.ts
View file @
17ab5570
...
...
@@ -83,7 +83,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