feat: 视图支持计算字段

This commit is contained in:
junjun 2022-06-23 10:00:35 +08:00
parent dcb1dab5ad
commit f91cbcf9a9

View File

@ -427,8 +427,7 @@ export default {
this.fieldForm.columnIndex = 0
this.fieldForm.chartId = this.param.id
}
this.fieldForm.originName = this.setNameIdTrans('name', 'id', originName)
post('/chart/field/save/' + this.panelInfo.id, this.fieldForm).then(response => {
post('/chart/field/save/' + this.panelInfo.id, { ...this.fieldForm, originName: this.setNameIdTrans('name', 'id', originName) }).then(response => {
this.closeCalcField()
})
},