|
|
|
@ -201,15 +201,17 @@ export default {
|
|
|
|
|
clearInterval(getDeviceInterval)
|
|
|
|
|
}
|
|
|
|
|
getDeviceInterval = setInterval(() => {
|
|
|
|
|
this.getDevice(this.deviceId)
|
|
|
|
|
this.getDevice(e.id)
|
|
|
|
|
}, 30 * 1000)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async getDevice(e) {
|
|
|
|
|
if(this.$store.getters.sceneId){
|
|
|
|
|
const {data} = await selectDevicesByMonitorUnitId(e, this.$store.getters.sceneId)
|
|
|
|
|
this.deviceId = e
|
|
|
|
|
this.controlList = data.control
|
|
|
|
|
this.acquisitionList = data.acquisition
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async setMonitorById(e) {
|
|
|
|
|
const {data} = await getMonitorById(e.id)
|
|
|
|
|