From f32b395e27995e703f2d2ffbc5abe7fcbbb473b1 Mon Sep 17 00:00:00 2001 From: Kven <2955163637@qq.com> Date: Sun, 22 Jun 2025 20:57:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(@vben/web-antd):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E5=85=B3=E8=81=94=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=B9=B6=E4=BC=98=E5=8C=96=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 linkDetail API 获取工作流关联详情 - 在表单中展示已关联的部门信息 - 添加操作成功后的通知提示 - 优化工作流列表的刷新功能 --- apps/web-antd/src/api/core/workflow.ts | 4 ++++ apps/web-antd/src/views/workflow/list.vue | 10 +++++----- apps/web-antd/src/views/workflow/modules/form.vue | 13 ++++++++++++- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/apps/web-antd/src/api/core/workflow.ts b/apps/web-antd/src/api/core/workflow.ts index 5e6f750..3992ff7 100644 --- a/apps/web-antd/src/api/core/workflow.ts +++ b/apps/web-antd/src/api/core/workflow.ts @@ -57,3 +57,7 @@ export function getWorkflowList(params: WorkflowApi.WorkflowLogParams) { export function linkWorkflow(data: WorkflowApi.WorkflowLinkParams) { return requestClient.post(`/v1/server/link`, data); } + +export function linkDetail(workflowId: string) { + return requestClient.get(`/v1/server/link/${workflowId}`); +} diff --git a/apps/web-antd/src/views/workflow/list.vue b/apps/web-antd/src/views/workflow/list.vue index 2462a60..a049023 100644 --- a/apps/web-antd/src/views/workflow/list.vue +++ b/apps/web-antd/src/views/workflow/list.vue @@ -44,7 +44,7 @@ function onActionClick({ code, row }: OnActionClickParams) { } } -const [Grid] = useVbenVxeGrid({ +const [Grid, gridApi] = useVbenVxeGrid({ formOptions: { schema: useGridFormSchema(), }, @@ -82,14 +82,14 @@ const [Grid] = useVbenVxeGrid({ } as VxeTableGridOptions, }); -// function onRefresh() { -// gridApi.query(); -// } +function onRefresh() { + gridApi.query(); +}