| | |
| | | <el-button type="warning" plain icon="el-icon-download" @click="handleExport">导 出 |
| | | </el-button> |
| | | </template> |
| | | <template #content="{ row }"> |
| | | <el-tooltip effect="dark" placement="top" class="content"> |
| | | <template #content> |
| | | <h3 class="content-title">留言内容</h3> |
| | | <div class="content-box">{{ row.content }}</div> |
| | | </template> |
| | | <div class="content-abbreviate">{{ row.content }}</div> |
| | | </el-tooltip> |
| | | </template> |
| | | <template #imageUrls="{ row }"> |
| | | <div v-if="row.imageUrls.length > 0 || !!row.imageUrls" class="image-box"> |
| | | <el-image style="width: 70px;height: 70px;" :src="row.imageUrls[1]" :zoom-rate="1.2" :max-scale="7" |
| | | :min-scale="0.2" :infinite="false" :preview-src-list="row.imageUrls" :initial-index="4" fit="cover"></el-image> |
| | | <div class="image-num">+{{ row.imageUrls.length }}</div> |
| | | :min-scale="0.2" :infinite="false" :preview-src-list="row.imageUrls" :initial-index="4" |
| | | fit="cover"></el-image> |
| | | <div class="image-num" v-if="!(row.imageUrls.length <= 1)">+{{ row.imageUrls.length }}</div> |
| | | </div> |
| | | <div v-else>暂无图片</div> |
| | | </template> |
| | |
| | | :deep() { |
| | | .el-table__cell { |
| | | position: static !important; // 解决el-image 和 el-table冲突层级冲突问题 |
| | | |
| | | &:has(.cell >.el-table__expand-icon--expanded) { |
| | | padding: 0; |
| | | position: relative !important; |
| | | |
| | | &::after { |
| | | content: ''; |
| | | position: absolute; |
| | | left: 17px; |
| | | bottom: 0; |
| | | height: 40%; |
| | | border: 1px dashed #bdbebf; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .el-table__row--level-1 { |
| | | .el-table__cell:has(.cell > .el-table__indent) { |
| | | position: relative !important; |
| | | |
| | | &::after { |
| | | content: ''; |
| | | position: absolute; |
| | | top: 0; |
| | | left: 17px; |
| | | height: 50%; |
| | | border: 1px dashed #bdbebf; |
| | | } |
| | | |
| | | &::before { |
| | | content: ''; |
| | | position: absolute; |
| | | top: 50%; |
| | | left: 17px; |
| | | width: 20px; |
| | | border: 1px dashed #bdbebf; |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | .content { |
| | | |
| | | &-title { |
| | | margin: 0; |
| | | margin-bottom: 10px; |
| | | } |
| | | |
| | | &-box { |
| | | min-width: 150px; |
| | | max-width: 300px; |
| | | max-height: 250px; |
| | | overflow: auto; |
| | | } |
| | | |
| | | &-abbreviate { |
| | | cursor: pointer; |
| | | width: 100%; |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | } |
| | | } |
| | | |