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.
78 lines
1.4 KiB
78 lines
1.4 KiB
1 year ago
|
import { BasicColumn } from '@/components/Table';
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
export const PlaninfoColumn: BasicColumn[] = [
|
||
|
|
||
|
{
|
||
|
title: '任务名称',
|
||
|
dataIndex: 'taskName',
|
||
|
align:'left'
|
||
|
},
|
||
|
{
|
||
|
title: '计划开始时间',
|
||
|
dataIndex: 'scheduledStartTime',
|
||
|
},
|
||
|
{
|
||
|
title: '计划结束时间',
|
||
|
dataIndex: 'scheduledEndTime',
|
||
|
},
|
||
|
{
|
||
|
title: '所需文件',
|
||
|
dataIndex: 'taskFile',
|
||
|
},
|
||
|
{
|
||
|
title: '是否已完成',
|
||
|
dataIndex: 'isfinish',
|
||
|
customRender: ({ record }) => {
|
||
|
if (record.isfinish == 1) {
|
||
|
return "审批中"
|
||
|
}else if(record.isfinish == 2) {
|
||
|
return "已完成"
|
||
|
}
|
||
|
else {
|
||
|
return "未完成"
|
||
|
}
|
||
|
},
|
||
|
}
|
||
|
|
||
|
];
|
||
|
export const PlaninfoFiletableColumns: BasicColumn[] = [
|
||
|
{
|
||
|
title: '文件名称',
|
||
|
dataIndex: 'documentName',
|
||
|
},
|
||
|
{
|
||
|
title: '文件大小',
|
||
|
dataIndex: 'size',
|
||
|
width: 100,
|
||
|
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"
|
||
|
}
|
||
|
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
title: '上传时间',
|
||
|
dataIndex: 'createDate',
|
||
|
},
|
||
|
{
|
||
|
title: '文件状态',
|
||
|
dataIndex: 'status',
|
||
|
customRender: ({ record }) => {
|
||
|
if (record.status == 1) {
|
||
|
return "有效"
|
||
|
}
|
||
|
else {
|
||
|
return "历史文件" //0
|
||
|
}
|
||
|
},
|
||
|
}
|
||
|
]
|