From 62873d882ffa6f8123c9f8b0c71568ff02bbdebb Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Fri, 17 Oct 2025 18:03:37 +0800 Subject: [PATCH] feat: create tag function --- .../lang/zh-CN/views/application-workflow.ts | 16 +- .../zh-Hant/views/application-workflow.ts | 14 +- .../views/document/component/AddTagDialog.vue | 73 +++++---- .../document/component/CreateTagDialog.vue | 107 ------------- ui/src/views/document/index.vue | 4 +- ui/src/views/document/tag/CreateTagDialog.vue | 146 ++++++++++++++++++ .../{component => tag}/EditTagDialog.vue | 0 .../document/{component => tag}/TagDrawer.vue | 90 +++++------ .../{component => tag}/TagSettingDrawer.vue | 0 .../workflow/nodes/loop-break-node/index.vue | 5 +- .../nodes/loop-continue-node/index.vue | 5 +- 11 files changed, 260 insertions(+), 200 deletions(-) delete mode 100644 ui/src/views/document/component/CreateTagDialog.vue create mode 100644 ui/src/views/document/tag/CreateTagDialog.vue rename ui/src/views/document/{component => tag}/EditTagDialog.vue (100%) rename ui/src/views/document/{component => tag}/TagDrawer.vue (69%) rename ui/src/views/document/{component => tag}/TagSettingDrawer.vue (100%) diff --git a/ui/src/locales/lang/zh-CN/views/application-workflow.ts b/ui/src/locales/lang/zh-CN/views/application-workflow.ts index a5b27bcee..c861fa980 100644 --- a/ui/src/locales/lang/zh-CN/views/application-workflow.ts +++ b/ui/src/locales/lang/zh-CN/views/application-workflow.ts @@ -450,18 +450,18 @@ export default { placeholder: '请输入表达式', }, }, - parameterExtractionNode: { - label: '参数提取', - text: '利用 AI 模型提取结构化参数', - result: '结果', + parameterExtractionNode: { + label: '參數提取', + text: '利用 AI 模型提取結構化參數', + result: '結果', selectVariables: { - label: '选择变量', - placeholder: '请选择变量', + label: '選擇變量', + placeholder: '請選擇變量', }, extractParameters: { - label: '提取参数', + label: '提取參數', desc: '描述', - parameterType: '参数类型', + parameterType: '參數類型', }, }, }, diff --git a/ui/src/locales/lang/zh-Hant/views/application-workflow.ts b/ui/src/locales/lang/zh-Hant/views/application-workflow.ts index 2fd049ae6..54cc1be0e 100644 --- a/ui/src/locales/lang/zh-Hant/views/application-workflow.ts +++ b/ui/src/locales/lang/zh-Hant/views/application-workflow.ts @@ -424,16 +424,16 @@ export default { }, }, parameterExtractionNode: { - label: 'Parameter Extraction', - text: 'Extract structured parameters using AI model', - result: 'Result', + label: '參數提取', + text: ' ', + result: '結果', selectVariables: { - label: 'Select Variables', - placeholder: 'Please select variables', + label: ' ', + placeholder: '請選擇要提取的參數', }, extractParameters: { - label: 'Extract Parameters', - desc: 'Description', + label: '提取參數', + desc: '從文本中提取參數', parameterType: 'Parameter Type', }, }, diff --git a/ui/src/views/document/component/AddTagDialog.vue b/ui/src/views/document/component/AddTagDialog.vue index 517869f39..cbcaa9127 100644 --- a/ui/src/views/document/component/AddTagDialog.vue +++ b/ui/src/views/document/component/AddTagDialog.vue @@ -1,9 +1,5 @@