From 7be2f50d9a125d106393f6b97b0599e6bfa17a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=AE=81?= <18339727226@163.com> Date: Wed, 10 Jul 2024 09:23:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=B3=E4=BE=A7=E7=BC=B4=E8=B4=B9=E4=BA=BA?= =?UTF-8?q?=E6=95=B0=E6=8A=98=E7=BA=BF=E5=9B=BE=E6=A0=B9=E6=8D=AE=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E6=8E=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index/right-center.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/index/right-center.vue b/src/views/index/right-center.vue index 489e5cd..b819217 100644 --- a/src/views/index/right-center.vue +++ b/src/views/index/right-center.vue @@ -26,12 +26,12 @@ const option = ref({}); const getData = () => { // let dateList = ['05-30', '05-31', '06-01', '06-02', '06-03', "06-04"] // let numList = [0, 0, 0, 0, 0, 0] - tabs.value[0].dateList = Object.keys(bkPay.value?.statistics) - tabs.value[1].dateList = Object.keys(zkPay.value?.statistics) - tabs.value[2].dateList = Object.keys(zsbPay.value?.statistics) - tabs.value[0].numList = Object.values(bkPay.value?.statistics) - tabs.value[1].numList = Object.values(zkPay.value?.statistics) - tabs.value[2].numList = Object.values(zsbPay.value?.statistics) + tabs.value[0].dateList = Object.keys(bkPay.value?.statistics).sort() + tabs.value[1].dateList = Object.keys(zkPay.value?.statistics).sort() + tabs.value[2].dateList = Object.keys(zsbPay.value?.statistics).sort() + tabs.value[0].numList = tabs.value[0].dateList.map(date => bkPay.value?.statistics[date]) + tabs.value[1].numList = tabs.value[0].dateList.map(date => zkPay.value?.statistics[date]) + tabs.value[2].numList = tabs.value[0].dateList.map(date => zsbPay.value?.statistics[date]) setOption(tabs.value[0].dateList, tabs.value[0].numList) };