feat:dashboard legend 别名功能 & asset-account 配置bug修改

This commit is contained in:
wangwenrui
2020-03-04 09:58:19 +08:00
parent 7052835c42
commit 37503b55bd
5 changed files with 52 additions and 24 deletions

View File

@@ -215,7 +215,8 @@
elements:{
id: '',
expression: '',
type: ''
type: '',
legend:'',
},
panel: ''
},
@@ -317,6 +318,7 @@
this.rightBox.title = title;
},
save() {
console.log(this.chart);
this.$refs['chartForm'].validate((valid) => {
if (valid) {
if (this.chart.id) {//修改
@@ -503,6 +505,7 @@
//metric: elem.metric,//指标名称
expression: metricStr,//指标对应Label及Value组成的表达式字符串
type:elem.type,//指标类型
legend:elem.legend,//配置的legend
});
}else if(elem.type==='expert'){
elements.push({
@@ -510,6 +513,7 @@
//metric: elem.metric,//指标名称
expression: elem.expression,//指标对应Label及Value组成的表达式字符串
type:elem.type,//指标类型
legend:elem.legend,//配置的legend
});
}
});