From 11ae5f376e3b3ddef13e06d0b4c705f8761271f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Tue, 7 Nov 2023 14:58:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9C=8B=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/board/week/index.vue | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/board/week/index.vue b/src/views/board/week/index.vue index bd0fa10..7c1137f 100644 --- a/src/views/board/week/index.vue +++ b/src/views/board/week/index.vue @@ -208,7 +208,7 @@ export default { }, show: true, }, - data: ['0时', '2时', '4时', '6时', '8时', '10时', '12时', '14时'], + data: ['人A', '人B', '人C', '人D', '人E', '人F', '人G', '人H'], type: 'category', }, yAxis: { @@ -247,16 +247,16 @@ export default { }, series: [ { - data: [38, 60, 40, 55, 42, 39, 45, 40], + data: [60, 55, 45, 42, 40, 40, 39, 38], type: 'pictorialBar', barMaxWidth: 'auto', barWidth: 1.5 * vw, symbol: 'rect', itemStyle: { color: function (val) { - if ([38, 60, 40, 55, 42, 39, 45, 40].length - val.dataIndex === 1) { + if ([60, 55, 45, 42, 40, 40, 39, 38].length - val.dataIndex === 1) { return 'red' - } else if ([38, 60, 40, 55, 42, 39, 45, 40].length - val.dataIndex === 2) { + } else if ([60, 55, 45, 42, 40, 40, 39, 38].length - val.dataIndex === 2) { return 'yellow' } else { @@ -278,16 +278,16 @@ export default { } }, { - data: [38, 60, 40, 55, 42, 39, 45, 40], + data: [60, 55, 45, 42, 40, 40, 39, 38], type: 'pictorialBar', barWidth: 1.5 * vw, symbolPosition: 'end', symbol: 'diamond', itemStyle: { color: function (val) { - if ([38, 60, 40, 55, 42, 39, 45, 40].length - val.dataIndex === 1) { + if ([60, 55, 45, 42, 40, 40, 39, 38].length - val.dataIndex === 1) { return 'red' - } else if ([38, 60, 40, 55, 42, 39, 45, 40].length - val.dataIndex === 2) { + } else if ([60, 55, 45, 42, 40, 40, 39, 38].length - val.dataIndex === 2) { return 'yellow' } else { @@ -300,16 +300,16 @@ export default { zlevel: 4, }, { - data: [38, 60, 40, 55, 42, 39, 45, 40].map(val => 1), + data: [60, 55, 45, 42, 40, 40, 39, 38].map(val => 1), type: 'pictorialBar', barWidth: 1.5 * vw, symbolPosition: 'end', symbol: 'diamond', itemStyle: { color: function (val) { - if ([38, 60, 40, 55, 42, 39, 45, 40].length - val.dataIndex === 1) { + if ([60, 55, 45, 42, 40, 40, 39, 38].length - val.dataIndex === 1) { return 'red' - } else if ([38, 60, 40, 55, 42, 39, 45, 40].length - val.dataIndex === 2) { + } else if ([60, 55, 45, 42, 40, 40, 39, 38].length - val.dataIndex === 2) { return 'yellow' } else { @@ -329,7 +329,7 @@ export default { // }, // symbolSize: [40, 40], // z: 10, - // data: [38, 60, 40, 55, 42, 39, 45, 40].map(val => { + // data: [60, 55, 45, 42, 40, 40, 39, 38].map(val => { // return { // value: val, // symbolPosition: 'end',