Commit 50576feb authored by 武广's avatar 武广

Merge branch 'fix/interface' into 'master'

feat: 修改分页传参字段

See merge request !76
parents f9a4fdd5 59513ccd
......@@ -255,7 +255,10 @@ const AfterSale = props => {
const tabChange = tabIndex => {
setCurrentTab(tabIndex);
const { type, dealStatus } = TAB_MAPPING_DATA[tabIndex];
form.resetFields();
// 清空页码
actionRef.current.reloadAndRest();
form.setFieldsValue({
...tableParams,
dealStatus,
......@@ -332,20 +335,20 @@ const AfterSale = props => {
scroll: { x: '100%', y: tableScrollY },
rowKey: r => r.serviceNo,
request: async params => {
console.log(params);
const [start, end] = params.afterTime || afterTime;
const { current: page, pageSize: size } = params;
const { current: pageNo, pageSize } = params;
const startDate = start ? moment(start).format('YYYY-MM-DD') : '';
const endDate = end ? moment(end).format('YYYY-MM-DD') : '';
const requestParams = {
page,
size,
pageNo,
pageSize,
...params,
startDate,
endDate,
};
delete requestParams.afterTime;
delete requestParams.current;
delete requestParams.pageSize;
const countRes = await getAfterPendingNum({
startDate,
endDate,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment