修改刷新

dev
夜笙歌 1 year ago
parent 56936fcff2
commit 2ab3aefc18

@ -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)

Loading…
Cancel
Save