修改xispeak前端代码

This commit is contained in:
wsm
2026-05-06 08:54:18 +08:00
parent 98d7368c18
commit 349b7b4341
8 changed files with 1551 additions and 110 deletions
+190
View File
@@ -0,0 +1,190 @@
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: 'speakStatus'
},
{
title: '时间',
align: 'center',
dataIndex: 'time',
customRender:({text}) =>{
text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
return text;
},
},
{
title: '企业负责同志批示情况',
align: 'center',
dataIndex: 'elmComment'
},
{
title: '学习传达研究部署情况',
align: 'center',
dataIndex: 'status'
},
{
title: '责任人',
align: 'center',
dataIndex: 'responsiblePerson_dictText'
},
{
title: '落实方案',
align: 'center',
dataIndex: 'implPlan'
},
{
title: '牵头部门',
align: 'center',
dataIndex: 'leadDepartment_dictText'
},
{
title: '贯彻落实措施',
align: 'center',
dataIndex: 'implMeasures'
},
{
title: '会议决策数',
align: 'center',
dataIndex: 'numberOfResolutions'
},
{
title: '落实情况',
align: 'left',
dataIndex: 'implStatus'
},
{
title: '落实条数',
align: 'center',
dataIndex: 'implCount'
},
{
title: '已闭环数量',
align: 'center',
dataIndex: 'closedCount'
},
{
title: '报告反馈情况',
align: 'center',
dataIndex: 'reportFeedbackStatus'
},
{
title: '是否存在完成风险(0不存在,1存在)',
align: 'center',
dataIndex: 'isCompletionRisk'
},
{
title: '拖期风险应对措施',
align: 'center',
dataIndex: 'delayRiskMitigation'
},
{
title: '完成状态(0推进中,1已完成)',
align: 'center',
dataIndex: 'completionStatus'
},
{
title: '落实部门id',
align: 'center',
dataIndex: 'implDept_dictText'
},
{
title: '层深(最顶层节点层深为0)',
align: 'center',
dataIndex: 'treeDepth'
},
{
title: '同级数据排序号',
align: 'center',
dataIndex: 'sortOrder'
},
{
title: '流程引擎状态字段',
align: 'center',
dataIndex: 'bpmStatus'
},
{
title: '督办次数',
align: 'center',
dataIndex: 'supervisionCount'
},
];
//子表列表数据
export const bgXiSpeakFeedbackColumns: 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: 'responTime',
customRender: ({ text }) => {
text = !text ? '' : text.length > 10 ? text.substr(0, 10) : text;
return text;
},
},
{
title: '落实情况',
align: 'center',
dataIndex: 'implStatus',
},
{
title: '完成状态',
align: 'center',
dataIndex: 'completionStatus',
},
{
title: '外键',
align: 'center',
dataIndex: 'mainId',
},
];
// 高级查询数据
export const superQuerySchema = {
speakStatus: {title: '习近平总书记重要讲话指示批示情况',order: 1,view: 'text', type: 'string',},
time: {title: '时间',order: 2,view: 'date', type: 'string',},
elmComment: {title: '企业负责同志批示情况',order: 3,view: 'text', type: 'string',},
status: {title: '学习传达研究部署情况',order: 4,view: 'text', type: 'string',},
responsiblePerson: {title: '责任人',order: 5,view: 'sel_user', type: 'string',},
implPlan: {title: '落实方案',order: 6,view: 'text', type: 'string',},
leadDepartment: {title: '牵头部门',order: 7,view: 'sel_depart', type: 'string',},
implMeasures: {title: '贯彻落实措施',order: 8,view: 'text', type: 'string',},
numberOfResolutions: {title: '会议决策数',order: 9,view: 'number', type: 'number',},
implStatus: {title: '落实情况',order: 10,view: 'text', type: 'string',},
implCount: {title: '落实条数',order: 11,view: 'number', type: 'number',},
closedCount: {title: '已闭环数量',order: 12,view: 'number', type: 'number',},
reportFeedbackStatus: {title: '报告反馈情况',order: 13,view: 'text', type: 'string',},
isCompletionRisk: {title: '是否存在完成风险(0不存在,1存在)',order: 14,view: 'number', type: 'number',},
delayRiskMitigation: {title: '拖期风险应对措施',order: 15,view: 'text', type: 'string',},
completionStatus: {title: '完成状态(0推进中,1已完成)',order: 16,view: 'number', type: 'number',},
implDept: {title: '落实部门id',order: 17,view: 'sel_depart', type: 'string',},
treeDepth: {title: '层深(最顶层节点层深为0)',order: 18,view: 'number', type: 'number',},
sortOrder: {title: '同级数据排序号',order: 19,view: 'number', type: 'number',},
bpmStatus: {title: '流程引擎状态字段',order: 21,view: 'number', type: 'number',},
supervisionCount: {title: '督办次数',order: 22,view: 'number', type: 'number',},
};