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
d4ec8de0
Commit
d4ec8de0
authored
Sep 18, 2021
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix(营销活动): 修复商品选择分页输入的问题
parent
ab54e95f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
index.tsx
...n/marketingAbility/components/productListLayout/index.tsx
+8
-9
No files found.
src/pages/transaction/marketingAbility/components/productListLayout/index.tsx
View file @
d4ec8de0
...
...
@@ -45,16 +45,18 @@ const ProductListLayout: React.FC<ProductListProps> = (props: any) => {
const
[
collocation
,
setCollocation
]
=
useState
<
any
[]
>
([]);
const
[
current
,
setCurrent
]
=
useState
<
number
>
(
1
);
const
handleOnShowSizeChange
=
(
current
,
_size
)
=>
{
setCurrent
(
current
)
}
const
handlesStFieldsValue
=
()
=>
{
const
params
=
[...
dataSource
];
const
_pagination
=
(
current
-
1
)
*
10
;
params
.
forEach
((
_item
,
_i
)
=>
{
const
index
=
Number
(
_pagination
+
_i
)
form
.
setFieldsValue
({
[
`plummetPrice_
${
index
}
`
]:
_item
.
plummetPrice
,
[
`activityPrice_
${
index
}
`
]:
_item
.
activityPrice
,
[
`restrictNum_
${
index
}
`
]:
_item
.
restrictNum
,
[
`restrictTotalNum_
${
index
}
`
]:
_item
.
restrictTotalNum
,
[
`plummetPrice_
${
_i
}
`
]:
_item
.
plummetPrice
,
[
`activityPrice_
${
_i
}
`
]:
_item
.
activityPrice
,
[
`restrictNum_
${
_i
}
`
]:
_item
.
restrictNum
,
[
`restrictTotalNum_
${
_i
}
`
]:
_item
.
restrictTotalNum
,
})
})
}
...
...
@@ -183,9 +185,6 @@ const ProductListLayout: React.FC<ProductListProps> = (props: any) => {
setDataSource
(
fields
)
}
const
handleOnShowSizeChange
=
(
current
,
_size
)
=>
{
setCurrent
(
current
)
}
return
(
<
CardLayout
...
...
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