From 29d367bde3d8a247ced9f48fd7b0b124432602d1 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Thu, 6 Jun 2024 18:50:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BC=96=E6=8E=92=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/workflow/common/NodeCascader.vue | 40 +++++++++++++++++-- ui/src/workflow/index.vue | 16 ++++++-- .../workflow/nodes/condition-node/index.vue | 22 ++++------ .../nodes/search-dataset-node/index.vue | 15 ++++++- 4 files changed, 70 insertions(+), 23 deletions(-) diff --git a/ui/src/workflow/common/NodeCascader.vue b/ui/src/workflow/common/NodeCascader.vue index e3bfc3f14..9086bda62 100644 --- a/ui/src/workflow/common/NodeCascader.vue +++ b/ui/src/workflow/common/NodeCascader.vue @@ -1,10 +1,42 @@ diff --git a/ui/src/workflow/index.vue b/ui/src/workflow/index.vue index 3bf10a876..7c9cba67d 100644 --- a/ui/src/workflow/index.vue +++ b/ui/src/workflow/index.vue @@ -39,6 +39,16 @@ const graphData = { stepName: '知识库检索', input: [{ key: '输入' }], output: [{ key: '输出' }], + fields: [ + { + label: '检索结果', + value: 'data' + }, + { + label: '满足直接回答的分段内容', + value: 'paragraph' + } + ], node_data: { dataset_id_list: [], dataset_setting: { @@ -64,17 +74,17 @@ const graphData = { node_data: { branch: [ { - conditions: [{ field: { node_id: 'xxx', fields: '' }, compare: '', value: '' }], + conditions: [{ field: [], compare: '', value: '' }], id: '2391', condition: 'and' }, { - conditions: [{ field: { node_id: 'xxx', fields: '' }, compare: '', value: '' }], + conditions: [{ field: [], compare: '', value: '' }], id: '1143', condition: 'and' }, { - conditions: [{ field: { node_id: 'xxx', fields: '' }, compare: '', value: '' }], + conditions: [{ field: [], compare: '', value: '' }], id: '9208', condition: 'and' } diff --git a/ui/src/workflow/nodes/condition-node/index.vue b/ui/src/workflow/nodes/condition-node/index.vue index 12c0c18d4..85cae1384 100644 --- a/ui/src/workflow/nodes/condition-node/index.vue +++ b/ui/src/workflow/nodes/condition-node/index.vue @@ -20,21 +20,18 @@ - - - - + v-model="condition.field" + /> @@ -85,6 +82,7 @@