style(xispeak): 优化列表显示列宽/顺序/对齐,新增所党委责任领导筛选,筛选框统一布局并选完即查

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wsm
2026-07-23 10:59:10 +08:00
co-authored by Claude Opus 4.7
parent 15e7e10b83
commit bb6fbbc7e8
2 changed files with 57 additions and 53 deletions
+37 -46
View File
@@ -9,36 +9,58 @@ export const columns: BasicColumn[] = [
title: '习近平总书记重要讲话指示批示情况',
align: 'center',
dataIndex: 'speakStatus',
width: 300,
},
{
title: '企业负责同志批示情况',
align: 'center',
dataIndex: 'elmComment',
width: 260,
},
{
title: '学习传达研究部署情况',
align: 'center',
dataIndex: 'status',
width: 260,
},
{
title: '时间',
align: 'center',
dataIndex: 'time',
width: 110,
customRender: ({ text }) => {
text = !text ? '' : text.length > 10 ? text.substr(0, 10) : text;
return text;
},
},
{
title: '企业负责同志批示情况',
title: '截止日期',
align: 'center',
dataIndex: 'elmComment',
},
{
title: '学习传达研究部署情况',
align: 'center',
dataIndex: 'status',
dataIndex: 'deadline',
width: 110,
customRender: ({ text }) => {
if (!text) return '';
if (text instanceof Date) {
const y = text.getFullYear();
const m = String(text.getMonth() + 1).padStart(2, '0');
const d = String(text.getDate()).padStart(2, '0');
return `${y}-${m}-${d}`;
}
text = String(text);
return text.length > 10 ? text.substr(0, 10) : text;
},
},
{
title: '密级',
align: 'center',
dataIndex: 'secretLevel_dictText',
width: 80,
width: 70,
},
{
title: '责任领导',
title: '所党委责任领导',
align: 'center',
dataIndex: 'responsiblePerson_dictText',
width: 120,
},
// {
// title: '落实方案',
@@ -49,16 +71,19 @@ export const columns: BasicColumn[] = [
title: '牵头部门',
align: 'center',
dataIndex: 'implDept_dictText',
width: 150,
},
{
title: '贯彻落实措施',
align: 'center',
dataIndex: 'implMeasures',
width: 200,
},
{
title: '会议决策数',
align: 'center',
dataIndex: 'numberOfResolutions',
width: 100,
},
// {
// title: '落实情况',
@@ -69,11 +94,13 @@ export const columns: BasicColumn[] = [
title: '落实措施条数',
align: 'center',
dataIndex: 'implCount',
width: 110,
},
{
title: '措施已闭环数',
align: 'center',
dataIndex: 'closedCount',
width: 110,
},
// {
// title: '报告反馈情况',
@@ -99,22 +126,7 @@ export const columns: BasicColumn[] = [
title: '督办状态',
align: 'center',
dataIndex: 'bpmStatus_dictText',
},
{
title: '截止日期',
align: 'center',
dataIndex: 'deadline',
customRender: ({ text }) => {
if (!text) return '';
if (text instanceof Date) {
const y = text.getFullYear();
const m = String(text.getMonth() + 1).padStart(2, '0');
const d = String(text.getDate()).padStart(2, '0');
return `${y}-${m}-${d}`;
}
text = String(text);
return text.length > 10 ? text.substr(0, 10) : text;
},
width: 90,
},
// {
// title: '层深(最顶层节点层深为0)',
@@ -131,27 +143,6 @@ export const columns: BasicColumn[] = [
// align: 'center',
// dataIndex: 'bpmStatus',
// },
{
title: '督办次数',
align: 'center',
dataIndex: 'supervisionCount',
},
{
title: '审批信息',
align: 'center',
dataIndex: 'approveInfo',
customRender: ({ text }) => {
if (!text) return '-';
try {
const info = typeof text === 'string' ? JSON.parse(text) : text;
const keys = Object.keys(info);
if (keys.length === 0) return '-';
return `${keys.length} 项审批`;
} catch {
return '-';
}
},
},
];
//子表列表数据