From 39faefcfd6e3e642e6a39e3d468c6b5c8978bf02 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 27 Dec 2024 18:48:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E4=BD=93=E5=87=BA=E5=8E=82=E6=A3=80?= =?UTF-8?q?=E9=AA=8C=E6=97=B6=E9=97=B4=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/battery/monomer/monomer.data.ts | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/views/battery/monomer/monomer.data.ts b/src/views/battery/monomer/monomer.data.ts index 0f2b92a..5e987db 100644 --- a/src/views/battery/monomer/monomer.data.ts +++ b/src/views/battery/monomer/monomer.data.ts @@ -45,12 +45,26 @@ export const Monomer = useCrudSchemas(reactive([ field: 'date', sort: 'custom', isSearch: false, + form: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'datetime', + } + }, }, { label: '数据报送时间', field: 'timeStamp', sort: 'custom', isSearch: false, + form: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'datetime', + } + }, }, { label: '工作控制号', @@ -63,6 +77,13 @@ export const Monomer = useCrudSchemas(reactive([ field: 'endTime', sort: 'custom', isSearch: false, + form: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'datetime', + } + }, }, { label: '实际生产周期', @@ -518,7 +539,7 @@ export const Monomer = useCrudSchemas(reactive([ component: 'DatePicker', componentProps: { valueFormat: 'YYYY-MM-DD HH:mm:ss', - type: 'daterange', + type: 'datetimerange', defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] } },