fix: Fix the shared knowledge base list issue
parent
0dc1d74cd1
commit
90f4830d82
|
|
@ -57,7 +57,7 @@ export default {
|
||||||
NoReferencing: 'Referenced variable does not exist',
|
NoReferencing: 'Referenced variable does not exist',
|
||||||
placeholder: 'Please select a variable',
|
placeholder: 'Please select a variable',
|
||||||
inputPlaceholder: 'Please enter variable',
|
inputPlaceholder: 'Please enter variable',
|
||||||
loop: 'Loop Variable',
|
loop: 'Loop Variable',
|
||||||
},
|
},
|
||||||
condition: {
|
condition: {
|
||||||
title: 'Execution Condition',
|
title: 'Execution Condition',
|
||||||
|
|
@ -445,6 +445,7 @@ You are a master of problem optimization, adept at accurately inferring user int
|
||||||
expression: {
|
expression: {
|
||||||
label: 'Expression',
|
label: 'Expression',
|
||||||
placeholder: 'Please enter expression',
|
placeholder: 'Please enter expression',
|
||||||
|
tooltip: 'Please use JSON Path expressions to split variables, e.g.: $.store.book',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
parameterExtractionNode: {
|
parameterExtractionNode: {
|
||||||
|
|
|
||||||
|
|
@ -456,6 +456,7 @@ export default {
|
||||||
expression: {
|
expression: {
|
||||||
label: '表达式',
|
label: '表达式',
|
||||||
placeholder: '请输入表达式',
|
placeholder: '请输入表达式',
|
||||||
|
tooltip: '请使用JSON Path 表达式拆分变量,例如:$.store.book',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
parameterExtractionNode: {
|
parameterExtractionNode: {
|
||||||
|
|
|
||||||
|
|
@ -431,6 +431,7 @@ export default {
|
||||||
expression: {
|
expression: {
|
||||||
label: '表達式',
|
label: '表達式',
|
||||||
placeholder: '請輸入表達式',
|
placeholder: '請輸入表達式',
|
||||||
|
tooltip: '請使用JSON Path 表達式拆分變量,例如:$.store.book',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
parameterExtractionNode: {
|
parameterExtractionNode: {
|
||||||
|
|
|
||||||
|
|
@ -534,7 +534,7 @@ function openCreateFolder() {
|
||||||
watch(
|
watch(
|
||||||
() => folder.currentFolder,
|
() => folder.currentFolder,
|
||||||
(newValue) => {
|
(newValue) => {
|
||||||
if (newValue && newValue.id) {
|
if (newValue && newValue.id && !isSystemShare.value) {
|
||||||
paginationConfig.current_page = 1
|
paginationConfig.current_page = 1
|
||||||
knowledge.setKnowledgeList([])
|
knowledge.setKnowledgeList([])
|
||||||
getList()
|
getList()
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,15 @@
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
:model="form"
|
:model="form"
|
||||||
require-asterisk-position="right"
|
require-asterisk-position="right"
|
||||||
|
hide-required-asterisk
|
||||||
>
|
>
|
||||||
<el-form-item :label="$t('common.variable')" prop="field">
|
<el-form-item prop="field">
|
||||||
|
<template #label>
|
||||||
|
<div class="flex align-center">
|
||||||
|
<span class="mr-4">{{ $t('common.variable') }}</span>
|
||||||
|
<span class="color-danger">*</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.field"
|
v-model="form.field"
|
||||||
:maxlength="64"
|
:maxlength="64"
|
||||||
|
|
@ -27,7 +34,13 @@
|
||||||
show-word-limit
|
show-word-limit
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('dynamicsForm.paramForm.name.label')" prop="label">
|
<el-form-item prop="label">
|
||||||
|
<template #label>
|
||||||
|
<div class="flex align-center">
|
||||||
|
<span class="mr-4">{{ $t('dynamicsForm.paramForm.name.label') }}</span>
|
||||||
|
<span class="color-danger">*</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.label"
|
v-model="form.label"
|
||||||
:maxlength="64"
|
:maxlength="64"
|
||||||
|
|
@ -35,10 +48,24 @@
|
||||||
:placeholder="$t('dynamicsForm.paramForm.name.placeholder')"
|
:placeholder="$t('dynamicsForm.paramForm.name.placeholder')"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item prop="expression">
|
||||||
:label="$t('views.applicationWorkflow.nodes.variableSplittingNode.expression.label')"
|
<template #label>
|
||||||
prop="expression"
|
<div class="flex align-center">
|
||||||
>
|
<span class="mr-4"
|
||||||
|
>{{ $t('views.applicationWorkflow.nodes.variableSplittingNode.expression.label') }}
|
||||||
|
<span class="color-danger">*</span></span
|
||||||
|
>
|
||||||
|
<el-tooltip
|
||||||
|
effect="dark"
|
||||||
|
:content="
|
||||||
|
$t('views.applicationWorkflow.nodes.variableSplittingNode.expression.tooltip')
|
||||||
|
"
|
||||||
|
placement="right"
|
||||||
|
>
|
||||||
|
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
|
||||||
|
</el-tooltip>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.expression"
|
v-model="form.expression"
|
||||||
:maxlength="64"
|
:maxlength="64"
|
||||||
|
|
@ -81,7 +108,11 @@ const rules = reactive({
|
||||||
{ required: true, message: t('dynamicsForm.paramForm.name.placeholder'), trigger: 'blur' },
|
{ required: true, message: t('dynamicsForm.paramForm.name.placeholder'), trigger: 'blur' },
|
||||||
],
|
],
|
||||||
field: [
|
field: [
|
||||||
{ required: true, message: t('views.applicationWorkflow.variable.inputPlaceholder'), trigger: 'blur' },
|
{
|
||||||
|
required: true,
|
||||||
|
message: t('views.applicationWorkflow.variable.inputPlaceholder'),
|
||||||
|
trigger: 'blur',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
pattern: /^[a-zA-Z0-9_]+$/,
|
pattern: /^[a-zA-Z0-9_]+$/,
|
||||||
message: t('dynamicsForm.paramForm.field.requiredMessage2'),
|
message: t('dynamicsForm.paramForm.field.requiredMessage2'),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue