Files
supervision-test-frontend-repo/src/views/bg/bgpartymatter/BgPartymatter.data.ts
T

172 lines
4.4 KiB
TypeScript

import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
{
title: '督办次数',
align:"center",
dataIndex: 'superviseCount'
},
{
title: '年份',
align:"center",
dataIndex: 'year',
},
{
title: '密级',
align:"center",
dataIndex: 'secretLevel_dictText',
},
{
title: '序号',
align:"center",
dataIndex: 'number'
},
{
title: '会议时间',
align:"center",
dataIndex: 'matterTime',
customRender:({text}) =>{
text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
return text;
},
},
{
title: '事项名称',
align:"center",
dataIndex: 'title'
},
{
title: '会议决议',
align:"center",
dataIndex: 'content'
},
{
title: '事项目录编码',
align:"center",
dataIndex: 'matterCode'
},
{
title: '责任部门',
align:"center",
dataIndex: 'responDeptid_dictText'
},
{
title: '实际执行情况',
align:"center",
dataIndex: 'actualExect'
},
{
title: '完成状态',
align:"center",
dataIndex: 'bpmStatus'
},
{
title: '要求完成日期',
align:"center",
dataIndex: 'deadline',
customRender:({text}) =>{
text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
return text;
},
},
{
title: '紧急程度',
align:"center",
dataIndex: 'urgencyLevel',
},
{
title: '是否需要所办领导审批',
align:"center",
dataIndex: 'isNeedAppro',
customRender:({text}) => {
return render.renderSwitch(text, [{text:'是',value:'1'},{text:'否',value:'0'}])
},
},
{
title: '所办领导',
align:"center",
dataIndex: 'supDeptleaderid_dictText'
},
{
title: '是否抄送所领导',
align:"center",
dataIndex: 'isNeedSuoleader',
customRender:({text}) => {
return render.renderSwitch(text, [{text:'是',value:'1'},{text:'否',value:'0'}])
},
},
{
title: '抄送所领导',
align:"center",
dataIndex: 'suoleaderid_dictText'
},
];
//子表列表数据
export const bgPartymatterFeedbackColumns: BasicColumn[] = [
{
title: '责任部门id',
align:"center",
dataIndex: 'responDeptid'
},
{
title: '责任部门名称',
align:"center",
dataIndex: 'responDeptname'
},
{
title: '反馈人id',
align:"center",
dataIndex: 'responPersonid'
},
{
title: '反馈人姓名',
align:"center",
dataIndex: 'responPersonname'
},
{
title: '实际执行情况',
align:"center",
dataIndex: 'actualExect'
},
{
title: '实际完成时间',
align:"center",
dataIndex: 'actualTime'
},
{
title: '完成状态',
align:"center",
dataIndex: 'bpmStatus'
},
{
title: '外键',
align:"center",
dataIndex: 'mainId'
},
];
// 高级查询数据
export const superQuerySchema = {
year: {title: '年份',order: 0,view: 'text', type: 'string',},
number: {title: '序号',order: 1,view: 'text', type: 'string',},
matterTime: {title: '会议时间',order: 2,view: 'date', type: 'string',},
title: {title: '事项名称',order: 3,view: 'text', type: 'string',},
content: {title: '会议决议',order: 4,view: 'textarea', type: 'string',},
matterCode: {title: '事项目录编码',order: 5,view: 'text', type: 'string',},
responDeptid: {title: '责任部门',order: 6,view: 'sel_depart', type: 'string',},
actualExect: {title: '实际执行情况',order: 7,view: 'text', type: 'string',},
bpmStatus: {title: '完成状态',order: 8,view: 'text', type: 'string',},
superviseCount: {title: '督办次数',order: 9,view: 'text', type: 'string',},
deadline: {title: '要求完成日期',order: 10,view: 'date', type: 'string',},
urgencyLevel: {title: '紧急程度',order: 11,view: 'text', type: 'string',},
isNeedAppro: {title: '是否需要所办领导审批',order: 12,view: 'switch', type: 'string',},
supDeptleaderid: {title: '所办领导',order: 13,view: 'sel_user', type: 'string',},
isNeedSuoleader: {title: '是否抄送所领导',order: 14,view: 'switch', type: 'string',},
suoleaderid: {title: '抄送所领导',order: 15,view: 'sel_user', type: 'string',},
};