From 67349e24d80dfa98e7788d4685dd2b9a341b0dbf Mon Sep 17 00:00:00 2001 From: zhongzm Date: Wed, 20 Nov 2024 16:59:36 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=97=A5=E6=9C=9F=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=99=A8=E5=B1=9E=E6=80=A7=E5=BC=83=E7=94=A8=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/perfManage/kpiCReport/index.vue | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/views/perfManage/kpiCReport/index.vue b/src/views/perfManage/kpiCReport/index.vue index 1a5ca6dc..5bf53feb 100644 --- a/src/views/perfManage/kpiCReport/index.vue +++ b/src/views/perfManage/kpiCReport/index.vue @@ -81,17 +81,13 @@ let neCascaderOptions = ref[]>([]); let queryRangePicker = ref<[string, string]>(['', '']); /**时间选择 */ -let ranges = ref>({ - [t('views.perfManage.customTarget.sixHoursAgo')]: [ - dayjs().subtract(6, 'hours'), - dayjs(), - ], - [t('views.perfManage.customTarget.threeHoursAgo')]: [ - dayjs().subtract(3, 'hours'), - dayjs(), - ], - [t('views.monitor.monitor.today')]: [dayjs().startOf('day'), dayjs()], -}); +const ranges = ref([ + {label:t('views.perfManage.customTarget.sixHoursAgo'),value:[dayjs().subtract(6, 'hours'), + dayjs(),]}, + {label:t('views.perfManage.customTarget.threeHoursAgo'),value:[dayjs().subtract(3, 'hours'), + dayjs(),]}, + {label:t('views.monitor.monitor.today'),value:[dayjs().startOf('day'), dayjs()]}, +]) /**表格字段列 */ let tableColumns = ref([]); @@ -794,7 +790,7 @@ onBeforeUnmount(() => { :show-time="{ format: 'HH:mm:ss' }" format="YYYY-MM-DD HH:mm:ss" value-format="x" - :ranges="ranges" + :presets="ranges" style="width: 100%" >