diff --git a/web/src/design-system/components/Table.tsx b/web/src/design-system/components/Table.tsx index 3054549..1c623f5 100644 --- a/web/src/design-system/components/Table.tsx +++ b/web/src/design-system/components/Table.tsx @@ -90,54 +90,56 @@ export function Table({ }); return ( - - {caption !== undefined ? ( - - ) : null} - - - {columns.map((column) => ( - - ))} - - - - {data.length === 0 ? ( +
+
- {caption} -
- {column.header} -
+ {caption !== undefined ? ( + + ) : null} + - + {columns.map((column) => ( + + ))} - ) : ( - data.map((row, index) => ( - - {columns.map((column) => ( - - ))} + + + {data.length === 0 ? ( + + - )) - )} - -
+ {caption} +
- {emptyMessage} - + {column.header} +
- {cellContent(column, row)} -
+ {emptyMessage} +
+ ) : ( + data.map((row, index) => ( + + {columns.map((column) => ( + + {cellContent(column, row)} + + ))} + + )) + )} + + + ); } diff --git a/web/src/pages/Dashboard.tsx b/web/src/pages/Dashboard.tsx index 77d204f..4b3797d 100644 --- a/web/src/pages/Dashboard.tsx +++ b/web/src/pages/Dashboard.tsx @@ -351,12 +351,13 @@ export function Dashboard(): JSX.Element { }, }; // 销售视图:去掉与「审批进度」重复的列(承接建议/最近处理),插入审批进度,保留操作列。 + // 风控/管理层视图:去掉冗余的「可接受性」(与承接建议重复),精简列宽避免溢出。 const historyColumns = isSales ? (() => { const base = columns.filter((col) => col.key !== 'recommendation' && col.key !== 'latest'); return [...base.slice(0, -1), approvalProgressCol, base[base.length - 1]!]; })() - : columns; + : columns.filter((col) => col.key !== 'acceptability'); const summaryItems = [ { label: isSales ? '我的评估' : '全部评估', value: summary.total, tone: colorVar('color.brand.primary') }, { label: isSales ? '被驳回(待处理)' : '我的待办', value: todoCount, tone: colorVar('color.risk.high') }, @@ -584,7 +585,10 @@ export function Dashboard(): JSX.Element { return {name}{mine ? '(我)' : ''}; }, }; - const todoColumns = [...columns.slice(0, -1), assignCol, columns[columns.length - 1]!]; + // 待处理列表精简列(参考销售列表):去掉「可接受性」(与承接建议重复)与「最近处理」 + //(待审项最近处理即提交动作,对裁决无意义),插入「指派审批人」,保留操作列,避免溢出。 + const todoBase = columns.filter((col) => col.key !== 'acceptability' && col.key !== 'latest'); + const todoColumns = [...todoBase.slice(0, -1), assignCol, todoBase[todoBase.length - 1]!]; return (