mirror of
https://github.com/dataease/dataease.git
synced 2025-02-25 03:52:59 +08:00
fix: 批量管理新建计算字段字段类型不显示
This commit is contained in:
parent
486688f52f
commit
ce7ce6b17c
@ -513,6 +513,10 @@ const confirmEditCalc = () => {
|
||||
return
|
||||
}
|
||||
const obj = cloneDeep(calcEdit.value.fieldForm)
|
||||
const { deType, dateFormat, deExtractType } = obj
|
||||
obj.dateFormat = deType === 1 ? dateFormat : ''
|
||||
obj.dateFormatType = deType === 1 ? dateFormat : ''
|
||||
obj.deTypeArr = deType === 1 && deExtractType === 0 ? [deType, dateFormat] : [deType]
|
||||
const result = allfields.value.findIndex(ele => obj.id === ele.id)
|
||||
if (result !== -1) {
|
||||
allfields.value.splice(result, 1, obj)
|
||||
|
Loading…
Reference in New Issue
Block a user