Merge pull request #2473 from dataease/pr@dev_caculate_filed_save

fix: 计算字段报错 name变id
This commit is contained in:
fit2cloudrd 2022-06-22 16:47:11 +08:00 committed by GitHub
commit 9998ae2bc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -382,8 +382,7 @@ export default {
this.fieldForm.tableId = this.param.id
this.fieldForm.columnIndex = this.tableFields.dimensionList.length + this.tableFields.quotaList.length
}
this.fieldForm.originName = this.setNameIdTrans('name', 'id', originName)
post('/dataset/field/save', this.fieldForm).then(response => {
post('/dataset/field/save', {...this.fieldForm, originName: this.setNameIdTrans('name', 'id', originName) }).then(response => {
this.closeCalcField()
})
},