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

200 lines
4.2 KiB

import { FormSchema } from '@/components/Form';
import { BasicColumn } from '@/components/Table';
import { el } from 'element-plus/es/locale';
// export const showDetailColumns: BasicColumn[] = [
// {
// title: '评价维度',
// width: 150,
// dataIndex: 'evaluationDimension',
// customRender: ({ text, record, index }) => {
// const obj = {
// children: text,
// props: {} as any,
// };
// if (record.evaluationLength != null && record.evaluationLength != 0) {
// obj.props.rowSpan = record.evaluationLength
// } else {
// obj.props.rowSpan = 0
// }
// return obj
// },
// },
// {
// title: '一级指标',
// dataIndex: 'primaryIndicator',
// customRender: ({ text, record, index }) => {
// const obj = {
// children: text,
// props: {} as any,
// };
// if (record.primaryLength != null && record.primaryLength != 0) {
// obj.props.rowSpan = record.primaryLength
// }
// else {
// obj.props.rowSpan = 0
// }
// return obj
// },
// },
// {
// title: '二级指标',
// dataIndex: 'secondaryIndicator',
// customRender: ({ text, record, index }) => {
// const obj = {
// children: text,
// props: {} as any,
// };
// if (record.secondaryLength != null) {
// obj.props.rowSpan = record.secondaryLength
// }
// else {
// obj.props.rowSpan = 0
// }
// return obj
// },
// },
// {
// title: '三级指标',
// dataIndex: 'tertiaryIndicator',
// customRender: ({ text, record, index }) => {
// const obj = {
// children: text,
// props: {} as any,
// };
// if (record.tertiaryLength != null) {
// obj.props.rowSpan = record.tertiaryLength
// }
// else {
// obj.props.rowSpan = 0
// }
// return obj
// },
// },
// {
// title: '描述',
// resizable: true,
// ellipsis: false,
// dataIndex: 'description',
// },
// {
// title: '分数',
// fixed: 'right',
// dataIndex: 'scores',
// width: 80,
// },
// {
// title: '自我评分',
// width: 80,
// dataIndex: 'selfScores',
// },
// {
// title: '系统评分',
// dataIndex: 'sysscores',
// fixed: 'right',
// width: 80,
// },
// {
// title: '管理评分',
// fixed: 'right',
// width: 80,
// dataIndex: 'pscores',
// }
// ]
export const projectAssessmentColumns: BasicColumn[] = [
{
title: '项目编号',
width: 150,
dataIndex: 'projectId',
ifShow: false,
},
{
title: '项目名称',
dataIndex: 'projectName',
width: 300,
resizable: true,
},
{
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: 'totalSysscores',
// resizable: true
// },
{
title: '牵头处室评分总分',
dataIndex: 'pscores',
resizable: true
},
// {
// title: '总得分',
// dataIndex: 'totalScores',
// resizable: true
// },
];
export const projectInfoHistoryDetailColumns: BasicColumn[] = [
{
title: '字段名称',
width: 150,
dataIndex: 'fieldName',
},
{
title: '字段修改次数',
dataIndex: 'fieldTotal',
},
{
title: '新值',
dataIndex: 'newvalue',
},
{
title: '旧值',
dataIndex: 'oldvalue',
},
{
title: '修改时间',
dataIndex: 'createDate',
},
]
export const searchFormSchema: FormSchema[] = [
{
label: '项目名称',
field: 'projectName',
component: 'Input',
//colProps: { span: 6 },
},
{
label: '项目编号',
field: 'projectId',
component: 'Input',
//colProps: { span: 6 },
}
];