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) {