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)) }