From 1d2940cf26e01b71b0e6ba86353ffb5e19eb6d12 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 20 Nov 2024 19:01:53 +0800
Subject: [PATCH] 救援队伍统计图调整
---
src/views/survey/components/box/dataContent.vue | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/views/survey/components/box/dataContent.vue b/src/views/survey/components/box/dataContent.vue
index 6b26305..be0c40d 100644
--- a/src/views/survey/components/box/dataContent.vue
+++ b/src/views/survey/components/box/dataContent.vue
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2024-11-04 16:32:04
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-11-19 15:29:44
+ * @LastEditTime: 2024-11-20 19:01:15
* @FilePath: \bigScreen\src\views\survey\components\box\dataContent.vue
* @Description:
*
@@ -18,6 +18,8 @@
const curEcharts = ref(null)
let myEcharts = reactive(null)
+
+const echartsColors = ['#1E90FF', '#36A2EB', '#FFD700', '#FFA500', '#228B22', '#8FBC8F']
function getStatistic () {
getRescueTeamStatistic().then((res) => {
@@ -108,10 +110,14 @@
name: "救援人数",
type: "bar",
barWidth: "30",
- data: yaxis_data,
- itemStyle: {
- color: "#70AFEA",
- },
+ data: yaxis_data.map((i, ind) => {
+ return {
+ value: i,
+ itemStyle: {
+ color: echartsColors[ind],
+ },
+ }
+ }),
},
],
})
--
Gitblit v1.9.3