irc_web/.svn/pristine/3f/3fdcb6353ecee02049b5bec619e...

30 lines
1.1 KiB
Plaintext

const cols1 = [
{ label: 'Trial ID', width: '90', prop: 'TrialCode' },
{ label: 'Expedited', width: '110', prop: 'Expedited' },
{ label: 'Indication', width: '110', prop: 'Indication' },
{ label: 'CRO', width: '90', prop: 'Cro' },
{ label: 'Name', width: '90', prop: 'FullName' },
{ label: 'Name CN', width: '100', prop: 'ChineseName' },
{ label: 'Reviewer ID', width: '115', prop: 'ReviewerCode' },
{ label: 'Month', width: '100', prop: 'YearMonth' }
]
const cols2 = [
{ label: 'Trial ID', width: '105', prop: 'TrialCode' },
{ label: 'Expedited', width: '105', prop: 'Expedited' },
{ label: 'Indication', width: '105', prop: 'Indication' },
{ label: 'CRO', width: '105', prop: 'Cro' }
]
const cols3 = [
{ label: 'Name', width: '105', prop: 'FullName' },
{ label: 'Name CN', width: '105', prop: 'ChineseName' },
{ label: 'Reviewer ID', width: '120', prop: 'ReviewerCode' }
]
const cols4 = [{ label: 'Month', width: '100', prop: 'YearMonth' }]
export function getColumns(type) {
return type === 0 ? cols1 : type === 1 ? cols2 : type === 2 ? cols3 : type === 3 ? cols4 : []
}