fix: cannot add like field in listview
This commit is contained in:
parent
b21d2aea6f
commit
326b553922
@ -210,7 +210,7 @@ const fields = computed(() => {
|
|||||||
if (!allFields) return []
|
if (!allFields) return []
|
||||||
|
|
||||||
return allFields.filter((field) => {
|
return allFields.filter((field) => {
|
||||||
return !columns.value.find((column) => column.key === field.value)
|
return !columns.value.find((column) => column.key === field.fieldname)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -218,8 +218,8 @@ function addColumn(c) {
|
|||||||
let align = ['Float', 'Int', 'Percent', 'Currency'].includes(c.type) ? 'right' : 'left'
|
let align = ['Float', 'Int', 'Percent', 'Currency'].includes(c.type) ? 'right' : 'left'
|
||||||
let _column = {
|
let _column = {
|
||||||
label: c.label,
|
label: c.label,
|
||||||
type: c.type,
|
type: c.fieldtype,
|
||||||
key: c.value,
|
key: c.fieldname,
|
||||||
width: '10rem',
|
width: '10rem',
|
||||||
align,
|
align,
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user