83 lines
2.4 KiB
TypeScript
83 lines
2.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: 'nodeType',
|
|
customRender: ({ text }) => {
|
|
return render.renderDict(text, 'super_dq_ins_type');
|
|
},
|
|
},
|
|
{
|
|
title: '密级',
|
|
align: 'center',
|
|
dataIndex: 'secretLevel_dictText'
|
|
},
|
|
{
|
|
title: '年份',
|
|
align: 'center',
|
|
dataIndex: 'year_dictText'
|
|
},
|
|
{
|
|
title: '父节点ID',
|
|
align: 'center',
|
|
dataIndex: 'pid'
|
|
},
|
|
{
|
|
title: '是否有子节点',
|
|
align: 'center',
|
|
dataIndex: 'hasChild'
|
|
},
|
|
|
|
{
|
|
title: '问题名称',
|
|
align: 'left',
|
|
dataIndex: 'problemName'
|
|
},
|
|
{
|
|
title: '问题编码/分类字典值',
|
|
align: 'center',
|
|
dataIndex: 'problemCode'
|
|
},
|
|
{
|
|
title: '排序',
|
|
align: 'center',
|
|
dataIndex: 'sortNo'
|
|
},
|
|
{
|
|
title: '巡视建议',
|
|
align: 'center',
|
|
dataIndex: 'inspectAdvice'
|
|
},
|
|
{
|
|
title: '问题责任领导',
|
|
align: 'center',
|
|
dataIndex: 'questionResLeader_dictText'
|
|
},
|
|
{
|
|
title: '问题责任部门',
|
|
align: 'center',
|
|
dataIndex: 'questionResDept_dictText'
|
|
},
|
|
];
|
|
|
|
// 高级查询数据
|
|
export const superQuerySchema = {
|
|
secretLevel: {title: '密级',order: 0,view: 'list', type: 'string',dictCode: 'secret_level',},
|
|
year: {title: '年份',order: 1,view: 'list', type: 'string',dictCode: 'super_year',},
|
|
pid: {title: '父节点ID',order: 2,view: 'text', type: 'string',},
|
|
hasChild: {title: '是否有子节点',order: 3,view: 'text', type: 'string',},
|
|
nodeType: {title: '节点类型:category/surface/specific',order: 4,view: 'text', type: 'string',},
|
|
problemName: {title: '问题名称',order: 5,view: 'text', type: 'string',},
|
|
problemCode: {title: '问题编码/分类字典值',order: 6,view: 'text', type: 'string',},
|
|
sortNo: {title: '排序',order: 7,view: 'number', type: 'number',},
|
|
inspectAdvice: {title: '巡视建议',order: 8,view: 'text', type: 'string',},
|
|
questionResLeader: {title: '问题责任领导',order: 9,view: 'sel_depart', type: 'string',},
|
|
questionResDept: {title: '问题责任部门',order: 10,view: 'sel_user', type: 'string',},
|
|
};
|