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