fix : 修复echart弹窗默认小屏
This commit is contained in:
@@ -425,8 +425,8 @@ const getFanInfo = (equipmentId, type = 'day', time = '', flag, startTime, endTi
|
||||
nextTick(() => {
|
||||
if (flag) {
|
||||
const fan = document.getElementById('fanDialog')
|
||||
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'
|
||||
}
|
||||
@@ -444,8 +444,8 @@ const getFanInfo = (equipmentId, type = 'day', time = '', flag, startTime, endTi
|
||||
fanChart.style.height = element.offsetHeight - 140 + 'px'
|
||||
myEcharts.resize();
|
||||
});
|
||||
if (!isFullScreen.value) {
|
||||
initChart(res.data.dates, res.data.currentsA, res.data.currentsB, res.data.currentsC, '93%')
|
||||
if (isFullScreen.value) {
|
||||
initChart(res.data.dates, res.data.currentsA, res.data.currentsB, res.data.currentsC, dataZoomTop)
|
||||
}
|
||||
} else {
|
||||
shrinkScreen()
|
||||
@@ -471,7 +471,7 @@ const handleOpenChart = (item) => {
|
||||
isVisited.value = true
|
||||
selectTimeButton.value = 2
|
||||
openEquipmentId.value = item.equipmentId
|
||||
isFullScreen.value = false
|
||||
isFullScreen.value = true
|
||||
getFanInfo(item.equipmentId, 'day', '', true)
|
||||
if (item.equipmentType === "frequency1") {
|
||||
fanIndex.value = '一'
|
||||
|
||||
Reference in New Issue
Block a user