fix: 使用数据库数据集新增计算字段,如果点击引用字段输入框中有信息,保存时会提示字段表达式语法错误。 #6919

This commit is contained in:
dataeaseShu 2023-11-30 17:43:21 +08:00
parent 5ed6578742
commit 905be5a84a

View File

@ -535,7 +535,7 @@ export default {
}, },
setNameIdTrans(from, to, originName, name2Auto) { setNameIdTrans(from, to, originName, name2Auto) {
let name2Id = originName let name2Id = originName
const nameIdMap = [...this.dimensionData, ...this.quotaData].reduce( const nameIdMap = [...this.tableFields.dimensionList, ...this.tableFields.quotaList].reduce(
(pre, next) => { (pre, next) => {
pre[next[from]] = next[to] pre[next[from]] = next[to]
return pre return pre