From 42ae266a5634a3fbc534f54bc1ea390bad3f4fdf 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, 31 Oct 2023 15:54:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=B0=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/board/index/index.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/board/index/index.vue b/ruoyi-ui/src/views/board/index/index.vue index e5e5dfa..293d703 100644 --- a/ruoyi-ui/src/views/board/index/index.vue +++ b/ruoyi-ui/src/views/board/index/index.vue @@ -158,7 +158,9 @@ export default { return { centerNum: {}, chart1Option: { - tooltip: {}, + tooltip: { + formatter: "{b} : {c}%", + }, angleAxis: { max: 100, clockwise: true, @@ -295,12 +297,14 @@ export default { methods: { async setChart1() { const {rows: data} = await monitorPercentage() + let data1 = data.slice(0, 4) + data1.reverse() let option1 = { ...this.chart1Option, series: [ { type: "bar", - data: data.slice(0, 4).map((e, i) => { + data: data1.map((e, i) => { return { value: parseFloat(e.percentage), name: e.sceneName,