From ceafabaff25616eb6837f02c5edc2cc868616339 Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期一, 12 十月 2026 16:56:30 +0800
Subject: [PATCH] fix: 更新分页参数名称以保持组件间的一致性
---
src/views/officeProcessAutomation/ApproveManage/approve-template/useApproveTemplate.js | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/views/officeProcessAutomation/ApproveManage/approve-template/useApproveTemplate.js b/src/views/officeProcessAutomation/ApproveManage/approve-template/useApproveTemplate.js
index bf35c0a..df25e2e 100644
--- a/src/views/officeProcessAutomation/ApproveManage/approve-template/useApproveTemplate.js
+++ b/src/views/officeProcessAutomation/ApproveManage/approve-template/useApproveTemplate.js
@@ -17,6 +17,7 @@
isBuiltinTemplate,
mapTemplateFromApi,
mapTemplateToApi,
+ nodeDisplayName,
nodeSignModeLabel,
formatDisplayTime,
unwrapTemplateDetail,
@@ -104,10 +105,9 @@
},
{
label: "娴佺▼姒傝",
- prop: "flowNodes",
+ prop: "flowSummary",
minWidth: 220,
showOverflowTooltip: true,
- formatData: (v) => flowNodesSummary(v),
},
{
label: "鐘舵��",
@@ -159,7 +159,11 @@
buildApprovalTemplateListParams({ page, searchForm })
);
const data = res?.data || {};
- tableData.value = (data.records || []).map(mapTemplateFromApi);
+ // 娴佺▼姒傝鎸夈�屽鎵圭被鍨嬄峰眰绾с�嶅睍绀猴紝闇�瑕佹妸妯℃澘鍚嶅甫杩涙枃妗堥噷
+ tableData.value = (data.records || []).map(mapTemplateFromApi).map((row) => ({
+ ...row,
+ flowSummary: flowNodesSummary(row.flowNodes, row.templateName),
+ }));
page.total = Number(data.total || 0);
} catch {
tableData.value = [];
@@ -321,6 +325,7 @@
templateTypeLabel,
fetchTemplateList,
nodeSignModeLabel,
+ nodeDisplayName,
flowNodesSummary,
searchForm,
tableLoading,
--
Gitblit v1.9.3