fix : 修复echart弹窗默认小屏

This commit is contained in:
2024-08-03 15:11:39 +08:00
parent 05cf9cb794
commit 228687daf1
6 changed files with 26 additions and 26 deletions

View File

@@ -241,8 +241,8 @@ const getChartInfo = (equipmentId, type = 'day', time = '', flag, startTime, end
nextTick(() => {
if (flag) {
const fan = document.getElementById('airDialog')
fan.classList.remove('shrink-screen-dialog')
if (!isFullScreen.value) {
fan.classList.add('shrink-screen-dialog')
if (isFullScreen.value) {
const titleName = document.getElementsByClassName('el-dialog__title')[0]
titleName.style.fontSize = '70px'
}
@@ -260,8 +260,8 @@ const getChartInfo = (equipmentId, type = 'day', time = '', flag, startTime, end
fanChart.style.height = element.offsetHeight - 140 + 'px'
myEcharts.resize();
});
if (!isFullScreen.value) {
initChart(res.data.dates, res.data.values, '93%')
if (isFullScreen.value) {
initChart(res.data.dates, res.data.values, dataZoomTop)
}
} else {
shrinkScreen()
@@ -288,7 +288,7 @@ const handleOpenChart = (id, type) => {
chooseDayRef.value.clearData()
}
})
isFullScreen.value = false
isFullScreen.value = true
if (type === 'air') {
dialogTitle.value = id.name
openDialogId.value = id.equipmentId