From 32ae14602e422ec66f7219779686adaa46a103b1 Mon Sep 17 00:00:00 2001 From: "DESKTOP-FUDKNA8\\znjsz" Date: Mon, 22 Jan 2024 16:37:54 +0800 Subject: [PATCH] update team chart day --- src/components/HourChart.vue | 22 ++++++++---------- src/components/TeamChartDay.vue | 18 +++++++-------- src/components/TeamChartDayOptions.js | 33 +++++++++++++++------------ 3 files changed, 38 insertions(+), 35 deletions(-) diff --git a/src/components/HourChart.vue b/src/components/HourChart.vue index 943ba02..8629aa5 100644 --- a/src/components/HourChart.vue +++ b/src/components/HourChart.vue @@ -10,11 +10,11 @@ const chartChart = ref(null); const chart = ref(null); // 小时数据 const hourData = ref([ - { lineName: '001', hour: '00:00', num: 10 }, - { lineName: '002', hour: '00:20', num: 20 }, - { lineName: '003', hour: '00:30', num: 30 }, - { lineName: '004', hour: '00:40', num: 14 }, - { lineName: '005', hour: '00:50', num: 50 } + // { lineName: '001', hour: '00:00', num: 10 }, + // { lineName: '002', hour: '00:20', num: 20 }, + // { lineName: '003', hour: '00:30', num: 30 }, + // { lineName: '004', hour: '00:40', num: 14 }, + // { lineName: '005', hour: '00:50', num: 50 } ]); store.$subscribe((mutation, state) => { // console.log("[HourChart] =======>", state.data2.lineHourList?.length); @@ -29,11 +29,11 @@ store.$subscribe((mutation, state) => { } // console.log("[HourChart] ===> 有数据: ", state.data2.lineHourList); hourData.value = (state.data2?.lineHourList ?? [ - { lineName: '001', hour: '00:00', num: 10 }, - { lineName: '002', hour: '00:20', num: 20 }, - { lineName: '003', hour: '00:30', num: 30 }, - { lineName: '004', hour: '00:40', num: 14 }, - { lineName: '005', hour: '00:50', num: 50 }, + // { lineName: '001', hour: '00:00', num: 10 }, + // { lineName: '002', hour: '00:20', num: 20 }, + // { lineName: '003', hour: '00:30', num: 30 }, + // { lineName: '004', hour: '00:40', num: 14 }, + // { lineName: '005', hour: '00:50', num: 50 }, ]).map((item, index) => ({ id: `${item.lineName}_${index}`, hour: item.hour || `${index}`.padStart(2, "0"), @@ -90,8 +90,6 @@ onMounted(() => { height: 300px; } -.chart-inner {} - .chart-chart { height: 100%; } diff --git a/src/components/TeamChartDay.vue b/src/components/TeamChartDay.vue index 1ce6bee..7ee3af9 100644 --- a/src/components/TeamChartDay.vue +++ b/src/components/TeamChartDay.vue @@ -1,5 +1,5 @@