销售列表精简列(去承接建议/最近处理),避免审批进度撑宽导致操作列被挤出可见区
This commit is contained in:
@@ -350,7 +350,13 @@ export function Dashboard(): JSX.Element {
|
||||
);
|
||||
},
|
||||
};
|
||||
const historyColumns = isSales ? [...columns.slice(0, -1), approvalProgressCol, columns[columns.length - 1]!] : columns;
|
||||
// 销售视图:去掉与「审批进度」重复的列(承接建议/最近处理),插入审批进度,保留操作列。
|
||||
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;
|
||||
const summaryItems = [
|
||||
{ label: isSales ? '我的评估' : '全部评估', value: summary.total, tone: colorVar('color.brand.primary') },
|
||||
{ label: isSales ? '被驳回(待处理)' : '我的待办', value: todoCount, tone: colorVar('color.risk.high') },
|
||||
|
||||
Reference in New Issue
Block a user