You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import { FormSchema } from '@/components/Form';
|
|
|
|
import { BasicColumn } from '@/components/Table';
|
|
|
|
|
|
|
|
|
|
|
|
export const monthlyJournalcolumns: BasicColumn[] = [
|
|
|
|
{
|
|
|
|
title: '期刊名称',
|
|
|
|
width: 250,
|
|
|
|
dataIndex: 'name',
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
title: '期刊期数',
|
|
|
|
width: 150,
|
|
|
|
dataIndex: 'periods',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '发布日期',
|
|
|
|
width: 200,
|
|
|
|
dataIndex: 'publishTime',
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// title: '文件名称',
|
|
|
|
// dataIndex: 'documentName',
|
|
|
|
// width: 150,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title: '文件大小',
|
|
|
|
// dataIndex: 'size',
|
|
|
|
// width: 150,
|
|
|
|
// customRender: ({ record }) => {
|
|
|
|
// let kbNum: number = record.size / 1024
|
|
|
|
// if (kbNum < 1024) {
|
|
|
|
// return kbNum.toFixed(2).toString() + "KB"
|
|
|
|
// } else {
|
|
|
|
// let mbNum: number = kbNum / 1024
|
|
|
|
// return mbNum.toFixed(2).toString() + "MB"
|
|
|
|
// }
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
];
|
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
|
|
{
|
|
|
|
label: '期刊期数',
|
|
|
|
field: 'periods',
|
|
|
|
component: 'Input',
|
|
|
|
colProps: { span: 5 },
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '发布日期',
|
|
|
|
field: 'publishTime',
|
|
|
|
component: 'Input',
|
|
|
|
colProps: { span: 5 },
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
];
|
|
|
|
export const monthlyJournalformSchemas: FormSchema[] = [
|
|
|
|
{
|
|
|
|
label: '期刊名称',
|
|
|
|
field: 'name',
|
|
|
|
component: 'Input',
|
|
|
|
required: true,
|
|
|
|
colProps: { span: 12 },
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: '期刊期数',
|
|
|
|
field: 'periods',
|
|
|
|
required: true,
|
|
|
|
component: 'Input',
|
|
|
|
colProps: { span: 6 },
|
|
|
|
|
|
|
|
}, {
|
|
|
|
label: '发布日期',
|
|
|
|
field: 'publishTime',
|
|
|
|
component: 'DatePicker',
|
|
|
|
componentProps: {
|
|
|
|
valueFormat: 'YYYY-MM-DD',
|
|
|
|
|
|
|
|
},
|
|
|
|
required: true,
|
|
|
|
colProps: { span: 6},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
];
|