feat: 新增 切换 datasource 以及 type 清空部分不需要的参数

This commit is contained in:
zhangyu
2021-12-01 17:12:02 +08:00
parent cc6bfbbdc2
commit 9aa66facc6
4 changed files with 163 additions and 100 deletions

View File

@@ -191,22 +191,16 @@ export default {
id: '',
name: '',
type: 'line',
span: 12,
span: 4,
datasource: '1',
height: 4,
unit: 2,
param: {
url: '',
threshold: '',
stack: 0,
nullType: 'null',
legend: { placement: 'bottom', values: [], show: true },
thresholdShow: true,
thresholds: [{ value: '', color: '#eeeeeeff' }],
valueMapping: {
show: true,
mapping: []
}
thresholds: [{ value: '', color: '#eeeeeeff' }]
},
elements: [{ expression: '', legend: '', type: 'expert', id: '', name: 'A' }],
panel: '',