From ae1afca6065e6cc69174af4151cc3e073d7eb169 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期一, 16 十二月 2024 14:31:02 +0800
Subject: [PATCH] 代码节点

---
 src/components/vue-flow/vueFlowEnum.ts |   28 +++++++++++++++++++---------
 1 files changed, 19 insertions(+), 9 deletions(-)

diff --git a/src/components/vue-flow/vueFlowEnum.ts b/src/components/vue-flow/vueFlowEnum.ts
index 1367a14..ce460e7 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 {
@@ -16,8 +16,10 @@
 	End = 'end',
 	Condition = 'condition',
 	Knowledge = 'knowledge',
-	Output = 'output',
-	Agent='agent'
+	Output = 'output_msg',
+	Agent = 'agent',
+	Func = 'func',
+	Code = 'code',
 }
 
 export const nodeTypeMap = {
@@ -26,9 +28,10 @@
 	[NodeType.End]: '缁撴潫',
 	[NodeType.Condition]: '鏉′欢鍒ゆ柇',
 	[NodeType.Knowledge]: '鐭ヨ瘑搴�',
-	[NodeType.Output]: '杈撳嚭',
+	[NodeType.Output]: '瀵硅瘽',
 	[NodeType.Agent]: '浠g悊',
-
+	[NodeType.Func]: '鎵ц鍔熻兘',
+	[NodeType.Code]: '浠g爜',
 };
 
 export const enum CompareOperation {
@@ -44,6 +47,11 @@
 	startWith = 'startWith',
 	/** @description 缁撴潫涓� */
 	endWith = 'endWith',
+
+	/** @description 闈炲紑濮嬩负 */
+	notStartWith = 'notStartWith',
+	/** @description 闈炵粨鏉熶负 */
+	notEndWith = 'notEndWith',
 
 	/** @description 绛変簬 */
 	eq = 'eq',
@@ -67,10 +75,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