|
@@ -52,9 +52,9 @@
|
|
|
<div class="twins">
|
|
|
<div class="count">
|
|
|
<div class="count-z m-l-15">事件总数<span>{{total}}</span></div>
|
|
|
- <div class="count-z m-l-15">上报<span> {{escalation}}</span></div>
|
|
|
<div class="count-z m-l-15">签收<span> {{signIn}}</span></div>
|
|
|
<div class="count-z m-l-15">办结<span> {{conclude}}</span></div>
|
|
|
+ <div class="count-z m-l-15">归档<span> {{file}}</span></div>
|
|
|
</div>
|
|
|
<chartEvent ref="chartEvent"></chartEvent>
|
|
|
</div>
|
|
@@ -149,7 +149,7 @@
|
|
|
import bigdataSupermap from '@/components/supermap' //超图
|
|
|
|
|
|
import {cooperativesBigData,machineryInfoBigData,landInfoBigData
|
|
|
- ,eventcatalogueBigData,deptBigData
|
|
|
+ ,eventcatalogueBigData,getRlt,deptBigData
|
|
|
,leidaBigData,protectInfoBigData,xubaoBigData
|
|
|
,zhongZiBigData,huaFeiBigData,YangZhiBigData
|
|
|
,getHuanTianDept,getHuanTianType,getLItianDept
|
|
@@ -184,6 +184,7 @@
|
|
|
this.machineryInfoBigData();
|
|
|
this.landInfoBigData();
|
|
|
this.eventcatalogueBigData();
|
|
|
+ this.getRlt();
|
|
|
this.leidaBigData();
|
|
|
this.protectInfoBigData();
|
|
|
this.xubaoBigData();
|
|
@@ -195,9 +196,9 @@
|
|
|
this.getLItianDept();
|
|
|
},
|
|
|
mounted() {
|
|
|
- setTimeout(() => {
|
|
|
- this.$refs.bigdataSupermap.loadHeatMap()//事件分布
|
|
|
- }, 5000)
|
|
|
+ // setTimeout(() => {
|
|
|
+ // this.$refs.bigdataSupermap.loadHeatMap()//事件分布
|
|
|
+ // }, 5000)
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -221,7 +222,7 @@
|
|
|
},
|
|
|
],
|
|
|
total: 0, //事件总数
|
|
|
- escalation:0,// 事件-上报
|
|
|
+ file:0,// 事件-归档
|
|
|
signIn:0,// 事件-签收
|
|
|
conclude:0,// 事件-办结
|
|
|
|
|
@@ -251,24 +252,36 @@
|
|
|
this.$refs.chartFireControl.myEcharts(xData,seriesData);
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
+ /**事件类型、分布统计*/
|
|
|
eventcatalogueBigData() {
|
|
|
eventcatalogueBigData().then(res => {
|
|
|
- for (let index in res.data) {
|
|
|
- this.total+=parseInt(res.data[index].value);
|
|
|
- if(res.data[index].dictValue == 'forest_event_status_1'){
|
|
|
- this.escalation=res.data[index].value;
|
|
|
- }else if(res.data[index].dictValue == 'forest_event_status_2'){
|
|
|
- this.signIn=res.data[index].value;
|
|
|
- }else if(res.data[index].dictValue == 'forest_event_status_5'){
|
|
|
- this.conclude=res.data[index].value;
|
|
|
+ this.total = res.data.total;
|
|
|
+ for (let index in res.data.list) {
|
|
|
+ if(res.data.list[index].dictValue == 'forest_event_status_2'){
|
|
|
+ this.signIn=res.data.list[index].value;
|
|
|
+ }else if(res.data.list[index].dictValue == 'forest_event_status_5'){
|
|
|
+ this.conclude=res.data.list[index].value;
|
|
|
+ }else if(res.data.list[index].dictValue == 'forest_event_status_6'){
|
|
|
+ this.file=res.data.list[index].value;
|
|
|
}
|
|
|
}
|
|
|
- this.$refs.chartEvent.myEcharts(res.data);
|
|
|
+ this.$refs.chartEvent.myEcharts(res.data.list);
|
|
|
})
|
|
|
deptBigData().then(res => {
|
|
|
this.$refs.chartEvent.myEcharts2(res.data);
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
+
|
|
|
+ getRlt() {
|
|
|
+ getRlt().then(resp => {
|
|
|
+ setTimeout(() => {
|
|
|
+ //事件分布
|
|
|
+ this.$refs.bigdataSupermap.loadHeatMap(resp.data);
|
|
|
+ }, 5000)
|
|
|
+ })
|
|
|
+ },
|
|
|
leidaBigData() {
|
|
|
leidaBigData().then(res => {
|
|
|
const seriesData = [0,0,0,0,0];
|