feat(转正申请): 列表新增申请人列
固定展示审批实例申请人,并对 formConfig 动态列按 prop 去重,避免模板已配置该字段时重复。
Co-Authored-By: Claude Code <noreply@anthropic.com>
| | |
| | | const leadingCols = moduleKey && INSTANCE_NO_SEARCH_MODULE_KEYS.has(moduleKey) ? [INSTANCE_NO_TABLE_COLUMN] : []; |
| | | |
| | | return computed(() => { |
| | | const formCols = getFormConfigFieldColumns(tableDataRef.value?.[0], { excludeKeys }); |
| | | // 固定列已展示的字段不再由 formConfig 动态列重复生成 |
| | | const fixedProps = new Set( |
| | | [...beforeFormColumns, ...extraColumns, ...afterFormColumns] |
| | | .map(c => c?.prop) |
| | | .filter(Boolean) |
| | | ); |
| | | const formCols = getFormConfigFieldColumns(tableDataRef.value?.[0], { |
| | | excludeKeys: new Set([...(excludeKeys || []), ...fixedProps]), |
| | | }); |
| | | return [ |
| | | ...leadingCols, |
| | | ...beforeFormColumns, |
| | |
| | | |
| | | const tableColumn = buildInstanceTableColumns(tableData, buildTableActions, { |
| | | moduleKey: APPROVAL_MODULE_KEYS.REGULAR, |
| | | beforeFormColumns: [ |
| | | { |
| | | label: "申请人", |
| | | prop: "applicantName", |
| | | width: 120, |
| | | showOverflowTooltip: true, |
| | | }, |
| | | ], |
| | | }); |
| | | |
| | | function onSearch() { |