|
|
@ -1,5 +1,5 @@ |
|
|
|
<template> |
|
|
|
<div class="container infoBoardBox" style="height:93.2vh;;background-color: #11232a;"> |
|
|
|
<div class="container infoBoardBox" style="height:94vh;;background-color: #11232a;"> |
|
|
|
<div style=" |
|
|
|
height: 100%; |
|
|
|
margin-left: 0px; |
|
|
@ -324,6 +324,7 @@ export default { |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
// this.rowDrop(); |
|
|
|
this.hideScrollFn() |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
@ -3581,6 +3582,32 @@ export default { |
|
|
|
setTimeout(() => { |
|
|
|
this.allVmsTemplate('no') |
|
|
|
}, 500) |
|
|
|
}, |
|
|
|
hideScrollFn() { |
|
|
|
// 隐藏滚动条 |
|
|
|
document.documentElement.style.overflow = 'hidden' |
|
|
|
// 禁用滚动功能 |
|
|
|
function disableScroll() { |
|
|
|
// 记录当前滚动位置 |
|
|
|
const scrollPosition = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0 |
|
|
|
|
|
|
|
// 设置滚动位置为固定值,防止滚动 |
|
|
|
document.body.style.position = 'fixed' |
|
|
|
document.body.style.top = `-${scrollPosition}px` |
|
|
|
} |
|
|
|
|
|
|
|
// 启用滚动功能 |
|
|
|
function enableScroll() { |
|
|
|
// 获取之前记录的滚动位置 |
|
|
|
const scrollPosition = parseInt(document.body.style.top || '0', 10) |
|
|
|
|
|
|
|
// 恢复滚动位置 |
|
|
|
document.body.style.position = '' |
|
|
|
document.body.style.top = '' |
|
|
|
|
|
|
|
// 滚动到之前的位置 |
|
|
|
window.scrollTo(0, -scrollPosition) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|