mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-02 05:50:24 +08:00
feat: redis支持工单流程审批
This commit is contained in:
28
mayfly_go_web/src/views/ops/redis/components/CmdExecBox.ts
Normal file
28
mayfly_go_web/src/views/ops/redis/components/CmdExecBox.ts
Normal 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;
|
||||
Reference in New Issue
Block a user