|
|
@ -1,8 +1,8 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="container">
|
|
|
|
<div class="container">
|
|
|
|
<div class="centerImg"></div>
|
|
|
|
<div class="centerImg"></div>
|
|
|
|
<BoardTopNav @sceneIdChange="sceneIdChange" nowMenu="3"></BoardTopNav>
|
|
|
|
<BoardTopNav nowMenu="3" @sceneIdChange="sceneIdChange"></BoardTopNav>
|
|
|
|
<div class="title">福建省电力公司</div>
|
|
|
|
<div class="title">物联网平台</div>
|
|
|
|
<div class="tree">
|
|
|
|
<div class="tree">
|
|
|
|
|
|
|
|
|
|
|
|
<el-tree
|
|
|
|
<el-tree
|
|
|
@ -15,7 +15,7 @@
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</el-tree>
|
|
|
|
</el-tree>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="equipmentInfo">
|
|
|
|
<div v-if="show" class="equipmentInfo">
|
|
|
|
<p>
|
|
|
|
<p>
|
|
|
|
<span>设备名称:</span>
|
|
|
|
<span>设备名称:</span>
|
|
|
|
<span style="color: #d9dee3">{{ MonitorInfo.monitorUnitName }}</span>
|
|
|
|
<span style="color: #d9dee3">{{ MonitorInfo.monitorUnitName }}</span>
|
|
|
@ -33,7 +33,7 @@
|
|
|
|
<span style="color: #d9dee3">{{ MonitorInfo.monitorUnitTypeId }}</span>
|
|
|
|
<span style="color: #d9dee3">{{ MonitorInfo.monitorUnitTypeId }}</span>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="img"></div>
|
|
|
|
<div class="img" v-if="show"></div>
|
|
|
|
<div class="terminal">
|
|
|
|
<div class="terminal">
|
|
|
|
<el-form :model="form" class="demo-form-inline">
|
|
|
|
<el-form :model="form" class="demo-form-inline">
|
|
|
|
<el-form-item label="传感器名称:">
|
|
|
|
<el-form-item label="传感器名称:">
|
|
|
@ -96,6 +96,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
show: false,
|
|
|
|
monitorUnitId: '',
|
|
|
|
monitorUnitId: '',
|
|
|
|
data1: true,
|
|
|
|
data1: true,
|
|
|
|
form: {
|
|
|
|
form: {
|
|
|
@ -109,18 +110,15 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async mounted() {
|
|
|
|
async mounted() {
|
|
|
|
setInterval(this.getDevice,30*1000)
|
|
|
|
setInterval(this.getDevice, 30 * 1000)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
sceneIdChange(e){
|
|
|
|
sceneIdChange(e) {
|
|
|
|
this.sceneId = e
|
|
|
|
this.sceneId = e
|
|
|
|
this.getData()
|
|
|
|
this.getData()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async getData() {
|
|
|
|
async getData() {
|
|
|
|
await this.getTree()
|
|
|
|
await this.getTree()
|
|
|
|
await this.getDevice()
|
|
|
|
|
|
|
|
await this.getRightDevice()
|
|
|
|
|
|
|
|
await this.setMonitorById()
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
switchChange(e) {
|
|
|
|
switchChange(e) {
|
|
|
|
this.$confirm((this.controlList[e].deviceType === '1' ? '关闭' : '开启') + '该设备?', '提示', {
|
|
|
|
this.$confirm((this.controlList[e].deviceType === '1' ? '关闭' : '开启') + '该设备?', '提示', {
|
|
|
@ -149,6 +147,8 @@ export default {
|
|
|
|
this.monitorUnitId = e.monitorUnitId
|
|
|
|
this.monitorUnitId = e.monitorUnitId
|
|
|
|
this.getDevice(e.monitorUnitId)
|
|
|
|
this.getDevice(e.monitorUnitId)
|
|
|
|
this.getRightDevice(e.monitorUnitId)
|
|
|
|
this.getRightDevice(e.monitorUnitId)
|
|
|
|
|
|
|
|
this.setMonitorById()
|
|
|
|
|
|
|
|
this.show = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async getDevice(e) {
|
|
|
|
async getDevice(e) {
|
|
|
@ -168,7 +168,7 @@ export default {
|
|
|
|
const {data} = await getMonitorById(this.sceneId)
|
|
|
|
const {data} = await getMonitorById(this.sceneId)
|
|
|
|
this.MonitorInfo = data
|
|
|
|
this.MonitorInfo = data
|
|
|
|
},
|
|
|
|
},
|
|
|
|
toHistory(){
|
|
|
|
toHistory() {
|
|
|
|
this.$router.push({path: "/board/senso"});
|
|
|
|
this.$router.push({path: "/board/senso"});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|