|
|
@@ -1607,25 +1607,25 @@ onUnmounted(() => {
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <Dialog v-model="dialogFileView" title="附件" width="500">
|
|
|
+ <Dialog v-model="dialogFileView" title="附件">
|
|
|
<div
|
|
|
v-for="(file, index) in fileList"
|
|
|
:key="index"
|
|
|
- class="flex items-center justify-between mt-5">
|
|
|
- <span class="file-name-text">{{ extractFileName(file) }}</span>
|
|
|
- <div>
|
|
|
+ class="mt-5 flex min-w-0 items-center justify-between gap-5">
|
|
|
+ <span class="file-name-text flex-1 min-w-0">{{ extractFileName(file) }}</span>
|
|
|
+ <div class="flex shrink-0 items-center gap-5 flex-nowrap">
|
|
|
<el-button link type="primary" @click="viewFileInfo(file)">
|
|
|
- <Icon icon="ep:view" class="mr-2px" />查看</el-button
|
|
|
- >
|
|
|
+ <Icon icon="ep:view" class="mr-2px" />查看
|
|
|
+ </el-button>
|
|
|
<el-button link type="primary" @click="handleDownload(file)">
|
|
|
- <Icon icon="ep:download" class="mr-2px" />下载</el-button
|
|
|
- >
|
|
|
+ <Icon icon="ep:download" class="mr-2px" />下载
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<template #footer>
|
|
|
<div class="dialog-footer mt-10">
|
|
|
- <el-button type="primary" @click="dialogFileView = false"> 确认 </el-button>
|
|
|
+ <el-button type="primary" @click="dialogFileView = false">确认</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</Dialog>
|
|
|
@@ -2411,6 +2411,13 @@ onUnmounted(() => {
|
|
|
flex: 1;
|
|
|
}
|
|
|
|
|
|
+.file-name-text {
|
|
|
+ display: block;
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+}
|
|
|
+
|
|
|
// :deep(.el-input__inner) {
|
|
|
// font-size: 14px !important;
|
|
|
// border: none !important;
|