fix : 修复图表全屏bug
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user