feat: redis支持工单流程审批

This commit is contained in:
meilin.huang
2024-03-02 19:08:19 +08:00
parent 76475e807e
commit 49d3f988c9
93 changed files with 1107 additions and 1014 deletions

View File

@@ -0,0 +1,28 @@
import { h, render } from 'vue';
import CmdExecDialog from './CmdExecDialog.vue';
export type CmdExecProps = {
id: number;
db: number | string;
cmd: any[];
flowProcdefKey?: string;
visible?: boolean;
runSuccessFn?: Function;
cancelFn?: Function;
};
const showCmdExecBox = (props: CmdExecProps): void => {
const propsCancelFn = props.cancelFn;
props.cancelFn = () => {
propsCancelFn && propsCancelFn();
setTimeout(() => {
// 销毁组件
render(null, document.body);
}, 500);
};
const vnode = h(CmdExecDialog, { ...props, visible: true });
render(vnode, document.body);
};
export default showCmdExecBox;