Browse Source

1.首页实时刷新

2.摄像头控制弹窗相关异常
develop
lau572 5 months 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: { methods: {
handleClose() { handleClose() {
this.controlDialogVisible = false; this.controlDialogVisible = false;
this.player?.destroy(); // this.player?.destroy();
}, },
cameraChange() { cameraChange() {
console.log('chanage.======') console.log('chanage.======')
this.controlDialogVisible = false
const changeItem = find(this.urls, { iotDeviceId: this.cameraId }); const changeItem = find(this.urls, { iotDeviceId: this.cameraId });
this.dialogData = { ...changeItem, parseOtherConfig: changeItem.otherConfig && JSON.parse(changeItem.otherConfig) }; this.dialogData = { ...changeItem, parseOtherConfig: changeItem.otherConfig && JSON.parse(changeItem.otherConfig) };
this.player?.destroy(); this.player?.destroy();

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

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

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

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

Loading…
Cancel
Save