|
@@ -1,6 +1,7 @@
|
|
|
import { BasicColumn, FormSchema } from '/@/components/Table';
|
|
import { BasicColumn, FormSchema } from '/@/components/Table';
|
|
|
import { h } from 'vue';
|
|
import { h } from 'vue';
|
|
|
import { Ref } from 'vue';
|
|
import { Ref } from 'vue';
|
|
|
|
|
+import dayjs from 'dayjs';
|
|
|
|
|
|
|
|
// 1. 颜色映射(固定规则,可根据业务调整)
|
|
// 1. 颜色映射(固定规则,可根据业务调整)
|
|
|
export const colorHexMap: Record<string, string> = {
|
|
export const colorHexMap: Record<string, string> = {
|
|
@@ -127,6 +128,32 @@ export function getSearchFormSchema(dynamicStatusOptions: Ref<{ label: string; v
|
|
|
groupName: '常规查询',
|
|
groupName: '常规查询',
|
|
|
show: false,
|
|
show: false,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ field: 'startTime',
|
|
|
|
|
+ label: '起始日期',
|
|
|
|
|
+ component: 'DatePicker',
|
|
|
|
|
+ componentProps: {
|
|
|
|
|
+ //日期格式化,页面上显示的值
|
|
|
|
|
+ format: 'YYYY-MM-DD hh:mm:ss',
|
|
|
|
|
+ //返回值格式化(绑定值的格式)
|
|
|
|
|
+ valueFormat: 'YYYY-MM-DD hh:mm:ss',
|
|
|
|
|
+ },
|
|
|
|
|
+ defaultValue: dayjs().add(-30, 'day').format('YYYY-MM-DD hh:mm:ss'),
|
|
|
|
|
+ colProps: { span: 6 },
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ field: 'endTime',
|
|
|
|
|
+ label: '结束日期',
|
|
|
|
|
+ component: 'DatePicker',
|
|
|
|
|
+ componentProps: {
|
|
|
|
|
+ //日期格式化,页面上显示的值
|
|
|
|
|
+ format: 'YYYY-MM-DD hh:mm:ss',
|
|
|
|
|
+ //返回值格式化(绑定值的格式)
|
|
|
|
|
+ valueFormat: 'YYYY-MM-DD hh:mm:ss',
|
|
|
|
|
+ },
|
|
|
|
|
+ defaultValue: dayjs().format('YYYY-MM-DD hh:mm:ss'),
|
|
|
|
|
+ colProps: { span: 6 },
|
|
|
|
|
+ },
|
|
|
];
|
|
];
|
|
|
return searchFormSchema;
|
|
return searchFormSchema;
|
|
|
}
|
|
}
|