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 []
|
||||
|
||||
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 _column = {
|
||||
label: c.label,
|
||||
type: c.type,
|
||||
key: c.value,
|
||||
type: c.fieldtype,
|
||||
key: c.fieldname,
|
||||
width: '10rem',
|
||||
align,
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user