|
@@ -6,7 +6,7 @@
|
|
<div ref="wrap">
|
|
<div ref="wrap">
|
|
<!-- <div>{{mid}}</div> -->
|
|
<!-- <div>{{mid}}</div> -->
|
|
<div class="ntitle">{{$store.state.addr.selectAddr}}{{option.title.text}}</div>
|
|
<div class="ntitle">{{$store.state.addr.selectAddr}}{{option.title.text}}</div>
|
|
- <div class="addr">{{$store.state.addr.selectAddr}}</div>
|
|
|
|
|
|
+ <!-- <div class="addr">{{$store.state.addr.selectAddr}}</div> -->
|
|
<div :id="mid" class="echarts" :style="style"></div>
|
|
<div :id="mid" class="echarts" :style="style"></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -80,7 +80,7 @@ export default {
|
|
computed: {
|
|
computed: {
|
|
style() {
|
|
style() {
|
|
return {
|
|
return {
|
|
- height: this.height?this.height:this.domHeight-67 +'px',
|
|
|
|
|
|
+ height: this.height?this.height:this.domHeight-48 +'px',
|
|
width: this.width,
|
|
width: this.width,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -100,7 +100,7 @@ export default {
|
|
this.myChart = echarts.init(document.getElementById(charUuid));
|
|
this.myChart = echarts.init(document.getElementById(charUuid));
|
|
let obj = this.$refs.wrap;
|
|
let obj = this.$refs.wrap;
|
|
let h = window.getComputedStyle(obj).height;
|
|
let h = window.getComputedStyle(obj).height;
|
|
- this.myChart.resize({height:h.slice(0, -2)-67+'px'})
|
|
|
|
|
|
+ this.myChart.resize({height:h.slice(0, -2)-48+'px'})
|
|
console.log('this.myChart h',h);
|
|
console.log('this.myChart h',h);
|
|
|
|
|
|
}
|
|
}
|