From a4a240d32b99b500c22d876f8fe69dbc5cbe3925 Mon Sep 17 00:00:00 2001 From: huangchengfa <171504222@qq.com> Date: Thu, 11 Dec 2025 21:49:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=A3=E5=86=B3=E9=A2=84=E8=AD=A6?= =?UTF-8?q?=E7=AD=89=E7=BA=A7=E6=95=B0=E9=87=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../warningControl/centerHome/components/WarningCount.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/backOfficeSystem/fourColorManage/warningControl/centerHome/components/WarningCount.vue b/src/views/backOfficeSystem/fourColorManage/warningControl/centerHome/components/WarningCount.vue index e99efa5..faeff92 100644 --- a/src/views/backOfficeSystem/fourColorManage/warningControl/centerHome/components/WarningCount.vue +++ b/src/views/backOfficeSystem/fourColorManage/warningControl/centerHome/components/WarningCount.vue @@ -46,10 +46,10 @@ const initCharts = (data) => { ]; data.forEach(item => { item.count = isNaN(Number(item?.count) || 0) ? 0 : item.count; - if (item.yj_jb == '10') countData[0].value = item.count; - if (item.yj_jb == '20') countData[1].value = item.count; - if (item.yj_jb == '30') countData[2].value = item.count; - if (item.yj_jb == '40') countData[3].value = item.count; + if (item.yj_jb == '10' || item.yj_jb == '01') countData[0].value = item.count; + if (item.yj_jb == '20' || item.yj_jb == '02') countData[1].value = item.count; + if (item.yj_jb == '30' || item.yj_jb == '03') countData[2].value = item.count; + if (item.yj_jb == '40' || item.yj_jb == '04') countData[3].value = item.count; }); vehicleChart.setOption(createChartOption(countData, colors)) }