修改刷新

dev
夜笙歌 11 months ago
parent 56936fcff2
commit 2ab3aefc18

@ -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) {
const {data} = await selectDevicesByMonitorUnitId(e, this.$store.getters.sceneId) if(this.$store.getters.sceneId){
this.deviceId = e const {data} = await selectDevicesByMonitorUnitId(e, this.$store.getters.sceneId)
this.controlList = data.control this.deviceId = e
this.acquisitionList = data.acquisition this.controlList = data.control
this.acquisitionList = data.acquisition
}
}, },
async setMonitorById(e) { async setMonitorById(e) {
const {data} = await getMonitorById(e.id) const {data} = await getMonitorById(e.id)

Loading…
Cancel
Save