fix : 修复echart弹窗默认小屏
This commit is contained in:
@@ -292,8 +292,8 @@ const getFanInfo = (equipmentId, type = 'month', time = '', flag) => {
|
||||
nextTick(() => {
|
||||
if (flag) {
|
||||
const fan = document.getElementById('eleDialog')
|
||||
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'
|
||||
}
|
||||
@@ -313,8 +313,8 @@ const getFanInfo = (equipmentId, type = 'month', time = '', flag) => {
|
||||
fanChart.style.height = element.offsetHeight - 280 + 'px'
|
||||
myEcharts.resize();
|
||||
});
|
||||
if (!isFullScreen.value) {
|
||||
initChart(res.data.dates, res.data.consumptionValues, res.data.saveElectricityValues, '94%')
|
||||
if (isFullScreen.value) {
|
||||
initChart(res.data.dates, res.data.consumptionValues, res.data.saveElectricityValues, dataZoomTop)
|
||||
}
|
||||
} else {
|
||||
shrinkScreen()
|
||||
@@ -337,7 +337,7 @@ const handleOpenChart = () => {
|
||||
chooseMonthRef.value.clearData()
|
||||
}
|
||||
})
|
||||
isFullScreen.value = false
|
||||
isFullScreen.value = true
|
||||
getFanInfo(openEquipmentId.value, 'month', '', true)
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user