修改看板

boardTest
夜笙歌 3 weeks ago
parent 5a28c2be10
commit 33732ea8b4

@ -484,7 +484,7 @@ export default {
} }
} }
</script> </script>
<style lang="less"> <style lang="less" >
.almReminder { .almReminder {
position: fixed; position: fixed;
top: calc(15% + 2vw); top: calc(15% + 2vw);

@ -830,6 +830,8 @@ export default {
} }
}, },
mounted() { mounted() {
console.log(document.getElementsByClassName('scTable1')[0])
document.getElementsByClassName('scTable1')[0].style.display = 'block'
this.$bus.$on('websocket-device-data', (e) => { this.$bus.$on('websocket-device-data', (e) => {
let deviceID = e?.deviceParam?.monitorId?.split('_')?.[0] let deviceID = e?.deviceParam?.monitorId?.split('_')?.[0]
if (Object.keys(this.deviceData).includes(deviceID)) { if (Object.keys(this.deviceData).includes(deviceID)) {
@ -848,11 +850,19 @@ export default {
} }
}) })
}, },
methods: {} methods: {},
beforeDestroy() {
console.log(1122, '31231')
document.getElementsByClassName('scTable1')[0].style.display = 'none'
}
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.scTable1 {
display: block;
}
.deviceInfo { .deviceInfo {
position: absolute; position: absolute;
bottom: calc(2vw + 2vh); bottom: calc(2vw + 2vh);
@ -1256,16 +1266,6 @@ export default {
} }
.scTable1 {
display: none;
position: absolute;
top: 48%;
left: 2.5%;
width: 20%;
height: 45%;
overflow: hidden;
}
.line:before { .line:before {
content: ""; content: "";
position: absolute; position: absolute;
@ -1490,7 +1490,4 @@ export default {
</style> </style>
<style> <style>
.scTable1 {
display: block;
}
</style> </style>

Loading…
Cancel
Save