From 90a1992550f0e050ce710cb6db473c15f9ec9303 Mon Sep 17 00:00:00 2001
From: wangyunfei <1224056307@qq,com>
Date: Thu, 9 Oct 2025 14:57:13 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BB=BA=E7=AD=91=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../business_basic/module/EvaluationReport.js | 163 +++++-------------
.../module/EvaluationReport.less | 145 ++++++----------
2 files changed, 92 insertions(+), 216 deletions(-)
diff --git a/src/pages/business_basic/module/EvaluationReport.js b/src/pages/business_basic/module/EvaluationReport.js
index 93acf8a..7818aa1 100644
--- a/src/pages/business_basic/module/EvaluationReport.js
+++ b/src/pages/business_basic/module/EvaluationReport.js
@@ -297,99 +297,52 @@ const EvaluationReport = () => {
}, 100);
const option = {
- color: ['#8979FF', '#3CC3DF'],
+ color: ['#3C7EFF', '#FF8800', '#FFC403', '#31BCFF'],
legend: {
- top: "-3px",
- itemWidth: 20,
- itemHeight: 8,
+ orient: 'vertical',
+ right: '2%',
+ top: 'middle',
+ itemWidth: 14,
+ itemHeight: 5,
textStyle: {
- fontSize: 10
+ fontSize: 10,
+ color: '#666'
}
},
- grid: {
- left: '2%',
- right: '4%',
- bottom: '2%',
- top: '12%',
- containLabel: true
- },
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: ['9:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00'],
- axisLabel: {
- fontSize: 10
- }
- },
- yAxis: {
- type: 'value',
- min: 0,
- max: 30,
- axisLabel: {
- formatter: '{value}',
- fontSize: 10
- }
+ tooltip: {
+ trigger: 'item',
+ formatter: '{b}
{d}%'
},
series: [
{
- name: '消防水泵1',
- type: 'line',
- smooth: false,
- lineStyle: {
- width: 2,
- color: '#8979FF'
- },
- areaStyle: {
- color: {
- type: 'linear',
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [
- { offset: 0, color: 'rgba(137, 121, 255, 0.3)' },
- { offset: 1, color: 'rgba(137, 121, 255, 0.05)' }
- ]
- }
- },
- symbol: 'circle',
- symbolSize: 4,
+ name: '设备类型占比',
+ type: 'pie',
+ radius: '70%',
+ center: ['40%', '55%'],
+ avoidLabelOverlap: false,
itemStyle: {
- color: '#fff',
- borderColor: '#8979FF',
+ borderRadius: 0,
+ borderColor: '#fff',
borderWidth: 1
},
- data: [12, 15, 18, 14, 16, 20, 22, 19, 17, 21, 23, 25]
- },
- {
- name: '消防水泵2',
- type: 'line',
- smooth: false,
- lineStyle: {
- width: 2,
- color: '#3CC3DF'
+ label: {
+ show: false,
+ position: 'center'
},
- areaStyle: {
- color: {
- type: 'linear',
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [
- { offset: 0, color: 'rgba(60, 195, 223, 0.3)' },
- { offset: 1, color: 'rgba(60, 195, 223, 0.05)' }
- ]
+ emphasis: {
+ label: {
+ show: false
}
},
- symbol: 'circle',
- symbolSize: 4,
- itemStyle: {
- color: '#fff',
- borderColor: '#3CC3DF',
- borderWidth: 1
+ labelLine: {
+ show: false
},
- data: [8, 11, 14, 10, 13, 17, 19, 16, 14, 18, 20, 22]
+ data: [
+ { value: 25, name: '灭火器' },
+ { value: 30, name: '消防栓' },
+ { value: 20, name: '报警器' },
+ { value: 25, name: '烟雾探测器' }
+ ]
}
]
};
@@ -781,8 +734,6 @@ const EvaluationReport = () => {