From 544e42ac83527ec7b1c31df4458eefb2640ad1a8 Mon Sep 17 00:00:00 2001 From: "DESKTOP-FUDKNA8\\znjsz" Date: Wed, 28 Feb 2024 15:14:02 +0800 Subject: [PATCH] bugfix --- src/components/HourChart.vue | 19 +++++--- src/components/HourChartOptions.js | 20 +++++++-- src/components/RealtimeChart.vue | 2 +- src/components/TeamChartDay.vue | 6 +++ src/components/TeamChartMonth.vue | 8 ++++ src/components/TeamChartMonthOptions.js | 1 + src/components/datapage/HourChart.vue | 12 ++++- src/components/datapage/HourChartOptions.js | 26 ++++++++--- .../datapage/LatestWeekYieldOptions.js | 45 ++++++++++++++++++- src/components/datapage/LineMonth.vue | 3 -- src/components/datapage/LineMonthOptions.js | 9 ++-- src/components/datapage/LineToday.vue | 3 -- src/components/datapage/LineTodayOptions.js | 9 ++-- src/components/datapage/TeamChartDay.vue | 6 +++ src/components/datapage/TeamChartMonth.vue | 6 +++ 15 files changed, 142 insertions(+), 33 deletions(-) diff --git a/src/components/HourChart.vue b/src/components/HourChart.vue index 8629aa5..247e994 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); @@ -50,7 +50,7 @@ function setupChart() { chartSetup( chart.value, hourData.value.map((item) => item.hour), - hourData.value.map((item) => item.data) + hourData.value.map((item) => item.num) ); }); @@ -73,12 +73,17 @@ function setupChart() { onMounted(() => { chartChart.value.classList.add("h-full"); + // setupChart(); });