43 lines
850 B
TypeScript
43 lines
850 B
TypeScript
import dayjs from 'dayjs';
|
|
|
|
export const columns = [
|
|
{
|
|
title: 'ID',
|
|
dataIndex: 'id',
|
|
resizable: true,
|
|
ifShow: false,
|
|
},
|
|
{
|
|
title: '时间',
|
|
dataIndex: 'time',
|
|
resizable: true,
|
|
width: 100,
|
|
},
|
|
{
|
|
title: '名称',
|
|
dataIndex: 'name',
|
|
resizable: true,
|
|
width: 100,
|
|
},
|
|
{
|
|
title: '地址',
|
|
dataIndex: 'geoserver',
|
|
resizable: true,
|
|
width: 100,
|
|
},
|
|
];
|
|
|
|
export const searchFormSchema = [
|
|
{
|
|
field: '[startTime, endTime]',
|
|
label: '日期范围',
|
|
component: 'RangePicker',
|
|
colProps: { span: 8 },
|
|
componentProps: {
|
|
format: 'YYYY-MM',
|
|
picker: 'month',
|
|
placeholder: ['开始日期', '结束日期'],
|
|
defaultValue: [dayjs(dayjs(), 'YYYY-MM-DD'), dayjs(dayjs(), 'YYYY-MM-DD')]
|
|
},
|
|
},
|
|
]; |