Skip to content
This repository has been archived by the owner on Dec 27, 2021. It is now read-only.

Commit

Permalink
refactor(shema:logistical): add new field (wuhan2020#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaceee committed Mar 8, 2020
1 parent f4eb67c commit cea1ab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/schema/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions app/schema/table_logistical.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cea1ab9

Please sign in to comment.