From 667c08a39b523e7afdf00a6af17ac2d4274b659a Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期五, 13 十二月 2024 09:37:33 +0800 Subject: [PATCH] 代理名称 --- src/components/vue-flow/vueFlowEnum.ts | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 53 insertions(+), 5 deletions(-) diff --git a/src/components/vue-flow/vueFlowEnum.ts b/src/components/vue-flow/vueFlowEnum.ts index 85e7936..e7c1022 100644 --- a/src/components/vue-flow/vueFlowEnum.ts +++ b/src/components/vue-flow/vueFlowEnum.ts @@ -15,6 +15,9 @@ Start = 'start', End = 'end', Condition = 'condition', + Knowledge = 'knowledge', + Output = 'output_msg', + Agent='agent' } export const nodeTypeMap = { @@ -22,9 +25,30 @@ [NodeType.Start]: '寮�濮�', [NodeType.End]: '缁撴潫', [NodeType.Condition]: '鏉′欢鍒ゆ柇', + [NodeType.Knowledge]: '鐭ヨ瘑搴�', + [NodeType.Output]: '杈撳嚭', + [NodeType.Agent]: '浠g悊', + }; export const enum CompareOperation { + /** @description 鍖呭惈 */ + include = 'include', + /** @description 涓嶅寘鍚� */ + notInclude = 'notInclude', + /** @description 涓虹┖ */ + empty = 'empty', + /** @description 涓嶄负绌� */ + notEmpty = 'notEmpty', + /** @description 寮�濮嬩负 */ + startWith = 'startWith', + /** @description 缁撴潫涓� */ + endWith = 'endWith', + + /** @description 绛変簬 */ + eq = 'eq', + /** @description 涓嶇瓑浜� */ + neq = 'neq', /** @description 澶т簬 */ gt = 'gt', /** @description 灏忎簬 */ @@ -35,10 +59,18 @@ 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]: '缁撴潫涓�', }; export const enum VarType { @@ -59,4 +91,20 @@ export const conditionOperatorMap = { [ConditionOperator.And]: '涓�', [ConditionOperator.Or]: '鎴�', -}; \ No newline at end of file +}; + +// 浜や簰绫诲瀷 +export const enum InteractionType { + // 鏃犱氦浜� + None = 'none', + // 閫夋嫨鍨嬩氦浜� + Select = 'select', + // 杈撳叆鍨嬩氦浜� + Input = 'input', +} + +export const interactionTypeMap = { + [InteractionType.None]: '鏃犱氦浜�', + [InteractionType.Select]: '閫夋嫨鍨嬩氦浜�', + [InteractionType.Input]: '杈撳叆鍨嬩氦浜�', +}; -- Gitblit v1.9.3