From 3d0cb5200b3a5f5b9f18bc646484f50a160f7886 Mon Sep 17 00:00:00 2001 From: xingyu Date: Mon, 25 Jul 2022 21:47:22 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E7=BB=9F=E4=B8=80vue3=20vue2=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E5=8C=BA=E9=97=B4=E6=9F=A5=E8=AF=A2=EF=BC=8C?= =?UTF-8?q?=E4=BD=BF=E7=94=A8daterange?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/errorCode/errorCode.data.ts | 5 +++-- .../src/views/system/loginlog/loginLog.data.ts | 5 +++-- .../src/views/system/operatelog/operatelog.data.ts | 5 +++-- yudao-ui-admin-vue3/src/views/system/role/role.data.ts | 5 +++-- .../src/views/system/sms/smsChannel/sms.channel.data.ts | 5 +++-- .../src/views/system/sms/smsLog/sms.log.data.ts | 5 +++-- .../src/views/system/sms/smsTemplate/sms.template.data.ts | 5 +++-- yudao-ui-admin-vue3/src/views/system/user/user.data.ts | 5 +++-- 8 files changed, 24 insertions(+), 16 deletions(-) diff --git a/yudao-ui-admin-vue3/src/views/system/errorCode/errorCode.data.ts b/yudao-ui-admin-vue3/src/views/system/errorCode/errorCode.data.ts index 3d9893cd5..6228b3ccb 100644 --- a/yudao-ui-admin-vue3/src/views/system/errorCode/errorCode.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/errorCode/errorCode.data.ts @@ -61,8 +61,9 @@ const crudSchemas = reactive([ show: true, component: 'DatePicker', componentProps: { - type: 'datetimerange', - valueFormat: 'YYYY-MM-DD HH:mm:ss' + type: 'daterange', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + defaultTime: [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)] } } }, diff --git a/yudao-ui-admin-vue3/src/views/system/loginlog/loginLog.data.ts b/yudao-ui-admin-vue3/src/views/system/loginlog/loginLog.data.ts index 8955d66c0..6d97f7b54 100644 --- a/yudao-ui-admin-vue3/src/views/system/loginlog/loginLog.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/loginlog/loginLog.data.ts @@ -59,8 +59,9 @@ const crudSchemas = reactive([ show: true, component: 'DatePicker', componentProps: { - type: 'datetimerange', - valueFormat: 'YYYY-MM-DD HH:mm:ss' + type: 'daterange', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + defaultTime: [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)] } } }, diff --git a/yudao-ui-admin-vue3/src/views/system/operatelog/operatelog.data.ts b/yudao-ui-admin-vue3/src/views/system/operatelog/operatelog.data.ts index bef057646..32188b10e 100644 --- a/yudao-ui-admin-vue3/src/views/system/operatelog/operatelog.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/operatelog/operatelog.data.ts @@ -88,8 +88,9 @@ const crudSchemas = reactive([ show: true, component: 'DatePicker', componentProps: { - type: 'datetimerange', - valueFormat: 'YYYY-MM-DD HH:mm:ss' + type: 'daterange', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + defaultTime: [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)] } } }, diff --git a/yudao-ui-admin-vue3/src/views/system/role/role.data.ts b/yudao-ui-admin-vue3/src/views/system/role/role.data.ts index 8309ac583..5bfc4f04f 100644 --- a/yudao-ui-admin-vue3/src/views/system/role/role.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/role/role.data.ts @@ -72,8 +72,9 @@ const crudSchemas = reactive([ show: true, component: 'DatePicker', componentProps: { - type: 'datetimerange', - valueFormat: 'YYYY-MM-DD HH:mm:ss' + type: 'daterange', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + defaultTime: [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)] } } }, diff --git a/yudao-ui-admin-vue3/src/views/system/sms/smsChannel/sms.channel.data.ts b/yudao-ui-admin-vue3/src/views/system/sms/smsChannel/sms.channel.data.ts index e51ac93a6..b750fc3e2 100644 --- a/yudao-ui-admin-vue3/src/views/system/sms/smsChannel/sms.channel.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/sms/smsChannel/sms.channel.data.ts @@ -71,8 +71,9 @@ const crudSchemas = reactive([ show: true, component: 'DatePicker', componentProps: { - type: 'datetimerange', - valueFormat: 'YYYY-MM-DD HH:mm:ss' + type: 'daterange', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + defaultTime: [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)] } } }, diff --git a/yudao-ui-admin-vue3/src/views/system/sms/smsLog/sms.log.data.ts b/yudao-ui-admin-vue3/src/views/system/sms/smsLog/sms.log.data.ts index 961ba7810..7ba6fbf7a 100644 --- a/yudao-ui-admin-vue3/src/views/system/sms/smsLog/sms.log.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/sms/smsLog/sms.log.data.ts @@ -84,8 +84,9 @@ const crudSchemas = reactive([ show: true, component: 'DatePicker', componentProps: { - type: 'datetimerange', - valueFormat: 'YYYY-MM-DD HH:mm:ss' + type: 'daterange', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + defaultTime: [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)] } } }, diff --git a/yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/sms.template.data.ts b/yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/sms.template.data.ts index aab42c117..b491db583 100644 --- a/yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/sms.template.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/sms.template.data.ts @@ -82,8 +82,9 @@ const crudSchemas = reactive([ show: true, component: 'DatePicker', componentProps: { - type: 'datetimerange', - valueFormat: 'YYYY-MM-DD HH:mm:ss' + type: 'daterange', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + defaultTime: [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)] } } }, diff --git a/yudao-ui-admin-vue3/src/views/system/user/user.data.ts b/yudao-ui-admin-vue3/src/views/system/user/user.data.ts index 2039bc9fe..b3e0dcb62 100644 --- a/yudao-ui-admin-vue3/src/views/system/user/user.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/user/user.data.ts @@ -115,8 +115,9 @@ const crudSchemas = reactive([ show: true, component: 'DatePicker', componentProps: { - type: 'datetimerange', - valueFormat: 'YYYY-MM-DD HH:mm:ss' + type: 'daterange', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + defaultTime: [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)] } } },