feat:下拉增加默认参数

This commit is contained in:
zhangyu
2020-12-25 10:39:53 +08:00
parent 3f4b1af39b
commit 5dd5b388c1
5 changed files with 18 additions and 10 deletions

View File

@@ -1342,11 +1342,12 @@
}else {
this.setIsOtherChart();
if(chartType === 'bar'||chartType === 'line'||chartType === 'stackArea'){
this.editChart.param={nullType:this.editChart.param.nullType,threshold:'',legendValue:{min:'off',max:'off',avg:'off',last:'off',total:'off'}}
this.editChart.param={nullType:'connected',threshold:'',legendValue:{min:'off',max:'off',avg:'off',last:'off',total:'off'}}
}else if(chartType == 'table'){
this.$set(this.editChart.param,'last',0)
this.editChart.param={
statistics:'',
nullType:'connected',
valueMapping:{
type:'value',
mapping:[{text:'',value:'',color:{bac:'#fff',text:'#000'}}]