From db4baa7759b46a23faa3ff536220aa255542af59 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期一, 25 五月 2026 13:31:49 +0800
Subject: [PATCH] OA审批的修改中的附件列表没有带出来
---
src/views/officeProcessAutomation/ApproveManage/approve-list/components/ApproveDetailPanel.vue | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/src/views/officeProcessAutomation/ApproveManage/approve-list/components/ApproveDetailPanel.vue b/src/views/officeProcessAutomation/ApproveManage/approve-list/components/ApproveDetailPanel.vue
index 6b18f8f..721a5c2 100644
--- a/src/views/officeProcessAutomation/ApproveManage/approve-list/components/ApproveDetailPanel.vue
+++ b/src/views/officeProcessAutomation/ApproveManage/approve-list/components/ApproveDetailPanel.vue
@@ -39,11 +39,11 @@
:form-payload="formResolved.formPayload"
readonly />
</div>
- <div v-if="row.storageBlobVOList && row.storageBlobVOList.length"
+ <div v-if="attachmentList.length"
class="detail-block">
<div class="detail-block-title">闄勪欢鍒楄〃</div>
<div class="attachment-list">
- <div v-for="file in row.storageBlobVOList"
+ <div v-for="file in attachmentList"
:key="file.id"
class="attachment-item">
<el-icon class="file-icon">
@@ -54,11 +54,11 @@
{{ file.name || file.originalFilename }}
</span>
<div class="file-actions">
- <el-link v-if="file.previewURL"
+ <el-link v-if="file.previewURL || file.url"
type="primary"
:underline="false"
- @click="openFile(file.previewURL)">棰勮</el-link>
- <el-divider v-if="file.previewURL && file.downloadURL"
+ @click="openFile(file.previewURL || file.url)">棰勮</el-link>
+ <el-divider v-if="(file.previewURL || file.url) && file.downloadURL"
direction="vertical" />
<el-link v-if="file.downloadURL"
type="primary"
@@ -90,6 +90,11 @@
const formResolved = computed(() => resolveInstanceFormFields(props.row));
+ const attachmentList = computed(() => {
+ const list = props.row.storageBlobVOList || props.row.storageBlobDTOs || [];
+ return Array.isArray(list) ? list : [];
+ });
+
function openFile(url) {
if (!url) return;
window.open(url, "_blank");
--
Gitblit v1.9.3