From 33500e23d644facd9dc18d33b74c699e6f4e1b8a Mon Sep 17 00:00:00 2001 From: chenxing Date: Sun, 18 Oct 2026 08:06:10 +0800 Subject: [PATCH] =?UTF-8?q?[audit]=20P6.1=20F11-4=20=E5=8F=B0=E8=B4=A6?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E7=AD=9B=E9=80=89=E5=A2=9E=E3=80=8C=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E6=8C=82=E8=B5=B7=E3=80=8D=E4=BC=AA=E9=80=89=E9=A1=B9?= =?UTF-8?q?=20+=20=E8=A1=8C=E7=8A=B6=E6=80=81=E5=88=97=20routeHung=20?= =?UTF-8?q?=E7=BA=A2=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/flow/admin/Instances.vue | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/views/flow/admin/Instances.vue b/src/views/flow/admin/Instances.vue index 097e643..f5bb538 100644 --- a/src/views/flow/admin/Instances.vue +++ b/src/views/flow/admin/Instances.vue @@ -10,7 +10,8 @@ import { flowApi, INSTANCE_STATUS, INSTANCE_STATUS_COLOR } from "@/api/module/fl import { actionColumn } from "@/utils/tableActions"; const tableRef = ref | null>(null); -const dataParams = ref<{ status?: number; keyword?: string }>({ status: undefined, keyword: "" }); +// status 下拉含伪选项 'hung'(路由挂起):表内是 string,出站转 hung=true(不再传 status) +const dataParams = ref<{ status?: number | string; keyword?: string }>({ status: undefined, keyword: "" }); const drawerVisible = ref(false); const drawerInstanceId = ref(""); @@ -18,8 +19,11 @@ const columns = [ { title: "序号", type: "index", width: 70, align: "center" }, { title: "办件标题", key: "bizTitle", minWidth: 220 }, { title: "业务", width: 170, render: (h: any, p: any) => h("span", `${p.row.bizType || "-"}/${p.row.bizId || "-"}`) }, - { title: "状态", width: 100, align: "center", render: (h: any, p: any) => - h(Tag, { color: INSTANCE_STATUS_COLOR[p.row.status] || "gray" }, () => INSTANCE_STATUS[p.row.status] || p.row.status) }, + { title: "状态", width: 120, align: "center", render: (h: any, p: any) => h("span", [ + h(Tag, { color: INSTANCE_STATUS_COLOR[p.row.status] || "gray" }, () => INSTANCE_STATUS[p.row.status] || p.row.status), + // F11-4 路由挂起红标:接口回传 routeHung(最新 attempt 路由判断仍无出口) + p.row.routeHung ? h(Tag, { color: "red" }, () => "路由挂起") : null, + ]) }, { title: "提交人", key: "submitterName", width: 100 }, { title: "提交时间", width: 160, render: (h: any, p: any) => h("span", (p.row.submitTime || "").replace("T", " ")) }, actionColumn( @@ -54,7 +58,12 @@ function onReroute(row: any) { // dataApi 返回 Method(alova usePagination 负责发送与解包),不能调 .send() const tableApi = (p: { pageIndex: number; pageSize: number }) => { const params: any = { page: p.pageIndex, size: p.pageSize }; - if (dataParams.value.status) params.status = dataParams.value.status; + if (dataParams.value.status === "hung") { + // F11-4 路由挂起伪选项:只传 hung,不带 status(后端 hung 过滤已内含审批中) + params.hung = true; + } else if (dataParams.value.status) { + params.status = dataParams.value.status; + } if (dataParams.value.keyword) params.keyword = dataParams.value.keyword.trim(); return flowApi.adminInstances(params); }; @@ -73,6 +82,7 @@ function onSearch() {