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
+6 -5
View File
@@ -4,6 +4,7 @@ import { ref, onMounted } from "vue";
import { useRouter } from "vue-router";
import { Message } from "view-ui-plus";
import { flowApi, INSTANCE_STATUS } from "@/api/module/flow";
import Utils from "@/utils";
const router = useRouter();
const loading = ref(false);
@@ -23,13 +24,13 @@ const columns = [
{ title: "当前节点", key: "currentNodes", width: 150 },
{ title: "提交时间", width: 170, render: (h: any, p: any) => h("span", (p.row.submitTime || "").replace("T", " ")) },
{ title: "办结时间", width: 170, render: (h: any, p: any) => h("span", (p.row.finishTime || "").replace("T", " ") || "-") },
{ title: "操作", width: 180, render: (h: any, p: any) => {
const btns = [h("Button", { size: "small", onClick: () => router.push(`/instance/${p.row.instanceId}`) }, () => "详情")];
{ title: "操作", width: 150, render: (h: any, p: any) => {
const btns = [Utils.operatingTextHandle(h, "详情", "", () => router.push(`/instance/${p.row.instanceId}?pid=101`))];
if (p.row.status === 10) {
btns.push(h("Button", { size: "small", onClick: () => onWithdraw(p.row) }, () => "撤回"));
btns.push(h("Button", { size: "small", onClick: () => onUrge(p.row) }, () => "催办"));
btns.push(Utils.operatingTextHandle(h, "撤回", "", () => onWithdraw(p.row)));
btns.push(Utils.operatingTextHandle(h, "催办", "", () => onUrge(p.row)));
}
return h("div", { style: "display:flex;gap:4px" }, btns);
return btns;
} },
];