Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
merchant-manage-ui
Commits
b5589791
Commit
b5589791
authored
Mar 14, 2023
by
张子雨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into feat/sentry
* master: fix: 修改商品导出传参问题 feat: 修复tab切换页码问题 feat: 修改分页传参字段
parents
6e3fe22d
3581b8d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
index.jsx
src/pages/AfterSaleManage/index.jsx
+7
-4
index.jsx
src/pages/GoodsManage/SearchForm/index.jsx
+6
-1
No files found.
src/pages/AfterSaleManage/index.jsx
View file @
b5589791
...
@@ -255,7 +255,10 @@ const AfterSale = props => {
...
@@ -255,7 +255,10 @@ const AfterSale = props => {
const
tabChange
=
tabIndex
=>
{
const
tabChange
=
tabIndex
=>
{
setCurrentTab
(
tabIndex
);
setCurrentTab
(
tabIndex
);
const
{
type
,
dealStatus
}
=
TAB_MAPPING_DATA
[
tabIndex
];
const
{
type
,
dealStatus
}
=
TAB_MAPPING_DATA
[
tabIndex
];
form
.
resetFields
();
form
.
resetFields
();
// 清空页码
actionRef
.
current
.
reloadAndRest
();
form
.
setFieldsValue
({
form
.
setFieldsValue
({
...
tableParams
,
...
tableParams
,
dealStatus
,
dealStatus
,
...
@@ -332,20 +335,20 @@ const AfterSale = props => {
...
@@ -332,20 +335,20 @@ const AfterSale = props => {
scroll
:
{
x
:
'
100%
'
,
y
:
tableScrollY
},
scroll
:
{
x
:
'
100%
'
,
y
:
tableScrollY
},
rowKey
:
r
=>
r
.
serviceNo
,
rowKey
:
r
=>
r
.
serviceNo
,
request
:
async
params
=>
{
request
:
async
params
=>
{
console
.
log
(
params
);
const
[
start
,
end
]
=
params
.
afterTime
||
afterTime
;
const
[
start
,
end
]
=
params
.
afterTime
||
afterTime
;
const
{
current
:
page
,
pageSize
:
s
ize
}
=
params
;
const
{
current
:
page
No
,
pageS
ize
}
=
params
;
const
startDate
=
start
?
moment
(
start
).
format
(
'
YYYY-MM-DD
'
)
:
''
;
const
startDate
=
start
?
moment
(
start
).
format
(
'
YYYY-MM-DD
'
)
:
''
;
const
endDate
=
end
?
moment
(
end
).
format
(
'
YYYY-MM-DD
'
)
:
''
;
const
endDate
=
end
?
moment
(
end
).
format
(
'
YYYY-MM-DD
'
)
:
''
;
const
requestParams
=
{
const
requestParams
=
{
page
,
page
No
,
s
ize
,
pageS
ize
,
...
params
,
...
params
,
startDate
,
startDate
,
endDate
,
endDate
,
};
};
delete
requestParams
.
afterTime
;
delete
requestParams
.
afterTime
;
delete
requestParams
.
current
;
delete
requestParams
.
current
;
delete
requestParams
.
pageSize
;
const
countRes
=
await
getAfterPendingNum
({
const
countRes
=
await
getAfterPendingNum
({
startDate
,
startDate
,
endDate
,
endDate
,
...
...
src/pages/GoodsManage/SearchForm/index.jsx
View file @
b5589791
...
@@ -84,7 +84,12 @@ class goodsManage extends Component {
...
@@ -84,7 +84,12 @@ class goodsManage extends Component {
loading
:
true
,
loading
:
true
,
});
});
const
form
=
this
.
formRef
?.
current
?.
getFieldValue
();
const
form
=
this
.
formRef
?.
current
?.
getFieldValue
();
const
res
=
await
apiGoodsInfosExport
(
form
);
const
params
=
Object
.
assign
({},
form
);
const
productCategoryId
=
form
?.
productCategoryId
||
[];
if
(
productCategoryId
.
length
)
{
params
.
productCategoryId
=
productCategoryId
[
productCategoryId
.
length
-
1
]
||
''
;
}
const
res
=
await
apiGoodsInfosExport
(
params
);
this
.
setState
({
this
.
setState
({
loading
:
false
,
loading
:
false
,
});
});
...
...
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