+
@@ -712,8 +712,9 @@
params:this.paramsID
}).then((res)=>{
if (bool_val){
- this.tableDataIDOpenI = res.data
+ this.tableDataIDOpenI = res.data
this.drawOpenItrend()
+
}else{
@@ -925,6 +926,11 @@
]
};
this.echartsOITd.setOption(option)
+ // setTimeout(function (){
+ // window.onresize = function () {
+ // this.echartsOITd.resize();
+ // }
+ // },200)
},
drawSelectData(){
@@ -1018,6 +1024,11 @@
]
};
this.echartsSelectData.setOption(this.option)
+ // setTimeout(function (){
+ // window.onresize = function () {
+ // this.echartsSelectData.resize;
+ // }
+ // },200)
// // 使用刚指定的选择项数据显示图表。
// var selectArr = this.echartsSelectData.getOption().legend[0].data;//legend所有值
@@ -1117,14 +1128,13 @@
mounted() {
- // document.getElementById("all").style.outline="none"
- // document.getElementById("all").focus()
+
this.getAllProList("all",7)
console.log("id:"+this.pro_id);
- // document.getElementById('radar_openi').style.width = document.getElementById('charts').offsetWidth*0.4+'px'
- // document.getElementById('line_openi').style.width = document.getElementById('charts').offsetWidth*0.6+'px'
- // document.getElementById('selectData').style.width = document.getElementById('linecharts').offsetWidth+'px'
-
+
+ document.getElementById('radar_openi').style.width = document.getElementById('pro_main').offsetWidth*0.22+'px'
+ document.getElementById('line_openi').style.width = document.getElementById('pro_main').offsetWidth*0.33+'px'
+ document.getElementById('selectData').style.width = document.getElementById('pro_main').offsetWidth*0.8+'px'
this.radarOpenI = this.$echarts.init(document.getElementById('radar_openi'))
this.echartsOITd = this.$echarts.init(document.getElementById('line_openi'))
this.echartsSelectData = this.$echarts.init(document.getElementById('selectData'))
@@ -1266,4 +1276,4 @@
margin-top: 10px;
font-weight:bold;
}
-
\ No newline at end of file
+