Commit 3d0cb5200b3a5f5b9f18bc646484f50a160f7886
1 parent
e29f4b50
perf: 统一vue3 vue2的时间区间查询,使用daterange
Showing
8 changed files
with
24 additions
and
16 deletions
yudao-ui-admin-vue3/src/views/system/errorCode/errorCode.data.ts
| @@ -61,8 +61,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | @@ -61,8 +61,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | ||
| 61 | show: true, | 61 | show: true, |
| 62 | component: 'DatePicker', | 62 | component: 'DatePicker', |
| 63 | componentProps: { | 63 | componentProps: { |
| 64 | - type: 'datetimerange', | ||
| 65 | - valueFormat: 'YYYY-MM-DD HH:mm:ss' | 64 | + type: 'daterange', |
| 65 | + valueFormat: 'YYYY-MM-DD HH:mm:ss', | ||
| 66 | + defaultTime: [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)] | ||
| 66 | } | 67 | } |
| 67 | } | 68 | } |
| 68 | }, | 69 | }, |
yudao-ui-admin-vue3/src/views/system/loginlog/loginLog.data.ts
| @@ -59,8 +59,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | @@ -59,8 +59,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | ||
| 59 | show: true, | 59 | show: true, |
| 60 | component: 'DatePicker', | 60 | component: 'DatePicker', |
| 61 | componentProps: { | 61 | componentProps: { |
| 62 | - type: 'datetimerange', | ||
| 63 | - valueFormat: 'YYYY-MM-DD HH:mm:ss' | 62 | + type: 'daterange', |
| 63 | + valueFormat: 'YYYY-MM-DD HH:mm:ss', | ||
| 64 | + defaultTime: [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)] | ||
| 64 | } | 65 | } |
| 65 | } | 66 | } |
| 66 | }, | 67 | }, |
yudao-ui-admin-vue3/src/views/system/operatelog/operatelog.data.ts
| @@ -88,8 +88,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | @@ -88,8 +88,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | ||
| 88 | show: true, | 88 | show: true, |
| 89 | component: 'DatePicker', | 89 | component: 'DatePicker', |
| 90 | componentProps: { | 90 | componentProps: { |
| 91 | - type: 'datetimerange', | ||
| 92 | - valueFormat: 'YYYY-MM-DD HH:mm:ss' | 91 | + type: 'daterange', |
| 92 | + valueFormat: 'YYYY-MM-DD HH:mm:ss', | ||
| 93 | + defaultTime: [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)] | ||
| 93 | } | 94 | } |
| 94 | } | 95 | } |
| 95 | }, | 96 | }, |
yudao-ui-admin-vue3/src/views/system/role/role.data.ts
| @@ -72,8 +72,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | @@ -72,8 +72,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | ||
| 72 | show: true, | 72 | show: true, |
| 73 | component: 'DatePicker', | 73 | component: 'DatePicker', |
| 74 | componentProps: { | 74 | componentProps: { |
| 75 | - type: 'datetimerange', | ||
| 76 | - valueFormat: 'YYYY-MM-DD HH:mm:ss' | 75 | + type: 'daterange', |
| 76 | + valueFormat: 'YYYY-MM-DD HH:mm:ss', | ||
| 77 | + defaultTime: [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)] | ||
| 77 | } | 78 | } |
| 78 | } | 79 | } |
| 79 | }, | 80 | }, |
yudao-ui-admin-vue3/src/views/system/sms/smsChannel/sms.channel.data.ts
| @@ -71,8 +71,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | @@ -71,8 +71,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | ||
| 71 | show: true, | 71 | show: true, |
| 72 | component: 'DatePicker', | 72 | component: 'DatePicker', |
| 73 | componentProps: { | 73 | componentProps: { |
| 74 | - type: 'datetimerange', | ||
| 75 | - valueFormat: 'YYYY-MM-DD HH:mm:ss' | 74 | + type: 'daterange', |
| 75 | + valueFormat: 'YYYY-MM-DD HH:mm:ss', | ||
| 76 | + defaultTime: [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)] | ||
| 76 | } | 77 | } |
| 77 | } | 78 | } |
| 78 | }, | 79 | }, |
yudao-ui-admin-vue3/src/views/system/sms/smsLog/sms.log.data.ts
| @@ -84,8 +84,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | @@ -84,8 +84,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | ||
| 84 | show: true, | 84 | show: true, |
| 85 | component: 'DatePicker', | 85 | component: 'DatePicker', |
| 86 | componentProps: { | 86 | componentProps: { |
| 87 | - type: 'datetimerange', | ||
| 88 | - valueFormat: 'YYYY-MM-DD HH:mm:ss' | 87 | + type: 'daterange', |
| 88 | + valueFormat: 'YYYY-MM-DD HH:mm:ss', | ||
| 89 | + defaultTime: [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)] | ||
| 89 | } | 90 | } |
| 90 | } | 91 | } |
| 91 | }, | 92 | }, |
yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/sms.template.data.ts
| @@ -82,8 +82,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | @@ -82,8 +82,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | ||
| 82 | show: true, | 82 | show: true, |
| 83 | component: 'DatePicker', | 83 | component: 'DatePicker', |
| 84 | componentProps: { | 84 | componentProps: { |
| 85 | - type: 'datetimerange', | ||
| 86 | - valueFormat: 'YYYY-MM-DD HH:mm:ss' | 85 | + type: 'daterange', |
| 86 | + valueFormat: 'YYYY-MM-DD HH:mm:ss', | ||
| 87 | + defaultTime: [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)] | ||
| 87 | } | 88 | } |
| 88 | } | 89 | } |
| 89 | }, | 90 | }, |
yudao-ui-admin-vue3/src/views/system/user/user.data.ts
| @@ -115,8 +115,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | @@ -115,8 +115,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | ||
| 115 | show: true, | 115 | show: true, |
| 116 | component: 'DatePicker', | 116 | component: 'DatePicker', |
| 117 | componentProps: { | 117 | componentProps: { |
| 118 | - type: 'datetimerange', | ||
| 119 | - valueFormat: 'YYYY-MM-DD HH:mm:ss' | 118 | + type: 'daterange', |
| 119 | + valueFormat: 'YYYY-MM-DD HH:mm:ss', | ||
| 120 | + defaultTime: [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)] | ||
| 120 | } | 121 | } |
| 121 | } | 122 | } |
| 122 | }, | 123 | }, |