From 579c4d61f4db50e438b0b34c316ebb476f73c41f Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期一, 16 十二月 2024 16:49:42 +0800 Subject: [PATCH] 萤石摄像头 --- src/components/vue-flow/vueFlowEnum.ts | 70 +++++++++++++++++++++++++++++++--- 1 files changed, 63 insertions(+), 7 deletions(-) diff --git a/src/components/vue-flow/vueFlowEnum.ts b/src/components/vue-flow/vueFlowEnum.ts index 8394a62..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,6 +16,10 @@ End = 'end', Condition = 'condition', Knowledge = 'knowledge', + Output = 'output_msg', + Agent = 'agent', + Func = 'func', + Code = 'code', } export const nodeTypeMap = { @@ -24,9 +28,35 @@ [NodeType.End]: '缁撴潫', [NodeType.Condition]: '鏉′欢鍒ゆ柇', [NodeType.Knowledge]: '鐭ヨ瘑搴�', + [NodeType.Output]: '瀵硅瘽', + [NodeType.Agent]: '浠g悊', + [NodeType.Func]: '鎵ц鍔熻兘', + [NodeType.Code]: '浠g爜', }; export const enum CompareOperation { + /** @description 鍖呭惈 */ + include = 'include', + /** @description 涓嶅寘鍚� */ + notInclude = 'notInclude', + /** @description 涓虹┖ */ + empty = 'empty', + /** @description 涓嶄负绌� */ + notEmpty = 'notEmpty', + /** @description 寮�濮嬩负 */ + startWith = 'startWith', + /** @description 缁撴潫涓� */ + endWith = 'endWith', + + /** @description 闈炲紑濮嬩负 */ + notStartWith = 'notStartWith', + /** @description 闈炵粨鏉熶负 */ + notEndWith = 'notEndWith', + + /** @description 绛変簬 */ + eq = 'eq', + /** @description 涓嶇瓑浜� */ + neq = 'neq', /** @description 澶т簬 */ gt = 'gt', /** @description 灏忎簬 */ @@ -37,10 +67,20 @@ lte = 'lte', } export const compareOperationMap = { - [CompareOperation.gt]: '>', - [CompareOperation.lt]: '<', - [CompareOperation.gte]: '鈮�', - [CompareOperation.lte]: '鈮�', + [CompareOperation.gt]: '澶т簬', + [CompareOperation.lt]: '灏忎簬', + [CompareOperation.gte]: '澶т簬鎴栫瓑浜�', + [CompareOperation.lte]: '灏忎簬鎴栫瓑浜�', + [CompareOperation.eq]: '绛変簬', + [CompareOperation.neq]: '涓嶇瓑浜�', + [CompareOperation.include]: '鍖呭惈', + [CompareOperation.notInclude]: '涓嶅寘鍚�', + [CompareOperation.empty]: '涓虹┖', + [CompareOperation.notEmpty]: '涓嶄负绌�', + [CompareOperation.startWith]: '寮�濮嬩负', + [CompareOperation.endWith]: '缁撴潫涓�', + [CompareOperation.notStartWith]: '闈炲紑濮嬩负', + [CompareOperation.notEndWith]: '闈炵粨鏉熶负', }; export const enum VarType { @@ -62,3 +102,19 @@ [ConditionOperator.And]: '涓�', [ConditionOperator.Or]: '鎴�', }; + +// 浜や簰绫诲瀷 +export const enum InteractionType { + // 鏃犱氦浜� + None = 'none', + // 閫夋嫨鍨嬩氦浜� + Select = 'select', + // 杈撳叆鍨嬩氦浜� + Input = 'input', +} + +export const interactionTypeMap = { + [InteractionType.None]: '鏃犱氦浜�', + [InteractionType.Select]: '閫夋嫨鍨嬩氦浜�', + [InteractionType.Input]: '杈撳叆鍨嬩氦浜�', +}; -- Gitblit v1.9.3