|
|
@@ -118,9 +118,9 @@ const summaryCards: SummaryCard[] = [
|
|
|
]
|
|
|
|
|
|
const hazardBars: MetricBar[] = [
|
|
|
- { label: '已整改 628', value: 100, color: '#43c7ca' },
|
|
|
- { label: '未整改 29', value: 61, color: '#ff981f' },
|
|
|
- { label: '超期 2', value: 38, color: '#ff4c49' }
|
|
|
+ { label: '已整改', value: 628, color: '#43c7ca' },
|
|
|
+ { label: '未整改', value: 29, color: '#ff981f' },
|
|
|
+ { label: '超期', value: 2, color: '#ff4c49' }
|
|
|
]
|
|
|
|
|
|
const incidentStats = [
|
|
|
@@ -314,13 +314,21 @@ function getHazardChartOption(): echarts.EChartsOption {
|
|
|
}
|
|
|
})),
|
|
|
barWidth: 70,
|
|
|
- showBackground: true,
|
|
|
+
|
|
|
backgroundStyle: {
|
|
|
color: 'rgba(31, 91, 184, 0.06)',
|
|
|
borderRadius: 0
|
|
|
},
|
|
|
label: {
|
|
|
- show: false
|
|
|
+ show: true,
|
|
|
+ position: 'top',
|
|
|
+ color: '#3c5f96',
|
|
|
+ fontSize: 16,
|
|
|
+ fontWeight: 700,
|
|
|
+ fontFamily: FONT_FAMILY,
|
|
|
+ formatter(params: any) {
|
|
|
+ return `${params.value}`
|
|
|
+ }
|
|
|
},
|
|
|
emphasis: {
|
|
|
itemStyle: {
|