修改数据处理

master
suixy 2 days ago
parent 78c956c31e
commit 3af7242729

@ -94,8 +94,8 @@
{{ i.deviceName }} {{ i.deviceName }}
</span> </span>
<div class="num" style="line-height: 20px">{{ i.updateTime.split(' ')[0] }}</div> <div class="num" style="line-height: 20px">{{ i.updateTime ? (i.updateTime.split(' ')[0]):'' }}</div>
<div class="num" style="line-height: 20px">{{ i.updateTime.split(' ')[1] }}</div> <div class="num" style="line-height: 20px">{{ i.updateTime ? (i.updateTime.split(' ')[1]):'' }}</div>
</div> </div>
<div style="position: absolute;left: 27%;top: 0px;width: 45%;height: 100%;"> <div style="position: absolute;left: 27%;top: 0px;width: 45%;height: 100%;">
<div style="width: 100%; height: 100%" v-if="Object.keys(i.deviceDataMap).find(e=>(i.deviceDataMap[e].toString().includes('http')))"> <div style="width: 100%; height: 100%" v-if="Object.keys(i.deviceDataMap).find(e=>(i.deviceDataMap[e].toString().includes('http')))">
@ -395,6 +395,7 @@ export default {
}, },
async getDevice(e) { async getDevice(e) {
if (this.$store.getters.sceneId) { if (this.$store.getters.sceneId) {
this.acquisitionList = []
const {data} = await selectDevicesByMonitorUnitId(e, this.$store.getters.sceneId) const {data} = await selectDevicesByMonitorUnitId(e, this.$store.getters.sceneId)
this.deviceId = e this.deviceId = e
this.controlList = data.control this.controlList = data.control

Loading…
Cancel
Save