This commit is contained in:
zlwu committed 2026-08-01 22:49:11 +08:00
1 parent e59b2aa6cb
commit eccefc6650
63 files changed
+13267 -11330

No files matched your search

@@ -78,6 +78,15 @@
>
<el-icon :size="12"><Delete /></el-icon>
</button>
<button
v-if="compact && disabled && file.fileUrl"
type="button"
class="attachment-compact-download"
title="下载"
@click.stop="handleDownloadAttachment(file)"
>
<el-icon :size="12"><Download /></el-icon>
</button>
<div class="attachment-footer">
<span class="attachment-name" :title="file.fileName">{{ file.fileName }}</span>
<div v-if="!disabled" class="attachment-actions">
@@ -836,7 +845,7 @@ defineExpose({ hasUploading })
}
}
/* 只读紧凑:更小缩略图(查看弹窗等) */
/* 只读紧凑:更小缩略图(查看弹窗等),保留角标下载 */
.attachment-upload--compact.attachment-upload--readonly {
.attachment-list {
gap: 4px;
@@ -850,6 +859,7 @@ defineExpose({ hasUploading })
}
.attachment-item {
position: relative;
width: 40px;
border-radius: 6px;
@@ -867,5 +877,28 @@ defineExpose({ hasUploading })
min-height: 24px;
border-radius: 6px;
}
.attachment-compact-download {
position: absolute;
top: 2px;
right: 2px;
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
padding: 0;
border: none;
border-radius: 999px;
background: rgba(15, 23, 42, 0.72);
color: #fff;
cursor: pointer;
transition: background 0.15s ease;
&:hover {
background: #1ca851;
}
}
}
</style>
@@ -124,10 +124,6 @@ withDefaults(
:deep(.attachment-preview) {
height: 96px;
}
:deep(.attachment-footer) {
display: none;
}
}
.pl-plan-hazard-cert-view-table__missing {
@@ -115,7 +115,6 @@
v-if="feedbackImageCsv"
:model-value="feedbackImageCsv"
disabled
compact
/>
<span v-else class="pl-plan-feedback-table__empty-cell">—</span>
</div>
@@ -229,7 +228,6 @@
v-if="ioOrderImageCsv"
:model-value="ioOrderImageCsv"
disabled
compact
/>
<span v-else class="pl-plan-feedback-table__empty-cell">—</span>
</div>