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