From ccafd4e4386f39d80191231096e7188841aa4ee2 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Wed, 13 Mar 2024 17:55:43 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E5=85=A8=E5=B1=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- src/components/content/airInfo/AirInfo.vue | 4 ++-- src/components/content/badGasInfo/BadGasInfo.vue | 4 ++-- src/components/content/fanInfo/FanInfo.vue | 4 ++-- src/components/content/windPressure/WindPressureList.vue | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index 67245dc..4e3e755 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,7 +16,7 @@ steps: - export NODE_MODULES_PATH=`pwd`/node_modules # - npm config set registry https://registry.npm.taobao.org - set NODE_OPTIONS=--openssl-legacy-provider - - npm install +# - npm install - npm run build - echo $NODE_MODULES_PATH - cp -r dist /app/build/$DRONE_REPO_NAME diff --git a/src/components/content/airInfo/AirInfo.vue b/src/components/content/airInfo/AirInfo.vue index dc36de8..ddae14e 100644 --- a/src/components/content/airInfo/AirInfo.vue +++ b/src/components/content/airInfo/AirInfo.vue @@ -205,7 +205,7 @@ const handleFullScreen = () => { fan.classList.remove('shrink-screen-dialog') titleName.style.fontSize = '70px' erd.listenTo(document.getElementById('airDialog'), (element) => { - fanChart.style.height = (element.offsetHeight - 120) + 'px' + fanChart.style.height = (element.offsetHeight - 140) + 'px' myEcharts.resize(); }); nextTick(() => { @@ -247,7 +247,7 @@ const getChartInfo = (equipmentId, type = 'day', time = '', flag, startTime, end const fanChart = document.getElementById('containerWind') const erd = elementResizeDetectorMaker(); erd.listenTo(document.getElementById('airDialog'), (element) => { - fanChart.style.height = element.offsetHeight - 120 + 'px' + fanChart.style.height = element.offsetHeight - 140 + 'px' myEcharts.resize(); }); if (!isFullScreen.value) { diff --git a/src/components/content/badGasInfo/BadGasInfo.vue b/src/components/content/badGasInfo/BadGasInfo.vue index a4826fb..45b0195 100644 --- a/src/components/content/badGasInfo/BadGasInfo.vue +++ b/src/components/content/badGasInfo/BadGasInfo.vue @@ -199,7 +199,7 @@ const handleFullScreen = () => { fan.classList.remove('shrink-screen-dialog') titleName.style.fontSize = '70px' erd.listenTo(document.getElementById('badDialog'), (element) => { - fanChart.style.height = (element.offsetHeight - 120) + 'px' + fanChart.style.height = (element.offsetHeight - 140) + 'px' myEcharts.resize(); }); nextTick(() => { @@ -313,7 +313,7 @@ const getBadGasChartInfo = (type, time = '', flag,startTime,endTime) => { const fanChart = document.getElementById('containerBad') const erd = elementResizeDetectorMaker(); erd.listenTo(document.getElementById('badDialog'), (element) => { - fanChart.style.height = element.offsetHeight - 120 + 'px' + fanChart.style.height = element.offsetHeight - 140 + 'px' myEcharts.resize(); }); if (!isFullScreen.value) { diff --git a/src/components/content/fanInfo/FanInfo.vue b/src/components/content/fanInfo/FanInfo.vue index be18094..e6a48d6 100644 --- a/src/components/content/fanInfo/FanInfo.vue +++ b/src/components/content/fanInfo/FanInfo.vue @@ -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) { diff --git a/src/components/content/windPressure/WindPressureList.vue b/src/components/content/windPressure/WindPressureList.vue index bed0f34..3c8a175 100644 --- a/src/components/content/windPressure/WindPressureList.vue +++ b/src/components/content/windPressure/WindPressureList.vue @@ -143,7 +143,7 @@ const handleFullScreen = () => { fan.classList.remove('shrink-screen-dialog') titleName.style.fontSize = '70px' erd.listenTo(document.getElementById('windDialog'), (element) => { - fanChart.style.height = (element.offsetHeight - 120) + 'px' + fanChart.style.height = (element.offsetHeight - 140) + 'px' myEcharts.resize(); }); nextTick(() => { @@ -210,7 +210,7 @@ const getWindInfo = (equipmentId, type = 'day', time = '', flag, startTime, endT const fanChart = document.getElementById('container') const erd = elementResizeDetectorMaker(); erd.listenTo(document.getElementById('windDialog'), (element) => { - fanChart.style.height = element.offsetHeight - 120 + 'px' + fanChart.style.height = element.offsetHeight - 140 + 'px' myEcharts.resize(); }); if (!isFullScreen.value) {