湖州项目前端
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.

219 lines
4.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',
},
10 months ago
{
title: '修改次数',
dataIndex: 'modifyNum',
},
{
title: '处理人',
dataIndex: 'createUser',
},
1 year ago
{
title: '文件状态',
dataIndex: 'status',
customRender: ({ record }) => {
if (record.status == 1) {
return "有效"
}
else {
return "历史文件" //0
}
},
}
]
export const searchFormSchema: FormSchema[] = [
{
label: '项目名称',
field: 'projectName',
component: 'Input',
labelWidth: 'auto'
//colProps: { span: 6 },
},
{
label: '行政区划',
field: 'adminDivision',
component: 'Input',
labelWidth: 'auto'
//colProps: { span: 6 },
},
{
//标题名称
label: '责任单位',
//字段
field: 'dutyWorkplace',
//组件 支持组件详见 components/Form/src/types/index.ts 中的 ComponentType
component: 'Input',
labelWidth: 'auto'
},
{
//标题名称
label: '单位属性',
//字段
field: 'workplaceProperties',
//组件 支持组件详见 components/Form/src/types/index.ts 中的 ComponentType
component: 'Input',
labelWidth: 'auto'
},
{
field: 'reformName',
label: '改革所属项目',
component: 'DictSelect',
componentProps: {
dictType: 'reformTasks',
},
itemProps: { validateTrigger: 'blur' },
labelWidth: 'auto'
},
{
field: 'superLeader',
label: '上级指导处室',
component: 'DictSelect',
componentProps: {
dictType: 'superLeader',
},
labelWidth: 'auto'
},
// {
// field: 'stage',
// label: '项目状态',
// component: 'Select',
// componentProps: {
// options: [
// { label: '项目入库完成', value: '2' },
// { label: '项目计划审批中', value: '4' },
// { label: '项目计划执行中', value: '5' },
// { label: '项目计划完成 ', value: '6' },
// ]
// },
// labelWidth: 'auto'
// },
];
export const unitedTechnicalRevieColumns: BasicColumn[] = [
{
title: '项目编号',
width: 150,
dataIndex: 'id',
ifShow: false,
},
{
title: '项目名称',
dataIndex: 'projectName',
width: 300,
resizable: true,
align: 'left',
slots: { customRender: 'projectName' },
},
{
title: '行政区划',
dataIndex: 'adminDivision',
resizable: true
},
{
title: '责任单位',
dataIndex: 'dutyWorkplace',
resizable: true
},
{
title: '单位属性',
dataIndex: 'workplaceProperties',
resizable: true
},
{
title: '改革所属项目',
dataIndex: 'reformName',
format: 'dict|reformTasks',
resizable: true
},
{
title: '上级指导处室',
dataIndex: 'superLeader',
format: 'dict|superLeader',
resizable: true
},
{
title: '是否完成',
dataIndex: 'utrIsfinish',
10 months ago
filters: [
{ text: '未完成', value: '0' },
{ text: '审批中', value: '1' },
{ text: '已完成', value: '2' },
],
customRender: ({ record }) => {
if (record.utrIsfinish == 1) {
return "审批中"
} else if (record.utrIsfinish == 2) {
return "已完成"
} else {
return "未完成"
}
},
},
];