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
陈智峰
jinfa-platform
Commits
e5d4e79b
Commit
e5d4e79b
authored
Jan 13, 2022
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复fetch init字段对不上导致数据出不来的问题
parent
8f0ba24b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
index.tsx
...Ability/merchantCoupon/components/DeliverCoupon/index.tsx
+4
-5
No files found.
src/pages/transaction/marketingAbility/merchantCoupon/components/DeliverCoupon/index.tsx
View file @
e5d4e79b
...
...
@@ -299,17 +299,16 @@ const DeliverCoupon: React.FC<IProps> = (props) => {
});
if
(
res
.
code
===
1000
)
{
const
{
data
=
{}
}:
any
=
res
;
const
{
memberTypes
=
[],
levels
=
[],
suitableMemberTypes
=
[],
}
=
data
;
}
=
res
.
data
;
return
{
memberType
:
memberTypes
.
map
(
item
=>
({
label
:
item
.
memberTypeName
,
value
:
item
.
memberTypeId
})),
memberType
Enum
:
memberTypes
.
map
(
item
=>
({
label
:
item
.
memberTypeName
,
value
:
item
.
memberTypeId
})),
level
:
levels
.
map
(
item
=>
({
label
:
item
.
levelTag
,
value
:
item
.
level
})),
suitableMemberType
:
suitableMemberTypes
.
map
(
item
=>
({
label
:
item
.
name
,
value
:
item
.
value
})),
suitableMemberType
:
suitableMemberTypes
?
.
map
(
item
=>
({
label
:
item
.
name
,
value
:
item
.
value
})),
};
}
return
{};
...
...
@@ -406,7 +405,7 @@ const DeliverCoupon: React.FC<IProps> = (props) => {
FORM_FILTER_PATH
,
);
useAsyncInitSelect
(
[
'memberType'
,
'level'
,
'suitableMemberType'
],
[
'memberType
Enum
'
,
'level'
,
'suitableMemberType'
],
fetchSelectOptions
,
);
},
...
...
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