修改看板

dev
夜笙歌 1 year ago
parent 9116fdd835
commit 8f986b4855

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

Loading…
Cancel
Save