2025-06-18 01:01:17 +08:00
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div class="ssyx-ems-dashboard-editor-container">
|
|
|
|
|
<!-- 6个方块-->
|
2025-07-07 22:10:25 +08:00
|
|
|
<real-time-base-info :data="runningHeadData"/>
|
2025-06-18 01:01:17 +08:00
|
|
|
<!-- echart图表-->
|
|
|
|
|
<el-row :gutter="32" style="background:#fff;margin:30px 0;">
|
|
|
|
|
<el-col :xs="24" :sm="12" :lg="12">
|
2025-07-07 22:10:25 +08:00
|
|
|
<cnglqx-chart ref='cnglqx'/>
|
2025-06-18 01:01:17 +08:00
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :lg="12">
|
2025-07-07 22:10:25 +08:00
|
|
|
<pocpjwd-chart ref='pocpjwd'/>
|
2025-06-18 01:01:17 +08:00
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row :gutter="32" style="margin:30px 0;">
|
|
|
|
|
<el-col :xs="24" :sm="12" :lg="12">
|
2025-07-07 22:10:25 +08:00
|
|
|
<dcpjsoc-chart ref="dcpjsoc"/>
|
2025-06-18 01:01:17 +08:00
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :lg="12">
|
2025-07-07 22:10:25 +08:00
|
|
|
<dcpjwd-chart ref="dcpjwd"/>
|
2025-06-18 01:01:17 +08:00
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
<script>
|
2025-06-21 23:59:01 +08:00
|
|
|
import RealTimeBaseInfo from "./../RealTimeBaseInfo.vue";
|
2025-06-18 01:01:17 +08:00
|
|
|
import CnglqxChart from './CnglqxChart.vue'
|
|
|
|
|
import PocpjwdChart from './PocpjwdChart.vue'
|
|
|
|
|
import DcpjwdChart from './DcpjwdChart.vue'
|
|
|
|
|
import DcpjsocChart from './DcpjsocChart.vue'
|
2025-07-07 22:10:25 +08:00
|
|
|
import getQuerySiteId from "@/mixins/ems/getQuerySiteId";
|
|
|
|
|
import {getRunningHeadInfo} from '@/api/ems/dzjk'
|
2025-09-09 17:51:52 +08:00
|
|
|
import intervalUpdate from "@/mixins/ems/intervalUpdate";
|
2025-06-18 01:01:17 +08:00
|
|
|
|
|
|
|
|
export default {
|
2025-06-25 12:55:58 +08:00
|
|
|
name:'DzjkSbjkSsyx',
|
2025-06-21 23:59:01 +08:00
|
|
|
components:{RealTimeBaseInfo,CnglqxChart,PocpjwdChart,DcpjwdChart,DcpjsocChart},
|
2025-09-09 17:51:52 +08:00
|
|
|
mixins:[getQuerySiteId,intervalUpdate],
|
2025-06-18 01:01:17 +08:00
|
|
|
data() {
|
|
|
|
|
return {
|
2025-07-07 22:10:25 +08:00
|
|
|
runningHeadData:{},//运行信息
|
2025-06-18 01:01:17 +08:00
|
|
|
}
|
|
|
|
|
},
|
2025-07-07 22:10:25 +08:00
|
|
|
methods:{
|
|
|
|
|
//6个方块数据
|
|
|
|
|
getRunningHeadData(){
|
|
|
|
|
getRunningHeadInfo(this.siteId).then(response => {
|
|
|
|
|
this.runningHeadData = response?.data || {}
|
|
|
|
|
})
|
|
|
|
|
},
|
2025-09-09 17:51:52 +08:00
|
|
|
updateData(){
|
2025-09-22 09:48:11 +08:00
|
|
|
this.getRunningHeadData()
|
2025-09-09 17:51:52 +08:00
|
|
|
this.$refs.cnglqx.init(this.siteId)
|
|
|
|
|
this.$refs.pocpjwd.init(this.siteId)
|
|
|
|
|
this.$refs.dcpjsoc.init(this.siteId)
|
|
|
|
|
this.$refs.dcpjwd.init(this.siteId)
|
|
|
|
|
},
|
2025-07-07 22:10:25 +08:00
|
|
|
init(){
|
|
|
|
|
this.$nextTick(()=>{
|
2025-09-09 17:51:52 +08:00
|
|
|
this.updateData()
|
|
|
|
|
this.updateInterval(this.updateData)
|
2025-07-07 22:10:25 +08:00
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-06-18 01:01:17 +08:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</script>
|