|
|
@ -34,8 +34,8 @@
|
|
|
|
<span style="color: #d9dee3">{{ MonitorInfo.monitorUnitTypeName }}</span>
|
|
|
|
<span style="color: #d9dee3">{{ MonitorInfo.monitorUnitTypeName }}</span>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<p v-for="i in propList">
|
|
|
|
<p v-for="i in propList">
|
|
|
|
<span>{{ i.attributeName }}:</span>
|
|
|
|
<span>{{ (i||{}).attributeName || '' }}:</span>
|
|
|
|
<span style="color: #d9dee3">{{ i.attributeValue }}</span>
|
|
|
|
<span style="color: #d9dee3">{{ (i || {}).attributeValue }}</span>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-if="show"
|
|
|
|
<div v-if="show"
|
|
|
@ -112,7 +112,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="历史记录" :visible.sync="historyDialog">
|
|
|
|
<el-dialog title="历史记录" :visible.sync="historyDialog" width="50%">
|
|
|
|
<el-form :inline="true" :model="form" class="demo-form-inline">
|
|
|
|
<el-form :inline="true" :model="form" class="demo-form-inline">
|
|
|
|
<el-form-item label="查询时间">
|
|
|
|
<el-form-item label="查询时间">
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker
|
|
|
@ -339,7 +339,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async treeClick(e) {
|
|
|
|
async treeClick(e) {
|
|
|
|
if (!e.children?.length > 0) {
|
|
|
|
// if (!e.children?.length > 0) {
|
|
|
|
this.monitorUnitId = e.id
|
|
|
|
this.monitorUnitId = e.id
|
|
|
|
await this.getDevice(e.id)
|
|
|
|
await this.getDevice(e.id)
|
|
|
|
await this.setMonitorById(e)
|
|
|
|
await this.setMonitorById(e)
|
|
|
@ -351,7 +351,7 @@ export default {
|
|
|
|
getDeviceInterval = setInterval(() => {
|
|
|
|
getDeviceInterval = setInterval(() => {
|
|
|
|
this.getDevice(e.id)
|
|
|
|
this.getDevice(e.id)
|
|
|
|
}, 30 * 1000)
|
|
|
|
}, 30 * 1000)
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async getDevice(e) {
|
|
|
|
async getDevice(e) {
|
|
|
|
if (this.$store.getters.sceneId) {
|
|
|
|
if (this.$store.getters.sceneId) {
|
|
|
@ -379,7 +379,7 @@ export default {
|
|
|
|
time: [new Date(new Date().getTime() - 1000 * 60 * 60 * 24), new Date()],
|
|
|
|
time: [new Date(new Date().getTime() - 1000 * 60 * 60 * 24), new Date()],
|
|
|
|
type: "2",
|
|
|
|
type: "2",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.getHistoryData()
|
|
|
|
// this.getHistoryData()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async getHistoryData() {
|
|
|
|
async getHistoryData() {
|
|
|
|
this.loading1 = true
|
|
|
|
this.loading1 = true
|
|
|
|