mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: Fix the shared knowledge base list issue
This commit is contained in:
parent
0dc1d74cd1
commit
90f4830d82
|
|
@ -57,7 +57,7 @@ export default {
|
|||
NoReferencing: 'Referenced variable does not exist',
|
||||
placeholder: 'Please select a variable',
|
||||
inputPlaceholder: 'Please enter variable',
|
||||
loop: 'Loop Variable',
|
||||
loop: 'Loop Variable',
|
||||
},
|
||||
condition: {
|
||||
title: 'Execution Condition',
|
||||
|
|
@ -445,6 +445,7 @@ You are a master of problem optimization, adept at accurately inferring user int
|
|||
expression: {
|
||||
label: 'Expression',
|
||||
placeholder: 'Please enter expression',
|
||||
tooltip: 'Please use JSON Path expressions to split variables, e.g.: $.store.book',
|
||||
},
|
||||
},
|
||||
parameterExtractionNode: {
|
||||
|
|
|
|||
|
|
@ -456,6 +456,7 @@ export default {
|
|||
expression: {
|
||||
label: '表达式',
|
||||
placeholder: '请输入表达式',
|
||||
tooltip: '请使用JSON Path 表达式拆分变量,例如:$.store.book',
|
||||
},
|
||||
},
|
||||
parameterExtractionNode: {
|
||||
|
|
|
|||
|
|
@ -431,6 +431,7 @@ export default {
|
|||
expression: {
|
||||
label: '表達式',
|
||||
placeholder: '請輸入表達式',
|
||||
tooltip: '請使用JSON Path 表達式拆分變量,例如:$.store.book',
|
||||
},
|
||||
},
|
||||
parameterExtractionNode: {
|
||||
|
|
|
|||
|
|
@ -534,7 +534,7 @@ function openCreateFolder() {
|
|||
watch(
|
||||
() => folder.currentFolder,
|
||||
(newValue) => {
|
||||
if (newValue && newValue.id) {
|
||||
if (newValue && newValue.id && !isSystemShare.value) {
|
||||
paginationConfig.current_page = 1
|
||||
knowledge.setKnowledgeList([])
|
||||
getList()
|
||||
|
|
|
|||
|
|
@ -18,8 +18,15 @@
|
|||
:rules="rules"
|
||||
:model="form"
|
||||
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
|
||||
v-model="form.field"
|
||||
:maxlength="64"
|
||||
|
|
@ -27,7 +34,13 @@
|
|||
show-word-limit
|
||||
/>
|
||||
</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
|
||||
v-model="form.label"
|
||||
:maxlength="64"
|
||||
|
|
@ -35,10 +48,24 @@
|
|||
:placeholder="$t('dynamicsForm.paramForm.name.placeholder')"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
:label="$t('views.applicationWorkflow.nodes.variableSplittingNode.expression.label')"
|
||||
prop="expression"
|
||||
>
|
||||
<el-form-item prop="expression">
|
||||
<template #label>
|
||||
<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
|
||||
v-model="form.expression"
|
||||
:maxlength="64"
|
||||
|
|
@ -81,7 +108,11 @@ const rules = reactive({
|
|||
{ required: true, message: t('dynamicsForm.paramForm.name.placeholder'), trigger: 'blur' },
|
||||
],
|
||||
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_]+$/,
|
||||
message: t('dynamicsForm.paramForm.field.requiredMessage2'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue