From d2da078b40578cf72901442c7a2b878dfc34cae5 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期五, 13 十二月 2024 12:10:00 +0800
Subject: [PATCH] feat(flow): 新增执行功能节点并优化流程画布

---
 src/components/vue-flow/vueFlowEnum.ts |   23 ++++++++++++++++-------
 1 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/src/components/vue-flow/vueFlowEnum.ts b/src/components/vue-flow/vueFlowEnum.ts
index 7fa6b6f..a0c03c8 100644
--- a/src/components/vue-flow/vueFlowEnum.ts
+++ b/src/components/vue-flow/vueFlowEnum.ts
@@ -5,9 +5,9 @@
 }
 
 export const parameterTypeMap = {
-	[ParameterType.String]: 'string',
-	[ParameterType.Number]: 'number',
-	[ParameterType.Boolean]: 'boolean',
+	[ParameterType.String]: '瀛楃涓�',
+	[ParameterType.Number]: '鏁板瓧',
+	[ParameterType.Boolean]: '甯冨皵鍊�',
 };
 
 export const enum NodeType {
@@ -17,7 +17,8 @@
 	Condition = 'condition',
 	Knowledge = 'knowledge',
 	Output = 'output_msg',
-	Agent='agent'
+	Agent='agent',
+	Func='func',
 }
 
 export const nodeTypeMap = {
@@ -26,8 +27,9 @@
 	[NodeType.End]: '缁撴潫',
 	[NodeType.Condition]: '鏉′欢鍒ゆ柇',
 	[NodeType.Knowledge]: '鐭ヨ瘑搴�',
-	[NodeType.Output]: '杈撳嚭',
+	[NodeType.Output]: '瀵硅瘽',
 	[NodeType.Agent]: '浠g悊',
+	[NodeType.Func]: '鎵ц鍔熻兘',
 
 };
 
@@ -44,6 +46,11 @@
 	startWith = 'startWith',
 	/** @description 缁撴潫涓� */
 	endWith = 'endWith',
+
+	/** @description 闈炲紑濮嬩负 */
+	notStartWith = 'notStartWith',
+	/** @description 闈炵粨鏉熶负 */
+	notEndWith = 'notEndWith',
 
 	/** @description 绛変簬 */
 	eq = 'eq',
@@ -67,10 +74,12 @@
 	[CompareOperation.neq]: '涓嶇瓑浜�',
 	[CompareOperation.include]: '鍖呭惈',
 	[CompareOperation.notInclude]: '涓嶅寘鍚�',
-	// [CompareOperation.empty]: '涓虹┖',
-	// [CompareOperation.notEmpty]: '涓嶄负绌�',
+	[CompareOperation.empty]: '涓虹┖',
+	[CompareOperation.notEmpty]: '涓嶄负绌�',
 	[CompareOperation.startWith]: '寮�濮嬩负',
 	[CompareOperation.endWith]: '缁撴潫涓�',
+	[CompareOperation.notStartWith]: '闈炲紑濮嬩负',
+	[CompareOperation.notEndWith]: '闈炵粨鏉熶负',
 };
 
 export const enum VarType {

--
Gitblit v1.9.3