diff --git a/app/schema/table.ts b/app/schema/table.ts index edc45a1..8bbaf5a 100644 --- a/app/schema/table.ts +++ b/app/schema/table.ts @@ -38,7 +38,7 @@ export const defaultValidation = (row: any[]): boolean => { return v !== null && !v.includes('未'); }; -export type ColumnTypes = 'string' | 'int' | 'float' | 'url' | 'address' | 'enum' | 'supply' | 'contact' | 'date' | 'supplies'; +export type ColumnTypes = 'string' | 'int' | 'float' | 'url' | 'address' | 'enum' | 'supply' | 'contact' | 'date' | 'supplies' | 'bool'; export interface TableData { guid: string; diff --git a/app/schema/table_logistical.ts b/app/schema/table_logistical.ts index 39b16d5..1d4dff5 100644 --- a/app/schema/table_logistical.ts +++ b/app/schema/table_logistical.ts @@ -21,6 +21,7 @@ const logisticalTable: TableConfig = { contacts: getCellByType(row, 'contact').value, date: getCellByType(row, 'date').value, allowPersonal: getCellByName(row, '是否接受个人捐赠').value, + allowPersonalBool: getCellByType(row, 'bool').value, url: getCellByName(row, '发布链接').value, remark: getCellByName(row, '备注').value, area: getCellByName(row, '物流区域').value,