From 7f20ac73b3f8be1d2bab9847466e7d1314e0bc75 Mon Sep 17 00:00:00 2001 From: songguoqiang Date: Fri, 7 Mar 2025 08:32:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E6=96=B9=E6=8E=A5=E5=8F=A3=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../infra/outerApiHis/outerApiHis.data.ts | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/views/infra/outerApiHis/outerApiHis.data.ts b/src/views/infra/outerApiHis/outerApiHis.data.ts index 040e7ec45..10472aa40 100644 --- a/src/views/infra/outerApiHis/outerApiHis.data.ts +++ b/src/views/infra/outerApiHis/outerApiHis.data.ts @@ -99,7 +99,28 @@ export const OuterApiHis = useCrudSchemas(reactive([ field: 'createTime', sort: 'custom', formatter: dateFormatter, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, + isTable:true, isForm: false, + form: { + component: 'DatePicker', + componentProps: { + style: { width: '100%' }, + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x' + } + }, }, { label: '操作',