隐患数据统计分析:年度隐患数据统计分析柱形图不显示bug修复,隐患数量不正确修复

main
15036302109 8 months ago
parent dae090e4e5
commit 72e4dcf19a

@ -325,7 +325,7 @@ SELECT
SELECT
DATE_FORMAT( r.check_time, '%Y-%m' ) date_time,
r.hidden_danger_grade,
sum( CASE WHEN r.hidden_danger_id IS NOT NULL THEN 1 ELSE 0 END ) 'value'
IFNULL(SUM(r.hd_count),0) 'value'
FROM
ehs_hidden_danger r
<where>

@ -215,6 +215,7 @@ export default {
console.log(tab, event);
},
async leftCenterinit() {
this.year = new Date().getFullYear();
let res = await getDangerList(this.year);
let temp = res.data;
let legendData = [];

Loading…
Cancel
Save