fix:修复singleStat编辑报错的问题&调整图表类型下拉顺序
This commit is contained in:
@@ -323,30 +323,30 @@
|
|||||||
id:"line",
|
id:"line",
|
||||||
name:this.$t("dashboard.panel.chartForm.typeVal.line.label")
|
name:this.$t("dashboard.panel.chartForm.typeVal.line.label")
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id:"bar",
|
|
||||||
name:this.$t("dashboard.panel.chartForm.typeVal.bar.label")
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id:"table",
|
|
||||||
name:this.$t("dashboard.panel.chartForm.typeVal.table.label")
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id:'stackArea',
|
id:'stackArea',
|
||||||
name:this.$t("dashboard.panel.chartForm.typeVal.stackArea.label")
|
name:this.$t("dashboard.panel.chartForm.typeVal.stackArea.label")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id:'url',
|
id:"bar",
|
||||||
name:this.$t("dashboard.panel.chartForm.typeVal.url.label")
|
name:this.$t("dashboard.panel.chartForm.typeVal.bar.label")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id:'singleStat',
|
id:'singleStat',
|
||||||
name:this.$t("dashboard.panel.chartForm.typeVal.singleStat.label")
|
name:this.$t("dashboard.panel.chartForm.typeVal.singleStat.label")
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id:"table",
|
||||||
|
name:this.$t("dashboard.panel.chartForm.typeVal.table.label")
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id:'alertList',
|
id:'alertList',
|
||||||
name:this.$t("dashboard.panel.chartForm.typeVal.alertList.label")
|
name:this.$t("dashboard.panel.chartForm.typeVal.alertList.label")
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
id:'url',
|
||||||
|
name:this.$t("dashboard.panel.chartForm.typeVal.url.label")
|
||||||
|
},
|
||||||
],
|
],
|
||||||
elements: [1], // 指标部分 tarNum
|
elements: [1], // 指标部分 tarNum
|
||||||
elementTarget: [], // 本地保存数据
|
elementTarget: [], // 本地保存数据
|
||||||
@@ -1225,6 +1225,7 @@
|
|||||||
} else if(n.type === 'alertList'){
|
} else if(n.type === 'alertList'){
|
||||||
this.setIsAlertList();
|
this.setIsAlertList();
|
||||||
} else if(n.type === 'singleStat'){
|
} else if(n.type === 'singleStat'){
|
||||||
|
n.param&&!n.param.valueMapping&&this.$set(this.editChart.param,'valueMapping',{type:'value',mapping:[{text:'',value:''}]})
|
||||||
this.setIsSingleStat();
|
this.setIsSingleStat();
|
||||||
} else {
|
} else {
|
||||||
this.setIsOtherChart();
|
this.setIsOtherChart();
|
||||||
|
|||||||
Reference in New Issue
Block a user