diff --git a/ui/src/components/ai-chat/component/chat-input-operate/index.vue b/ui/src/components/ai-chat/component/chat-input-operate/index.vue
index e548dcf8b..d533d6466 100644
--- a/ui/src/components/ai-chat/component/chat-input-operate/index.vue
+++ b/ui/src/components/ai-chat/component/chat-input-operate/index.vue
@@ -568,7 +568,7 @@ const uploadFile = async (file: any, fileList: any) => {
}
filePromisionDict.value[file.uid] = false
const inner = reactive(file)
- fileAllList.value.push(inner)
+ // fileAllList.value.push(inner)
if (!chatId_context.value) {
chatId_context.value = await props.openChatId()
}
@@ -1313,9 +1313,9 @@ async function saveUrl() {
// 并行处理所有 URL
await Promise.all(validUrls.map(url => processUrl(url)));
- if (validFiles.length > 0) {
- fileAllList.value.push(...validFiles);
- }
+ // if (validFiles.length > 0) {
+ // fileAllList.value.push(...validFiles);
+ // }
showURLSetting.value = false;
urlForm.source_url = '';
diff --git a/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailCard.vue b/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailCard.vue
index c22b74cad..64d111e3c 100644
--- a/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailCard.vue
+++ b/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailCard.vue
@@ -294,7 +294,7 @@
-
+
+
-
@@ -892,7 +893,11 @@
{{ $t('views.workflow.nodes.variableAggregationNode.Strategy') }}
- {{ data.strategy }}
+ {{
+ data.strategy === 'variable_to_json'
+ ? t('views.workflow.nodes.variableAggregationNode.placeholder1')
+ : t('views.workflow.nodes.variableAggregationNode.placeholder')
+ }}
{{ group.label + ' ' + $t('common.param.inputParam') }}
-
-
-
{{ `${f.node_name}.${f.field}` }}:
- {{ f.value }}
+
+
+
+ {{ `${f.node_name}.${f.field}` }}:
+ {{ f.value }}
+
-
+
@@ -1106,9 +1113,16 @@
>
{{ data.split_strategy }}
+
+ {{ $t('views.workflow.nodes.documentSplitNode.chunk_length.label') }}:
+ {{ data.chunk_size }}
+
+ {{ data.size }}
{{ $t('common.inputContent') }}:
- {{ data.document_list }}
+ {{ data.document_list?.map((v: any) => v.name).join(',') }}
@@ -1119,72 +1133,100 @@
}})
-
-
-
-
-
-
-
-
-
-
- {{ $t('common.character') }}:{{ paragraph.content.length }}
+
+
+
+
+
+ {{ item?.name }}
+
-
+
+
+
+
+
+ {{ $t('common.character') }}:{{ paragraph.content.length }}
+
+
+
+
-
-
-
+
+
+
{{ $t('chat.executionDetails.writeContent') }}
+
+
+
+
+
+
+ {{ item?.name }}
+
+
+
+
+
+
+
+ {{ $t('common.character') }}:{{ paragraph.content.length }}
+
+
+
+
+
+
+
+
+
+
+
{{ $t('common.param.inputParam') }}
-
{{ $t('views.workflow.nodes.documentSplitNode.chunk_length.label') }}:
- {{ data.size }}
+
+ {{ $t('views.document.form.selector.label') }}:{{ data.input_params.selector }}
+
+
+ {{ $t('views.document.form.source_url.label') }}:{{
+ data.input_params.source_url
+ }}
+
-
-
{{ $t('chat.executionDetails.writeContent') }}
+
+
+ {{ $t('common.param.outputParam') }}
+
-
-
+
-
-
-
-
-
-
-
-
- {{ $t('common.character') }}:{{ paragraph.content.length }}
-
-
-
-
-
-
+
+
-
+
+
diff --git a/ui/src/components/ai-chat/component/user-form/index.vue b/ui/src/components/ai-chat/component/user-form/index.vue
index 9d1ac8726..a2862c8f3 100644
--- a/ui/src/components/ai-chat/component/user-form/index.vue
+++ b/ui/src/components/ai-chat/component/user-form/index.vue
@@ -13,7 +13,7 @@
-
+
({
location: `${window.location.origin}${window.MaxKB.chatPrefix ? window.MaxKB.chatPrefix : window.MaxKB.prefix}/`,
diff --git a/ui/src/styles/component.scss b/ui/src/styles/component.scss
index 6d90e1661..ac02d84d0 100644
--- a/ui/src/styles/component.scss
+++ b/ui/src/styles/component.scss
@@ -180,7 +180,6 @@
}
}
-
.import-button {
.el-upload {
display: block !important;
@@ -329,3 +328,31 @@
border-color: var(--el-color-primary);
}
}
+
+// 分段预览的tab样式
+.paragraph-tabs {
+ .el-tabs__item {
+ background: var(--app-text-color-light-1);
+ margin: 4px;
+ border-radius: 4px;
+ padding: 5px 10px 5px 8px !important;
+ height: auto;
+ &:nth-child(2) {
+ margin-left: 0;
+ }
+ &:last-child {
+ margin-right: 0;
+ }
+ &.is-active {
+ border: 1px solid var(--el-color-primary);
+ background: var(--el-color-primary-light-9);
+ color: var(--el-text-color-primary);
+ }
+ }
+ .el-tabs__nav-wrap::after {
+ display: none;
+ }
+ .el-tabs__active-bar {
+ display: none;
+ }
+}
diff --git a/ui/src/views/application/index.vue b/ui/src/views/application/index.vue
index 4858137be..83ad9288b 100644
--- a/ui/src/views/application/index.vue
+++ b/ui/src/views/application/index.vue
@@ -563,7 +563,10 @@ function toChat(row: any) {
aips = aips ? aips : []
const apiParams = mapToUrlParams(aips) ? '?' + mapToUrlParams(aips) : ''
ApplicationApi.getAccessToken(row.id, loading).then((res: any) => {
- window.open(application.location + res?.data?.access_token + apiParams)
+ const newUrl = router.resolve({
+ path: application.location + res?.data?.access_token + apiParams,
+ }).href
+ window.open(newUrl)
})
})
}
diff --git a/ui/src/views/knowledge-workflow/component/DebugDrawer.vue b/ui/src/views/knowledge-workflow/component/DebugDrawer.vue
index 2ffc86bb8..dc5607564 100644
--- a/ui/src/views/knowledge-workflow/component/DebugDrawer.vue
+++ b/ui/src/views/knowledge-workflow/component/DebugDrawer.vue
@@ -6,6 +6,8 @@
direction="rtl"
destroy-on-close
:before-close="close"
+ :close-on-click-modal="false"
+ :close-on-press-escape="false"
>
diff --git a/ui/src/views/knowledge-workflow/index.vue b/ui/src/views/knowledge-workflow/index.vue
index 154335348..41513ecaf 100644
--- a/ui/src/views/knowledge-workflow/index.vue
+++ b/ui/src/views/knowledge-workflow/index.vue
@@ -324,7 +324,7 @@ const publish = () => {
)
})
.then((ok: any) => {
- MsgSuccess(t('views.knowledge.tip.publishSuccess'))
+ MsgSuccess(t('views.application.tip.publishSuccess'))
})
.catch((res: any) => {
const node = res.node
diff --git a/ui/src/views/knowledge/component/ParagraphPreview.vue b/ui/src/views/knowledge/component/ParagraphPreview.vue
index b2854eb84..43e3e1964 100644
--- a/ui/src/views/knowledge/component/ParagraphPreview.vue
+++ b/ui/src/views/knowledge/component/ParagraphPreview.vue
@@ -41,32 +41,6 @@ defineProps({
const activeName = ref(0)