|
|
|
@ -176,7 +176,7 @@
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<el-dialog :visible.sync="realMap" width="80%" @close="monitorUnitId = null">
|
|
|
|
|
<el-dialog :visible.sync="realMap" width="80%" @close="monitorUnitId = null;options=[];value=[]">
|
|
|
|
|
<el-form :inline="true" :model="formInline" class="demo-form-inline">
|
|
|
|
|
<el-form-item label="搜索">
|
|
|
|
|
<el-select
|
|
|
|
@ -216,18 +216,60 @@
|
|
|
|
|
:visible.sync="isDispose"
|
|
|
|
|
width="30%">
|
|
|
|
|
|
|
|
|
|
<el-descriptions class="margin-top" :column="3" border>
|
|
|
|
|
<el-descriptions class="margin-top" :column="2" border>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
|
报警信息
|
|
|
|
|
设备id
|
|
|
|
|
</template>
|
|
|
|
|
{{ warInfo.deviceId }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
|
监控单元名称
|
|
|
|
|
</template>
|
|
|
|
|
{{ warInfo.monitorUnitName }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
|
监控单元类型
|
|
|
|
|
</template>
|
|
|
|
|
{{ warInfo.monitorUnitTypeName }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
|
告警编号
|
|
|
|
|
</template>
|
|
|
|
|
{{ warInfo.alarmInfoId }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
|
告警类型
|
|
|
|
|
</template>
|
|
|
|
|
{{ warInfo.alarmTypeName }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
|
告警位置
|
|
|
|
|
</template>
|
|
|
|
|
{{ warInfo.location }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
|
告警信息
|
|
|
|
|
</template>
|
|
|
|
|
{{ warInfo.alarmLevelName }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
|
报警位置
|
|
|
|
|
告警时间
|
|
|
|
|
</template>
|
|
|
|
|
{{ warInfo.location }}
|
|
|
|
|
{{ warInfo.createTime }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
|
告警区域
|
|
|
|
|
</template>
|
|
|
|
|
{{ warInfo.areaName }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
|
|
|
|
@ -247,26 +289,65 @@
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
<el-dialog title="设备信息" :visible.sync="equipmentInfoDialog">
|
|
|
|
|
<el-descriptions class="margin-top" :column="3" border>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
|
经度
|
|
|
|
|
</template>
|
|
|
|
|
{{ equipmentInfo.longitude }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
|
纬度
|
|
|
|
|
</template>
|
|
|
|
|
{{ equipmentInfo.latitude }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
|
名称
|
|
|
|
|
</template>
|
|
|
|
|
{{ equipmentInfo.deviceName }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
|
|
|
|
|
<el-table
|
|
|
|
|
:data="equipmentInfo"
|
|
|
|
|
style="width: 100%">
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="deviceCode"
|
|
|
|
|
label="编号"
|
|
|
|
|
width="180">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="deviceName"
|
|
|
|
|
label="名称"
|
|
|
|
|
width="180">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="monitorUnitName"
|
|
|
|
|
label="监控单元">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="longitude"
|
|
|
|
|
label="经度">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="latitude"
|
|
|
|
|
label="纬度">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<!-- <el-descriptions class="margin-top" :column="3" border v-for="i in equipmentInfo" style="margin-top: 8px">-->
|
|
|
|
|
<!-- <el-descriptions-item>-->
|
|
|
|
|
<!-- <template slot="label">-->
|
|
|
|
|
<!-- 编号-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- {{ i.deviceCode }}-->
|
|
|
|
|
<!-- </el-descriptions-item>-->
|
|
|
|
|
<!-- <el-descriptions-item>-->
|
|
|
|
|
<!-- <template slot="label">-->
|
|
|
|
|
<!-- 名称-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- {{ i.deviceName }}-->
|
|
|
|
|
<!-- </el-descriptions-item>-->
|
|
|
|
|
<!-- <el-descriptions-item>-->
|
|
|
|
|
<!-- <template slot="label">-->
|
|
|
|
|
<!-- 监控单元-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- {{ i.monitorUnitName }}-->
|
|
|
|
|
<!-- </el-descriptions-item>-->
|
|
|
|
|
<!-- <el-descriptions-item>-->
|
|
|
|
|
<!-- <template slot="label">-->
|
|
|
|
|
<!-- 经度-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- {{ i.longitude }}-->
|
|
|
|
|
<!-- </el-descriptions-item>-->
|
|
|
|
|
<!-- <el-descriptions-item>-->
|
|
|
|
|
<!-- <template slot="label">-->
|
|
|
|
|
<!-- 纬度-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- {{ i.latitude }}-->
|
|
|
|
|
<!-- </el-descriptions-item>-->
|
|
|
|
|
<!-- </el-descriptions>-->
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="equipmentInfoDialog = false">关 闭</el-button>
|
|
|
|
|
<el-button type="primary" @click="getDeviceInfo" :disabled="!monitorUnitId">设备信息</el-button>
|
|
|
|
@ -312,6 +393,7 @@ export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
containerPic,
|
|
|
|
|
markerData:[],
|
|
|
|
|
isTown: false,
|
|
|
|
|
value: [],
|
|
|
|
|
loading: false,
|
|
|
|
@ -320,7 +402,7 @@ export default {
|
|
|
|
|
monitorUnitId: null,
|
|
|
|
|
equipmentInfoDialog: false,
|
|
|
|
|
exTableTime: [new Date(new Date().getTime() - 1000 * 60 * 60 * 24), new Date()],
|
|
|
|
|
equipmentInfo: {},
|
|
|
|
|
equipmentInfo: [],
|
|
|
|
|
warInfo: {},
|
|
|
|
|
formInline: {},
|
|
|
|
|
textarea: '',
|
|
|
|
@ -893,6 +975,7 @@ export default {
|
|
|
|
|
this.$nextTick(async () => {
|
|
|
|
|
this.createMap()
|
|
|
|
|
const data = await getDeviceByAreaId(this.$store.getters.tenantId)
|
|
|
|
|
this.markerData = data.data.map(e => e.devicesList).flat(1)
|
|
|
|
|
data.data.map(e => e.devicesList).flat(1).forEach(e => {
|
|
|
|
|
this.setMarker(e)
|
|
|
|
|
})
|
|
|
|
@ -929,7 +1012,7 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
marker.on('dblclick', () => {
|
|
|
|
|
this.equipmentInfoDialog = true
|
|
|
|
|
this.equipmentInfo = e
|
|
|
|
|
this.equipmentInfo = this.markerData.filter(v=>v.monitorUnitId === e.monitorUnitId)
|
|
|
|
|
this.monitorUnitId = e.monitorUnitId
|
|
|
|
|
// this.$router.push({path: '/board/equipment', query: {monitorUnitId: e.monitorUnitId}})
|
|
|
|
|
});
|
|
|
|
@ -964,7 +1047,7 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
marker.on('dblclick', () => {
|
|
|
|
|
this.equipmentInfoDialog = true
|
|
|
|
|
this.equipmentInfo = e
|
|
|
|
|
this.equipmentInfo = this.markerData.filter(v=>v.monitorUnitId === e.monitorUnitId)
|
|
|
|
|
this.monitorUnitId = e.monitorUnitId
|
|
|
|
|
// this.$router.push({path: '/board/equipment', query: {monitorUnitId: e.monitorUnitId}})
|
|
|
|
|
});
|
|
|
|
@ -1030,6 +1113,8 @@ export default {
|
|
|
|
|
map.remove(polygons)
|
|
|
|
|
map.remove(circles)
|
|
|
|
|
markers = []
|
|
|
|
|
this.markerData = data
|
|
|
|
|
console.log(data)
|
|
|
|
|
data.forEach(e => {
|
|
|
|
|
if (e.latitude && e.longitude) {
|
|
|
|
|
this.setMarker1(e)
|
|
|
|
@ -1045,10 +1130,12 @@ export default {
|
|
|
|
|
markers = []
|
|
|
|
|
this.loading = true;
|
|
|
|
|
const {data} = await selectDeviceByName({name: name})
|
|
|
|
|
this.markerData = data
|
|
|
|
|
console.log(data)
|
|
|
|
|
this.loading = false;
|
|
|
|
|
let option = []
|
|
|
|
|
data.forEach(e => {
|
|
|
|
|
if (e.latitude && e.longitude) {
|
|
|
|
|
if (e.latitude && e.longitude && e.deviceName.includes(name)) {
|
|
|
|
|
option.push({
|
|
|
|
|
label: e.deviceName,
|
|
|
|
|
value: e
|
|
|
|
|