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
a3884c1b
Commit
a3884c1b
authored
Apr 21, 2022
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复编辑会员信息展示会员等级为0的问题
parent
3dd0d89b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
index.tsx
...pages/member/memberImport/components/MemberForm/index.tsx
+3
-0
index.tsx
...ges/supplier/memberImport/components/MemberForm/index.tsx
+2
-0
No files found.
src/pages/member/memberImport/components/MemberForm/index.tsx
View file @
a3884c1b
...
...
@@ -132,6 +132,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
outerStatusName
,
roleName
,
verifySteps
,
level
,
...
rest
}
=
infoRes
.
data
;
// 注册资料处理
...
...
@@ -192,6 +193,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
areas
:
areaCodes
,
channelLevel
:
channelLevelTag
,
upperRelationId
:
upperMemberId
,
level
:
level
||
undefined
,
...
detail
,
});
...
...
@@ -474,6 +476,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
if
(
res
.
code
===
1000
)
{
const
{
data
=
[]
}
=
res
;
const
options
=
data
.
map
(
item
=>
({
label
:
item
.
levelTag
,
value
:
item
.
level
})).
filter
((
item
)
=>
item
.
value
);
console
.
log
(
'optionsoptionsoptions'
,
options
)
linkage
.
enum
(
'level'
,
options
);
}
}).
catch
((
err
)
=>
{
...
...
src/pages/supplier/memberImport/components/MemberForm/index.tsx
View file @
a3884c1b
...
...
@@ -132,6 +132,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
outerStatusName
,
roleName
,
verifySteps
,
level
,
...
rest
}
=
infoRes
.
data
;
// 注册资料处理
...
...
@@ -192,6 +193,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
areas
:
areaCodes
,
channelLevel
:
channelLevelTag
,
upperRelationId
:
upperMemberId
,
level
:
level
||
undefined
,
...
detail
,
});
...
...
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