@ -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 = [];