|
|
@ -67,8 +67,13 @@ const TableList: React.FC<{}> = () => {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '扫码时间',
|
|
|
|
title: '扫码时间',
|
|
|
|
dataIndex: 'pbcCreateAt',
|
|
|
|
dataIndex: 'pbcCreateAt',
|
|
|
|
valueType: 'dateTimeRange',
|
|
|
|
search: false
|
|
|
|
render: (text, record) => record.pbcCreateAt
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
title: '扫码时间',
|
|
|
|
|
|
|
|
dataIndex: 'pbcCreateAt',
|
|
|
|
|
|
|
|
valueType: 'dateRange',
|
|
|
|
|
|
|
|
hideInTable: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
];
|
|
|
|
];
|
|
|
|
return (
|
|
|
|
return (
|
|
|
@ -86,7 +91,7 @@ const TableList: React.FC<{}> = () => {
|
|
|
|
...param,
|
|
|
|
...param,
|
|
|
|
pbcNewCodeScanState: param.pbcUserType,
|
|
|
|
pbcNewCodeScanState: param.pbcUserType,
|
|
|
|
startDate: param.pbcCreateAt && param.pbcCreateAt.length > 1 ? param.pbcCreateAt[0] : undefined,
|
|
|
|
startDate: param.pbcCreateAt && param.pbcCreateAt.length > 1 ? param.pbcCreateAt[0] : undefined,
|
|
|
|
endDate: param.pbcCreateAt && param.pbcCreateAt.length > 1 ? param.pbcCreateAt[1] : undefined
|
|
|
|
endDate: param.pbcCreateAt && param.pbcCreateAt.length > 1 ? param.pbcCreateAt[1] + ' 23:59:59' : undefined
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return fetchData(queryParam);
|
|
|
|
return fetchData(queryParam);
|
|
|
|
}}
|
|
|
|
}}
|
|
|
@ -102,11 +107,10 @@ const TableList: React.FC<{}> = () => {
|
|
|
|
actions: [
|
|
|
|
actions: [
|
|
|
|
<Button type="primary" key="export" onClick={() => {
|
|
|
|
<Button type="primary" key="export" onClick={() => {
|
|
|
|
const values: any = ref.current?.getFieldsValue();
|
|
|
|
const values: any = ref.current?.getFieldsValue();
|
|
|
|
console.log(values)
|
|
|
|
|
|
|
|
const queryParam = {
|
|
|
|
const queryParam = {
|
|
|
|
pbcNewCodeScanState: values.pbcUserType,
|
|
|
|
pbcNewCodeScanState: values.pbcUserType,
|
|
|
|
startDate: values?.pbcCreateAt && values?.pbcCreateAt.length > 1 ? moment(values?.pbcCreateAt[0]).format("YYYY-MM-DD HH:mm:ss") : undefined,
|
|
|
|
startDate: values?.pbcCreateAt && values?.pbcCreateAt.length > 1 ? moment(values?.pbcCreateAt[0]).format("YYYY-MM-DD HH:mm:ss") : undefined,
|
|
|
|
endDate: values?.pbcCreateAt && values?.pbcCreateAt.length > 1 ? moment(values?.pbcCreateAt[1]).format("YYYY-MM-DD HH:mm:ss") : undefined
|
|
|
|
endDate: values?.pbcCreateAt && values?.pbcCreateAt.length > 1 ? moment(values?.pbcCreateAt[1]).format("YYYY-MM-DD") + ' 23:59:59' : undefined
|
|
|
|
}
|
|
|
|
}
|
|
|
|
handleExport(queryParam)
|
|
|
|
handleExport(queryParam)
|
|
|
|
}}>导出</Button>
|
|
|
|
}}>导出</Button>
|
|
|
|