This commit is contained in:
@@ -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;
|
||||
} },
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user