perf:model 页面url图表默认显示调整

This commit is contained in:
wangwenrui
2020-05-29 15:21:04 +08:00
parent 371d6e4a20
commit 8d9703c62c
7 changed files with 86 additions and 72 deletions

View File

@@ -949,6 +949,8 @@
}else{
if((this.chart.type==='line'||this.chart.type==='bar'||this.chart.type==='stackArea')&&data.param){
this.chart.param.threshold=data.param.threshold;
}else{
this.chart.param.threshold='';
}
this.setIsOtherChart();
//this.getSuggestMetric();//获得指标列表
@@ -982,6 +984,8 @@
this.chart.span = 12;
this.chart.height = 400+'';
this.chart.unit=2;
this.chart.param.url='';
this.chart.param.threshold='';
this.elements = [1];
this.elementTarget = [];
bus.chartAddInfo.metricTarget = [];