From 20b0ce2db27b64a60de60aee05dedd448099e330 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期一, 08 七月 2024 10:12:16 +0800 Subject: [PATCH] xiugai --- src/views/specialWorkSystem/specialIndex/components/workRecord.vue | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/views/specialWorkSystem/specialIndex/components/workRecord.vue b/src/views/specialWorkSystem/specialIndex/components/workRecord.vue index 5c9efeb..bfe8a50 100644 --- a/src/views/specialWorkSystem/specialIndex/components/workRecord.vue +++ b/src/views/specialWorkSystem/specialIndex/components/workRecord.vue @@ -20,6 +20,12 @@ <div>操作时间:{{item.operationTime}}</div> <div>操作内容:{{item.content}}</div> <div>操作意见:{{item.approvalOpinions}}</div> + <div v-if="item.fileUrl" style="display: flex;align-items: flex-start">附件内容: + <el-image style="width: 150px; height: 150px;margin-right: 50px;margin-bottom: 20px" :src="item.fileUrl" fit="cover" /> + </div> + <div v-if="item.signUrl" style="display: flex;align-items: flex-start">签字图片: + <el-image style="width: 150px; height: 150px;margin-right: 50px;margin-bottom: 20px" :src="item.signUrl" fit="cover" /> + </div> </div> </div> </el-dialog> @@ -101,16 +107,21 @@ } .item{ display: flex; - align-items: flex-start; + align-items: stretch; /* 使 marker 和 content 高度一致 */ width: 100%; padding-left: 50px; margin-bottom: 10px; + position: relative; .marker{ + position: absolute; + left: 0; + top: 0; + bottom: 0; display: flex; flex-direction: column; align-items: center; - margin-right: 20px; + height: 100%; /* 使 marker 高度自适应父元素 */ .dot{ width: 28px; @@ -121,11 +132,12 @@ } .line{ width: 1px; - height: 120px; + flex-grow: 1; /* 自动适应剩余高度 */ background: #13ce66; } } .content{ + div{ margin-bottom: 6px; } -- Gitblit v1.9.2