From 4c014a4f8034bd8c73aba8d909a58f63d5c4ec89 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期五, 17 一月 2025 08:39:18 +0800 Subject: [PATCH] Merge branch 'master' of http://dlindusit.com:53929/r/iailab-plat-ui-vue3 --- src/components/SimpleProcessDesignerV2/src/NodeHandler.vue | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/components/SimpleProcessDesignerV2/src/NodeHandler.vue b/src/components/SimpleProcessDesignerV2/src/NodeHandler.vue index 853a0aa..4dfd51a 100644 --- a/src/components/SimpleProcessDesignerV2/src/NodeHandler.vue +++ b/src/components/SimpleProcessDesignerV2/src/NodeHandler.vue @@ -39,6 +39,13 @@ </div> <div class="handler-item-text">包容分支</div> </div> + <div class="handler-item" @click="addNode(NodeType.DELAY_TIMER_NODE)"> + <!-- TODO @芋艿 需要更换一下iconfont的图标 --> + <div class="handler-item-icon copy"> + <span class="iconfont icon-size icon-copy"></span> + </div> + <div class="handler-item-text">延迟器</div> + </div> </div> <template #reference> <div class="add-icon"><Icon icon="ep:plus" /></div> @@ -208,6 +215,16 @@ } emits('update:childNode', data) } + if (type === NodeType.DELAY_TIMER_NODE) { + const data: SimpleFlowNode = { + id: 'Activity_' + generateUUID(), + name: NODE_DEFAULT_NAME.get(NodeType.DELAY_TIMER_NODE) as string, + showText: '', + type: NodeType.DELAY_TIMER_NODE, + childNode: props.childNode + } + emits('update:childNode', data) + } } </script> -- Gitblit v1.9.3