【backup】perf: 1) 执行详情 里的 图片 可点击放大查看,文档 和 其他文件 可点击下载了; 2) 文档内容提取 节点的执行详情中,会显示 输入文档 了。#6181
Closed
wangliang181230 wants to merge 1 commit into
Closed
Conversation
50263db to
10c6a09
Compare
…执行详情中,会显示 `输入文档` 了。
10c6a09 to
babeff5
Compare
wangliang181230
commented
Jun 9, 2026
| </div> | ||
| <div v-if="data.video_list?.length > 0"> | ||
| <p class="mb-8 color-secondary">{{ $t('common.fileUpload.image') }}:</p> | ||
| <p class="mb-8 color-secondary">{{ $t('common.fileUpload.video') }}:</p> |
Contributor
Author
There was a problem hiding this comment.
标题错了,改正为 video 的
wangliang181230
commented
Jun 9, 2026
| </div> | ||
| <div v-if="data.other_list?.length > 0"> | ||
| <p class="mb-8 color-secondary">{{ $t('common.fileUpload.document') }}:</p> | ||
| <p class="mb-8 color-secondary">{{ $t('common.fileUpload.other') }}:</p> |
Contributor
Author
There was a problem hiding this comment.
这里标题也错了,改正为 other 的
wangliang181230
commented
Jun 9, 2026
| :max-scale="7" | ||
| :min-scale="0.2" | ||
| /> | ||
| </template> |
Contributor
Author
There was a problem hiding this comment.
先显示图片列表,放大后可以左右点击切换图片。
wangliang181230
commented
Jun 9, 2026
| </div> | ||
| <div v-else>-</div> | ||
| </div> | ||
| </div> |
Contributor
Author
There was a problem hiding this comment.
文档内容提取 显示 输入文档
There was a problem hiding this comment.
Pull request overview
该 PR 优化了工作流「执行详情」的文件展示交互:图片支持点击预览放大,文档/其他文件支持点击下载,并在「文档内容提取」节点的执行详情中展示输入文档列表,提升排障与可追溯性。
Changes:
- 为执行详情中的图片增加预览放大(
el-imagepreview)能力,并补充alt/title - 为文档与其他文件卡片增加点击下载能力
- 「文档内容提取」节点执行详情新增输入文档列表展示,并后端透传
document_list
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| ui/src/components/execution-detail-card/index.vue | 增强执行详情的图片预览、文件下载、文档提取节点输入文档展示 |
| apps/application/flow/step_node/document_extract_node/impl/base_document_extract_node.py | 在节点上下文中保存并向详情输出 document_list 以供前端展示 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <template v-if="Array.isArray(data.question)"> | ||
| <div v-for="(item, qIndex) in data.question" :key="qIndex"> | ||
| <!-- 先显示图片列表 --> | ||
| <template v-for="(item, qIndex) in getImageList(data.question)" :key="qIndex"> |
| /> | ||
| </template> | ||
| <!-- 再显示视频和文本 --> | ||
| <div v-for="(item, qIndex) in data.question" :key="qIndex"> |
Comment on lines
+1523
to
+1529
| const getFileName = (file: any) => { | ||
| if (file) { | ||
| return file?.file_name || file?.name || file?.image_url?.details || JSON.stringify(file) | ||
| } else { | ||
| return '' | ||
| } | ||
| } |
Comment on lines
+1531
to
+1538
| // 下载文件 | ||
| const downloadFile = (file: any) => { | ||
| if (file && (file.url || file.file_id || file.id)) { | ||
| window.open(file.url || `./oss/file/${file.file_id || file.id}`, '_blank') | ||
| } else { | ||
| console.error('下载文件失败,原因:链接未知,file =', file) | ||
| } | ||
| } |
Comment on lines
18
to
21
| def save_context(self, details, workflow_manage): | ||
| self.context['content'] = details.get('content') | ||
| self.context['document_list'] = details.get('document_list') | ||
| self.context['exception_message'] = details.get('err_message') |
Member
|
已有此类功能,不再合并 |
执行详情 里的 图片 可点击放大查看,文档 和 其他文件 可点击下载了; 2) 文档内容提取 节点的执行详情中,会显示 输入文档 了。执行详情 里的 图片 可点击放大查看,文档 和 其他文件 可点击下载了; 2) 文档内容提取 节点的执行详情中,会显示 输入文档 了。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
perf:
执行详情里的图片可点击放大查看了,文档和其他文件可点击下载了;文档内容提取节点的执行详情中,会显示输入文档了。效果:
图片理解的的执行详情截图:文档内容提取节点的执行详情截图: