Browse Source

1.首页实时刷新

2.摄像头控制弹窗相关异常
develop
lau572 9 hours ago
parent
commit
bca50c9ab5
  1. 3
      ruoyi-ui/src/views/JiHeExpressway/components/VideoMulti/index.vue
  2. 8
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/ConditionStatistics/index.vue
  3. 12
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/FocusedMonitoring/index.vue

3
ruoyi-ui/src/views/JiHeExpressway/components/VideoMulti/index.vue

@ -74,10 +74,11 @@ export default {
methods: {
handleClose() {
this.controlDialogVisible = false;
this.player?.destroy();
// this.player?.destroy();
},
cameraChange() {
console.log('chanage.======')
this.controlDialogVisible = false
const changeItem = find(this.urls, { iotDeviceId: this.cameraId });
this.dialogData = { ...changeItem, parseOtherConfig: changeItem.otherConfig && JSON.parse(changeItem.otherConfig) };
this.player?.destroy();

8
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/ConditionStatistics/index.vue

@ -253,7 +253,13 @@ export default {
},
mounted() {
this.bind();
}
//
this.timer = setInterval(this.bind, 60 * 1000);
},
beforeDestroy() {
clearInterval(this.timer); //
},
}
</script>

12
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/FocusedMonitoring/index.vue

@ -68,7 +68,16 @@ export default {
}
},
created() {
// ==================
this.initData()
//
this.timer = setInterval(this.initData, 60 * 1000);
},
beforeDestroy() {
clearInterval(this.timer); //
},
methods: {
initData(){
Promise.allSettled([
// ,
request({
@ -159,6 +168,7 @@ export default {
})
}
}
}
</script>
<style lang="less">

Loading…
Cancel
Save