From 9acc4bf9a6986567326006b7e85c101405042f21 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Fri, 5 Dec 2025 18:10:38 +0800 Subject: [PATCH] fix: Upgrade the UI version and fix style bugs. --- ui/package.json | 2 +- ui/src/components/app-icon/icons/document.ts | 25 --------- ui/src/components/app-icon/icons/knowledge.ts | 52 +++++++++++++++++++ ui/src/styles/component.scss | 1 + ui/src/styles/element-plus.scss | 5 +- ui/src/views/application/index.vue | 27 ---------- ui/src/views/knowledge-workflow/index.vue | 6 +-- .../tool/component/ToolListContainer.vue | 23 ++++---- ui/src/workflow/common/shortcut.ts | 12 +++-- .../nodes/document-split-node/index.vue | 25 +++++++-- .../workflow/nodes/image-understand/index.vue | 7 ++- ui/src/workflow/nodes/loop-node/index.vue | 17 ++---- ui/src/workflow/nodes/mcp-node/index.vue | 32 ++++++------ .../component/ParametersFieldDialog.vue | 11 ++-- .../nodes/variable-aggregation-node/index.vue | 2 +- .../nodes/variable-assign-node/index.vue | 9 ++-- .../workflow/nodes/video-understand/index.vue | 7 ++- 17 files changed, 140 insertions(+), 123 deletions(-) diff --git a/ui/package.json b/ui/package.json index 6f5e4009e..9632c3511 100644 --- a/ui/package.json +++ b/ui/package.json @@ -29,7 +29,7 @@ "dingtalk-jsapi": "^3.1.0", "echarts": "^5.6.0", "el-table-infinite-scroll": "^3.0.8", - "element-plus": "^2.11.7", + "element-plus": "^2.12.0", "file-saver": "^2.0.5", "highlight.js": "^11.11.1", "html-to-image": "^1.11.13", diff --git a/ui/src/components/app-icon/icons/document.ts b/ui/src/components/app-icon/icons/document.ts index 3846dec4f..0f4b5ccbe 100644 --- a/ui/src/components/app-icon/icons/document.ts +++ b/ui/src/components/app-icon/icons/document.ts @@ -96,29 +96,4 @@ export default { ]) }, }, - 'app-import-doc': { - iconReader: () => { - return h('i', [ - h( - 'svg', - { - style: { height: '100%', width: '100%' }, - viewBox: '0 0 1024 1024', - version: '1.1', - xmlns: 'http://www.w3.org/2000/svg', - }, - [ - h('path', { - d: 'M128 935.594667A45.653333 45.653333 0 0 0 173.482667 981.333333h338.346666v-85.76H213.248V128H810.24v426.666667h85.333333V87.978667A45.653333 45.653333 0 0 0 850.005333 42.24H173.482667A45.653333 45.653333 0 0 0 128 87.978667v847.616z', - fill: 'currentColor', - }), - h('path', { - d: 'M298.922667 480.768c0-6.314667 5.12-11.434667 11.392-11.434667h403.626666c6.314667 0 11.392 5.12 11.392 11.434667v62.890667c0 6.314667-5.12 11.434667-11.392 11.434666h-403.626666a11.392 11.392 0 0 1-11.392-11.434666v-62.890667zM310.4 298.666667a11.392 11.392 0 0 0-11.392 11.434666v62.890667c0 6.314667 5.12 11.434667 11.392 11.434667h190.208c6.314667 0 11.392-5.12 11.392-11.434667V310.101333A11.392 11.392 0 0 0 500.608 298.666667H310.4zM725.333333 661.333333a21.333333 21.333333 0 0 1 21.333334-21.333333h42.666666a21.333333 21.333333 0 0 1 21.333334 21.333333V768h106.666666a21.333333 21.333333 0 0 1 21.333334 21.333333v42.666667a21.333333 21.333333 0 0 1-21.333334 21.333333H810.666667v106.666667a21.333333 21.333333 0 0 1-21.333334 21.333333h-42.666666a21.333333 21.333333 0 0 1-21.333334-21.333333V853.333333h-106.666666a21.333333 21.333333 0 0 1-21.333334-21.333333v-42.666667a21.333333 21.333333 0 0 1 21.333334-21.333333H725.333333v-106.666667z', - fill: 'currentColor', - }), - ], - ), - ]) - }, - }, } diff --git a/ui/src/components/app-icon/icons/knowledge.ts b/ui/src/components/app-icon/icons/knowledge.ts index be262a7e0..7e224e2bf 100644 --- a/ui/src/components/app-icon/icons/knowledge.ts +++ b/ui/src/components/app-icon/icons/knowledge.ts @@ -156,4 +156,56 @@ export default { ]) }, }, + + 'app-execution-record': { + iconReader: () => { + return h('i', [ + h( + 'svg', + { + style: { height: '100%', width: '100%' }, + viewBox: '0 0 1024 1024', + version: '1.1', + xmlns: 'http://www.w3.org/2000/svg', + }, + [ + h('path', { + d: 'M682.666667 42.666667H341.333333c-26.197333 0-42.666667 16.512-42.666666 42.666666v42.666667H170.666667c-29.269333 0-42.666667 16.512-42.666667 42.666667v768c0 26.197333 13.397333 42.666667 42.666667 42.666666h682.666666c29.269333 0 42.666667-16.512 42.666667-42.666666V170.666667c0-26.197333-13.397333-42.666667-42.666667-42.666667h-128v85.333333h85.333334v682.666667H213.333333V213.333333h85.333334v42.666667c0 26.154667 16.469333 42.666667 42.666666 42.666667h341.333334c26.154667 0 42.666667-16.512 42.666666-42.666667V85.333333c0-26.197333-16.512-42.666667-42.666666-42.666666zM384 213.333333V128h256v85.333333H384z', + fill: 'currentColor', + }), + h('path', { + d: 'M321.024 469.333333h381.952c12.373333 0 22.357333 9.557333 22.357333 21.333334v42.666666c0 11.776-10.026667 21.333333-22.357333 21.333334H321.024A21.845333 21.845333 0 0 1 298.666667 533.333333v-42.666666c0-11.776 10.026667-21.333333 22.357333-21.333334zM702.976 640H321.024a21.845333 21.845333 0 0 0-22.357333 21.333333v42.666667c0 11.776 10.026667 21.333333 22.357333 21.333333h381.952c12.373333 0 22.357333-9.557333 22.357333-21.333333v-42.666667c0-11.776-10.026667-21.333333-22.357333-21.333333z', + fill: 'currentColor', + }), + ], + ), + ]) + }, + }, + + 'app-to-import-doc': { + iconReader: () => { + return h('i', [ + h( + 'svg', + { + style: { height: '100%', width: '100%' }, + viewBox: '0 0 1024 1024', + version: '1.1', + xmlns: 'http://www.w3.org/2000/svg', + }, + [ + h('path', { + d: 'M682.666667 128H213.333333v768h597.333334V256.853333h-106.666667a21.333333 21.333333 0 0 1-21.333333-21.333333V128zM170.666667 42.666667h558.293333a42.666667 42.666667 0 0 1 30.208 12.501333l124.373333 124.373333a42.666667 42.666667 0 0 1 12.458667 30.165334V938.666667a42.666667 42.666667 0 0 1-42.666667 42.666666H170.666667a42.666667 42.666667 0 0 1-42.666667-42.666666V85.333333a42.666667 42.666667 0 0 1 42.666667-42.666666z', + fill: 'currentColor', + }), + h('path', { + d: 'M469.333333 362.666667a21.333333 21.333333 0 0 1 21.333334-21.333334h42.666666a21.333333 21.333333 0 0 1 21.333334 21.333334V469.333333h106.666666a21.333333 21.333333 0 0 1 21.333334 21.333334v42.666666a21.333333 21.333333 0 0 1-21.333334 21.333334H554.666667v106.666666a21.333333 21.333333 0 0 1-21.333334 21.333334h-42.666666a21.333333 21.333333 0 0 1-21.333334-21.333334V554.666667H362.666667a21.333333 21.333333 0 0 1-21.333334-21.333334v-42.666666a21.333333 21.333333 0 0 1 21.333334-21.333334H469.333333V362.666667z', + fill: 'currentColor', + }), + ], + ), + ]) + }, + }, } diff --git a/ui/src/styles/component.scss b/ui/src/styles/component.scss index ac02d84d0..e14ead5f6 100644 --- a/ui/src/styles/component.scss +++ b/ui/src/styles/component.scss @@ -101,6 +101,7 @@ padding: 5px 8px; font-weight: 400; color: var(--el-text-color-primary) !important; + outline: none !important; } .el-radio-button__original-radio:checked + .el-radio-button__inner { color: var(--el-color-primary) !important; diff --git a/ui/src/styles/element-plus.scss b/ui/src/styles/element-plus.scss index cd04fd34f..58b856717 100644 --- a/ui/src/styles/element-plus.scss +++ b/ui/src/styles/element-plus.scss @@ -27,6 +27,9 @@ border: 1px solid var(--el-card-border-color); box-shadow: none !important; } + .el-card__body { + overflow: inherit; + } } // tree @@ -386,5 +389,5 @@ // el-upload .el-upload { - --el-upload-dragger-padding-horizontal: 32px; + --el-upload-dragger-padding-horizontal: 32px; } diff --git a/ui/src/views/application/index.vue b/ui/src/views/application/index.vue index 0b9b52b91..3cbefe679 100644 --- a/ui/src/views/application/index.vue +++ b/ui/src/views/application/index.vue @@ -155,33 +155,6 @@ > {{ $t('views.document.setRules.limit.label') }} - + @@ -185,7 +197,12 @@ - + @@ -213,6 +230,7 @@ v-model="form_data.paragraph_title_relate_problem_type" size="small" style="width: 85px" + :teleported="false" > @@ -241,6 +259,7 @@ v-model="form_data.document_name_relate_problem_type" size="small" style="width: 85px" + :teleported="false" > diff --git a/ui/src/workflow/nodes/image-understand/index.vue b/ui/src/workflow/nodes/image-understand/index.vue index 283efb4a5..676134bb3 100644 --- a/ui/src/workflow/nodes/image-understand/index.vue +++ b/ui/src/workflow/nodes/image-understand/index.vue @@ -118,7 +118,12 @@ - + - + @@ -219,10 +219,7 @@ style="width: 85px" @change="form_data.tool_params[item.label.label] = ''" > - + @@ -281,7 +278,7 @@ const { params: { id }, } = route as any const getResourceDetail = inject('getResourceDetail') as any -const workflow_mode:WorkflowMode = inject('workflowMode') || WorkflowMode.Application +const workflow_mode: WorkflowMode = inject('workflowMode') || WorkflowMode.Application const resource = getResourceDetail() const apiType = computed(() => { @@ -368,7 +365,12 @@ function getTools() { } function _getTools(mcp_servers: any) { - loadSharedApi({ type: [WorkflowMode.Application,WorkflowMode.ApplicationLoop].includes(workflow_mode)?'application':'knowledge', systemType: apiType.value }) + loadSharedApi({ + type: [WorkflowMode.Application, WorkflowMode.ApplicationLoop].includes(workflow_mode) + ? 'application' + : 'knowledge', + systemType: apiType.value, + }) .getMcpTools(id, mcp_servers, loading) .then((res: any) => { form_data.value.mcp_tools = res.data diff --git a/ui/src/workflow/nodes/parameter-extraction-node/component/ParametersFieldDialog.vue b/ui/src/workflow/nodes/parameter-extraction-node/component/ParametersFieldDialog.vue index b7bfa61ed..d300b680f 100644 --- a/ui/src/workflow/nodes/parameter-extraction-node/component/ParametersFieldDialog.vue +++ b/ui/src/workflow/nodes/parameter-extraction-node/component/ParametersFieldDialog.vue @@ -42,22 +42,17 @@ /> diff --git a/ui/src/workflow/nodes/variable-aggregation-node/index.vue b/ui/src/workflow/nodes/variable-aggregation-node/index.vue index 21560f045..c40a7e4aa 100644 --- a/ui/src/workflow/nodes/variable-aggregation-node/index.vue +++ b/ui/src/workflow/nodes/variable-aggregation-node/index.vue @@ -27,7 +27,7 @@ - +