|
|
|
@ -9,6 +9,7 @@ import { ActionType, ProColumns, ProTable } from '@ant-design/pro-components';
|
|
|
|
|
import { PageContainer } from '@ant-design/pro-layout';
|
|
|
|
|
import { Access, Link, useAccess, history } from '@umijs/max';
|
|
|
|
|
import { Button, message } from 'antd';
|
|
|
|
|
import moment from 'moment';
|
|
|
|
|
import React, { useRef } from 'react';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -96,6 +97,15 @@ const TableList: React.FC<{}> = () => {
|
|
|
|
|
return [];
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '创建时间',
|
|
|
|
|
dataIndex: 'pbcCreateAt',
|
|
|
|
|
hideInTable: true,
|
|
|
|
|
fieldProps:{
|
|
|
|
|
maxDate: moment()
|
|
|
|
|
},
|
|
|
|
|
valueType: 'dateRange'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '状态',
|
|
|
|
|
dataIndex: 'pbcState',
|
|
|
|
@ -163,7 +173,12 @@ const TableList: React.FC<{}> = () => {
|
|
|
|
|
columns={columns}
|
|
|
|
|
actionRef={actionRef}
|
|
|
|
|
request={(param: any) => {
|
|
|
|
|
return fetchData(param);
|
|
|
|
|
const queryParam = {
|
|
|
|
|
...param,
|
|
|
|
|
startDate: param.pbcCreateAt && param.pbcCreateAt.length > 1 ? param.pbcCreateAt[0] : undefined,
|
|
|
|
|
endDate: param.pbcCreateAt && param.pbcCreateAt.length > 1 ? param.pbcCreateAt[1] + ' 23:59:59' : undefined
|
|
|
|
|
}
|
|
|
|
|
return fetchData(queryParam);
|
|
|
|
|
}}
|
|
|
|
|
rowKey="pbcId"
|
|
|
|
|
size="small"
|
|
|
|
|