|
|
@ -101,10 +101,7 @@ function checkColumnRequired( |
|
|
|
return !fields || fields.includes(column.title); |
|
|
|
return !fields || fields.includes(column.title); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export async function getColumnName( |
|
|
|
export async function getColumnName(column: Column<any>, columns?: Column[]) { |
|
|
|
column: Column<any>, |
|
|
|
|
|
|
|
columns?: Column[] = [], |
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
columns = columns || (await Column.list({ fk_model_id: column.fk_model_id })); |
|
|
|
columns = columns || (await Column.list({ fk_model_id: column.fk_model_id })); |
|
|
|
switch (column.uidt) { |
|
|
|
switch (column.uidt) { |
|
|
|
case UITypes.CreatedTime: { |
|
|
|
case UITypes.CreatedTime: { |
|
|
|