优化统计分析

main
liukewei 11 months ago
parent 34db7ce5af
commit 125108d5e6

@ -168,7 +168,7 @@ SELECT
ifnull(d.dict_label,'未知') 'name', ifnull(d.dict_label,'未知') 'name',
count( 1 ) 'value' count( 1 ) 'value'
FROM FROM
ehs_enterprise e ehs_hidden_danger e
LEFT JOIN sys_dict_data d ON e.enterprise_type = d.dict_value LEFT JOIN sys_dict_data d ON e.enterprise_type = d.dict_value
AND d.dict_type = 'enterprise_type' AND d.dict_type = 'enterprise_type'
<where> <where>
@ -183,7 +183,7 @@ SELECT
ifnull(d.dict_label,'未知') 'name', ifnull(d.dict_label,'未知') 'name',
count( 1 ) 'value' count( 1 ) 'value'
FROM FROM
ehs_enterprise e ehs_hidden_danger e
LEFT JOIN sys_dict_data d ON e.economic_type = d.dict_value LEFT JOIN sys_dict_data d ON e.economic_type = d.dict_value
AND d.dict_type = 'economic_type' AND d.dict_type = 'economic_type'
<where> <where>
@ -198,7 +198,7 @@ SELECT
ifnull(d.dict_label,'未知') 'name', ifnull(d.dict_label,'未知') 'name',
count( 1 ) 'value' count( 1 ) 'value'
FROM FROM
ehs_enterprise e ehs_hidden_danger e
LEFT JOIN sys_dict_data d ON e.enterprise_scale = d.dict_value LEFT JOIN sys_dict_data d ON e.enterprise_scale = d.dict_value
AND d.dict_type = 'enterprise_scale' AND d.dict_type = 'enterprise_scale'
<where> <where>

@ -335,7 +335,7 @@ export default {
let res = await getTrade(); let res = await getTrade();
this.myChart3 = echarts.init(this.$refs.hyly); this.myChart3 = echarts.init(this.$refs.hyly);
let option = { let option = {
title: { text: "行业领域统计数量" }, title: { text: "行业领域统计隐患数量" },
tooltip: { tooltip: {
trigger: "item", trigger: "item",
}, },
@ -346,7 +346,7 @@ export default {
}, },
series: [ series: [
{ {
name: "行业统计数量", name: "行业统计隐患数量",
type: "pie", type: "pie",
radius: "50%", radius: "50%",
avoidLabelOverlap: false, avoidLabelOverlap: false,
@ -380,7 +380,7 @@ export default {
let res = await getEconomics(); let res = await getEconomics();
this.myChart4 = echarts.init(this.$refs.jjClass); this.myChart4 = echarts.init(this.$refs.jjClass);
let option = { let option = {
title: { text: "经济类型统计数量" }, title: { text: "经济类型统计隐患数量" },
tooltip: { tooltip: {
trigger: "item", trigger: "item",
}, },
@ -391,7 +391,7 @@ export default {
}, },
series: [ series: [
{ {
name: "经济类型统计", name: "经济类型隐患统计",
type: "pie", type: "pie",
radius: "50%", radius: "50%",
avoidLabelOverlap: false, avoidLabelOverlap: false,
@ -425,7 +425,7 @@ export default {
let res = await getScale(); let res = await getScale();
this.myChart5 = echarts.init(this.$refs.scale); this.myChart5 = echarts.init(this.$refs.scale);
let option = { let option = {
title: { text: "企业规模统计数量" }, title: { text: "企业规模统计隐患数量" },
tooltip: { tooltip: {
trigger: "item", trigger: "item",
}, },
@ -436,7 +436,7 @@ export default {
}, },
series: [ series: [
{ {
name: "企业规模统计", name: "企业规模隐患统计",
type: "pie", type: "pie",
radius: "50%", radius: "50%",
avoidLabelOverlap: false, avoidLabelOverlap: false,

Loading…
Cancel
Save