fix:修改BUG
1.dashboard模块图表:预览功能异常,无法显示图表(调整图表高度导致,图表高度之后再进行调试修改),
This commit is contained in:
@@ -586,6 +586,7 @@ export default {
|
||||
option.title = title;
|
||||
this.echartStore.setOption(option);//创建图表
|
||||
this.echartStore.hideLoading();
|
||||
this.echartStore.resize({height:chartInfo.height});//,width:`${ele.clientWidth-100}`}
|
||||
if(legend && legend.length>0){
|
||||
this.legendList = [];
|
||||
legend.forEach((item, i) => {
|
||||
@@ -597,12 +598,13 @@ export default {
|
||||
this.isGrey.push(false);
|
||||
});
|
||||
}
|
||||
/*
|
||||
this.$nextTick(() => {
|
||||
let divHeight = this.$refs.legendArea.offsetHeight;
|
||||
let chartHeight = (chartInfo.height-divHeight);
|
||||
//alert(chartInfo.title+"--"+chartHeight);
|
||||
this.echartStore.resize({height:chartHeight});//,width:`${ele.clientWidth-100}`}
|
||||
});
|
||||
*/
|
||||
} else if (chartSite === 'screen') { // 全屏显示
|
||||
/*
|
||||
option.series = dataArg.map((item) => {// params.series = dataArg.map((item) => {
|
||||
@@ -654,6 +656,7 @@ export default {
|
||||
option.title = {};
|
||||
this.echartModalStore.setOption(option);//显示全屏界面
|
||||
this.echartModalStore.hideLoading();
|
||||
this.echartModalStore.resize({height:chartInfo.height});
|
||||
if(legend && legend.length>0){
|
||||
this.screenLegendList = [];
|
||||
legend.forEach((item, i) => {
|
||||
@@ -665,11 +668,13 @@ export default {
|
||||
this.isGreyScreen.push(false);
|
||||
});
|
||||
}
|
||||
/*
|
||||
this.$nextTick(() => {
|
||||
let divHeight = this.$refs.screenLegendArea.offsetHeight;
|
||||
let chartHeight = (chartInfo.height-divHeight);
|
||||
this.echartModalStore.resize({height:chartHeight});
|
||||
});
|
||||
*/
|
||||
}
|
||||
},
|
||||
handleLineFeed(str,chartWidth){
|
||||
|
||||
Reference in New Issue
Block a user