Skip to content

Commit 90f4830

Browse files
fix: Fix the shared knowledge base list issue
1 parent 0dc1d74 commit 90f4830

File tree

5 files changed

+43
-9
lines changed

5 files changed

+43
-9
lines changed

ui/src/locales/lang/en-US/views/application-workflow.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default {
5757
NoReferencing: 'Referenced variable does not exist',
5858
placeholder: 'Please select a variable',
5959
inputPlaceholder: 'Please enter variable',
60-
loop: 'Loop Variable',
60+
loop: 'Loop Variable',
6161
},
6262
condition: {
6363
title: 'Execution Condition',
@@ -445,6 +445,7 @@ You are a master of problem optimization, adept at accurately inferring user int
445445
expression: {
446446
label: 'Expression',
447447
placeholder: 'Please enter expression',
448+
tooltip: 'Please use JSON Path expressions to split variables, e.g.: $.store.book',
448449
},
449450
},
450451
parameterExtractionNode: {

ui/src/locales/lang/zh-CN/views/application-workflow.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ export default {
456456
expression: {
457457
label: '表达式',
458458
placeholder: '请输入表达式',
459+
tooltip: '请使用JSON Path 表达式拆分变量,例如:$.store.book',
459460
},
460461
},
461462
parameterExtractionNode: {

ui/src/locales/lang/zh-Hant/views/application-workflow.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ export default {
431431
expression: {
432432
label: '表達式',
433433
placeholder: '請輸入表達式',
434+
tooltip: '請使用JSON Path 表達式拆分變量,例如:$.store.book',
434435
},
435436
},
436437
parameterExtractionNode: {

ui/src/views/knowledge/component/KnowledgeListContainer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ function openCreateFolder() {
534534
watch(
535535
() => folder.currentFolder,
536536
(newValue) => {
537-
if (newValue && newValue.id) {
537+
if (newValue && newValue.id && !isSystemShare.value) {
538538
paginationConfig.current_page = 1
539539
knowledge.setKnowledgeList([])
540540
getList()

ui/src/workflow/nodes/variable-splitting/component/VariableFieldDialog.vue

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,54 @@
1818
:rules="rules"
1919
:model="form"
2020
require-asterisk-position="right"
21+
hide-required-asterisk
2122
>
22-
<el-form-item :label="$t('common.variable')" prop="field">
23+
<el-form-item prop="field">
24+
<template #label>
25+
<div class="flex align-center">
26+
<span class="mr-4">{{ $t('common.variable') }}</span>
27+
<span class="color-danger">*</span>
28+
</div>
29+
</template>
2330
<el-input
2431
v-model="form.field"
2532
:maxlength="64"
2633
:placeholder="$t('views.applicationWorkflow.variable.inputPlaceholder')"
2734
show-word-limit
2835
/>
2936
</el-form-item>
30-
<el-form-item :label="$t('dynamicsForm.paramForm.name.label')" prop="label">
37+
<el-form-item prop="label">
38+
<template #label>
39+
<div class="flex align-center">
40+
<span class="mr-4">{{ $t('dynamicsForm.paramForm.name.label') }}</span>
41+
<span class="color-danger">*</span>
42+
</div>
43+
</template>
3144
<el-input
3245
v-model="form.label"
3346
:maxlength="64"
3447
show-word-limit
3548
:placeholder="$t('dynamicsForm.paramForm.name.placeholder')"
3649
/>
3750
</el-form-item>
38-
<el-form-item
39-
:label="$t('views.applicationWorkflow.nodes.variableSplittingNode.expression.label')"
40-
prop="expression"
41-
>
51+
<el-form-item prop="expression">
52+
<template #label>
53+
<div class="flex align-center">
54+
<span class="mr-4"
55+
>{{ $t('views.applicationWorkflow.nodes.variableSplittingNode.expression.label') }}
56+
<span class="color-danger">*</span></span
57+
>
58+
<el-tooltip
59+
effect="dark"
60+
:content="
61+
$t('views.applicationWorkflow.nodes.variableSplittingNode.expression.tooltip')
62+
"
63+
placement="right"
64+
>
65+
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
66+
</el-tooltip>
67+
</div>
68+
</template>
4269
<el-input
4370
v-model="form.expression"
4471
:maxlength="64"
@@ -81,7 +108,11 @@ const rules = reactive({
81108
{ required: true, message: t('dynamicsForm.paramForm.name.placeholder'), trigger: 'blur' },
82109
],
83110
field: [
84-
{ required: true, message: t('views.applicationWorkflow.variable.inputPlaceholder'), trigger: 'blur' },
111+
{
112+
required: true,
113+
message: t('views.applicationWorkflow.variable.inputPlaceholder'),
114+
trigger: 'blur',
115+
},
85116
{
86117
pattern: /^[a-zA-Z0-9_]+$/,
87118
message: t('dynamicsForm.paramForm.field.requiredMessage2'),

0 commit comments

Comments
 (0)