fix : 修复图表全屏bug

This commit is contained in:
2024-03-13 17:55:43 +08:00
parent d915fd378c
commit ccafd4e438
5 changed files with 9 additions and 9 deletions

View File

@@ -309,7 +309,7 @@ const handleFullScreen = () => {
fan.classList.remove('shrink-screen-dialog')
titleName.style.fontSize = '70px'
erd.listenTo(document.getElementById('fanDialog'), (element) => {
fanChart.style.height = (element.offsetHeight - 120) + 'px'
fanChart.style.height = (element.offsetHeight - 140) + 'px'
myEcharts.resize();
});
nextTick(() => {
@@ -431,7 +431,7 @@ const getFanInfo = (equipmentId, type = 'day', time = '', flag, startTime, endTi
const fanChart = document.getElementById('containerFan')
const erd = elementResizeDetectorMaker();
erd.listenTo(document.getElementById('fanDialog'), (element) => {
fanChart.style.height = element.offsetHeight - 120 + 'px'
fanChart.style.height = element.offsetHeight - 140 + 'px'
myEcharts.resize();
});
if (!isFullScreen.value) {