|
|
@ -208,40 +208,40 @@ export const columns: BasicColumn[] = [ |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const formTrend: FormSchema[] = [ |
|
|
// export const formTrend: FormSchema[] = [
|
|
|
{ |
|
|
// {
|
|
|
label: '时间', |
|
|
// label: '时间',
|
|
|
field: 'time', |
|
|
// field: 'time',
|
|
|
show: true, |
|
|
// show: true,
|
|
|
component: 'RangePicker', |
|
|
// component: 'RangePicker',
|
|
|
componentProps: { |
|
|
// componentProps: {
|
|
|
placeholder: ['开始时间', '结束时间'], |
|
|
// placeholder: ['开始时间', '结束时间'],
|
|
|
defaultValue: [moment().subtract(1, 'day').format('YYYY-MM-DD HH:mm:ss'), moment().format('YYYY-MM-DD HH:mm:ss')], |
|
|
// defaultValue: [moment().subtract(1, 'day').format('YYYY-MM-DD HH:mm:ss'), moment().format('YYYY-MM-DD HH:mm:ss')],
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
// valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
|
|
showTime: { |
|
|
// showTime: {
|
|
|
defaultValue: [moment().subtract(1, 'day').format('YYYY-MM-DD HH:mm:ss'), moment().format('YYYY-MM-DD HH:mm:ss')], |
|
|
// defaultValue: [moment().subtract(1, 'day').format('YYYY-MM-DD HH:mm:ss'), moment().format('YYYY-MM-DD HH:mm:ss')],
|
|
|
}, |
|
|
// },
|
|
|
onChange: (e: any) => { |
|
|
// onChange: (e: any) => {
|
|
|
console.log(e) |
|
|
// console.log(e)
|
|
|
}, |
|
|
// },
|
|
|
colProps: { |
|
|
// colProps: {
|
|
|
span: 8, |
|
|
// span: 8,
|
|
|
}, |
|
|
// },
|
|
|
}, |
|
|
// },
|
|
|
}, |
|
|
// },
|
|
|
{ |
|
|
// {
|
|
|
label: '时间间隔', |
|
|
// label: '时间间隔',
|
|
|
field: 'interval', |
|
|
// field: 'interval',
|
|
|
component: 'Select', |
|
|
// component: 'Select',
|
|
|
defaultValue: 60, |
|
|
// defaultValue: 60,
|
|
|
labelWidth:100, |
|
|
// labelWidth:100,
|
|
|
componentProps: { |
|
|
// componentProps: {
|
|
|
options: [{ value: 60, label: '60秒' }, { value: 100, label: '100秒' }, { value: 300, label: '300秒' }], |
|
|
// options: [{ value: 60, label: '60秒' }, { value: 100, label: '100秒' }, { value: 300, label: '300秒' }],
|
|
|
}, |
|
|
// },
|
|
|
required: true, |
|
|
// required: true,
|
|
|
colProps: { |
|
|
// colProps: {
|
|
|
span: 5, |
|
|
// span: 5,
|
|
|
}, |
|
|
// },
|
|
|
}, |
|
|
// },
|
|
|
] |
|
|
// ]
|
|
|
|
|
|
|
|
|
|