feat(ui): 详情页父子导航/列表链接按钮/办件详情内嵌流程图(办件进度抽屉数据源就绪)
build / build (push) Successful in 3m6s

This commit is contained in:
chenxing
2026-09-17 01:03:59 +08:00
parent e52c4324f6
commit 429a7f9152
9 changed files with 55 additions and 28 deletions
+5 -5
View File
@@ -3,6 +3,7 @@
import { ref, onMounted } from "vue";
import { Message, Modal } from "view-ui-plus";
import { flowApi } from "@/api/module/flow";
import Utils from "@/utils";
const LOG_STATUS: Record<number, string> = { 0: "待推/重试中", 1: "成功", 2: "死信" };
const EVENT_OPTIONS = ["flow.submitted", "flow.task.created", "flow.task.handled", "flow.completed", "flow.rejected", "flow.withdrawn"];
@@ -19,11 +20,10 @@ const regColumns = [
{ title: "订阅事件", key: "eventTypes", width: 200, render: (h: any, p: any) => h("span", p.row.eventTypes || "全部") },
{ title: "状态", width: 80, render: (h: any, p: any) => h("Tag", { color: p.row.status === 0 ? "green" : "gray" }, () => (p.row.status === 0 ? "启用" : "停用")) },
{ title: "操作", width: 220, render: (h: any, p: any) => {
const btns: any[] = [
h("Button", { size: "small", onClick: () => onRegStatus(p.row, p.row.status === 0) }, () => (p.row.status === 0 ? "停用" : "启用")),
h("Button", { size: "small", type: "warning", onClick: () => onResetSecret(p.row) }, () => "重置secret"),
return [
Utils.operatingTextHandle(h, p.row.status === 0 ? "停用" : "启用", "", () => onRegStatus(p.row, p.row.status === 0)),
Utils.operatingTextHandle(h, "重置secret", "text-error", () => onResetSecret(p.row)),
];
return h("div", { style: "display:flex;gap:4px" }, btns);
} },
];
@@ -60,7 +60,7 @@ const hungColumns = [
{ title: "末次结果", key: "lastError", minWidth: 220, render: (h: any, p: any) => h("span", p.row.lastError || p.row.lastHttpStatus || "-") },
{ title: "下次重推", width: 160, render: (h: any, p: any) => h("span", (p.row.nextRetryTime || "").replace("T", " ") || "-") },
{ title: "操作", width: 120, render: (h: any, p: any) =>
h("Button", { size: "small", type: "error", onClick: () => onMarkDead(p.row) }, () => "标记死信") },
Utils.operatingTextHandle(h, "标记死信", "text-error", () => onMarkDead(p.row)) },
];
async function loadRegs() {