Commit adc38f01 authored by 李苏's avatar 李苏 💬

echart

parent 20d50b07
<template> <template>
<!-- 外层排版--> <!-- 外层排版-->
<div class="home-page" id="homePageBody" :style="{ height: height + 'px' }"> <!-- <div class="home-page" id="homePageBody" :style="{ height: height + 'px' }"> -->
<div class="min_full" >
<div class="home-page full" ref='homePageBody' id="homePageBody" style="overflow: hidden;">
<div class="page-homepage" id="homePage" @dblclick="handleDoubleClick" style=""> <div class="page-homepage" id="homePage" @dblclick="handleDoubleClick" style="">
<div class="echarts_nav" id="echarts_nav"> <div class="echarts_nav" id="echarts_nav">
<div class="iconTable" v-for="item in gsList" :key="item.id" @click="bindGsid(item)"> <div class="iconTable" v-for="item in gsList" :key="item.id" @click="bindGsid(item)">
...@@ -71,7 +73,18 @@ ...@@ -71,7 +73,18 @@
</div> </div>
<div class="page-left-b page-left-3"> <div class="page-left-b page-left-3">
<div class="yhzl-big-box"> <div class="yhzl-big-box">
<div id="yjylChart" class="chart-auto"></div> <div v-echartResize="()=>{
fxpcChart.resize();
yhclChart.resize();
yjylChart.resize();
yhzlChart.resize();
rfxpcChart.resize();
lzglChart.resize();
ygzcChart.resize();
height=refs('homePageBody').parentNode.clientHeight;
}" id="yjylChart" class="chart-auto"></div>
</div> </div>
</div> </div>
</div> </div>
...@@ -161,6 +174,8 @@ ...@@ -161,6 +174,8 @@
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
...@@ -219,6 +234,12 @@ export default { ...@@ -219,6 +234,12 @@ export default {
} }
}, },
height(value){ height(value){
document.addEventListener('fullscreenchange', (event) => {
if (!document.fullscreenElement) {
// 全屏已退出
console.log('Exited full screen');
}
});
// setTimeout(() => { // setTimeout(() => {
// this.fxpcChart.resize(); // this.fxpcChart.resize();
...@@ -238,9 +259,11 @@ export default { ...@@ -238,9 +259,11 @@ export default {
activated() { activated() {
console.log('activated') console.log('activated')
}, },
mounted() { mounted() {
this.postGs(); this.postGs();
this.$nextTick(() => { this.$nextTick(() => {
this.height=document.getElementById('homePageBody').parentNode.clientHeight; this.height=document.getElementById('homePageBody').parentNode.clientHeight;
this.carHeight=this.height*0.4-60+'px'; this.carHeight=this.height*0.4-60+'px';
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment