mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 10:18:42 +08:00 
			
		
		
		
	perf: 统一vue3 vue2的时间区间查询,使用daterange
This commit is contained in:
		| @@ -61,8 +61,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | ||||
|       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)] | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   | ||||
| @@ -59,8 +59,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | ||||
|       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)] | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   | ||||
| @@ -88,8 +88,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | ||||
|       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)] | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   | ||||
| @@ -72,8 +72,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | ||||
|       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)] | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   | ||||
| @@ -71,8 +71,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | ||||
|       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)] | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   | ||||
| @@ -84,8 +84,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | ||||
|       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)] | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   | ||||
| @@ -82,8 +82,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | ||||
|       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)] | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   | ||||
| @@ -115,8 +115,9 @@ const crudSchemas = reactive<CrudSchema[]>([ | ||||
|       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)] | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 xingyu
					xingyu