| | |
| | | v-loading="loading" |
| | | > |
| | | <el-table-column label="计划名称" prop="planName" min-width="120" /> |
| | | <el-table-column label="检查内容" prop="checkContent" min-width="150" show-overflow-tooltip /> |
| | | <el-table-column label="检查内容" prop="checkContent" min-width="150" show-overflow-tooltip > |
| | | <template> |
| | | <div>人员在岗</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="岗位" prop="postName" min-width="100" /> |
| | | <el-table-column label="问题备注" prop="remark" min-width="150" show-overflow-tooltip /> |
| | | <el-table-column label="图片" min-width="80"> |
| | |
| | | <div class="SHSR fs--16 lh--16 mb--17 color1">图片:</div> |
| | | <div class="flex a-center oa gap--14"> |
| | | <img |
| | | v-for="(item, index) in detailData.img ? detailData.img.split(',').filter(i => i) : []" |
| | | v-for="(item, index) in detailData.img ? detailData.img.split(',').map(i => VUE_APP_IMAGE_BASE_URL + i) : []" |
| | | :key="index" |
| | | :src="item" |
| | | class="w--150 h--120 cursor-pointer" |
| | | style="object-fit: cover; border-radius: 4px;" |
| | | style="border-radius: 4px;" |
| | | @click="previewImage(detailData)" |
| | | /> |
| | | <div v-if="!detailData.img || !detailData.img.split(',').filter(i => i).length" class="c-fff SHSR">暂无图片</div> |
| | | <div v-if="!detailData.img || !detailData.img.split(',').map(i => i).length" class="c-fff SHSR">暂无图片</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | detailLoading: false, |
| | | // 图片预览数据 |
| | | previewImages: [], |
| | | VUE_APP_IMAGE_BASE_URL: process.env.VUE_APP_IMAGE_BASE_URL + '/project/download/' |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | previewImage(row) { |
| | | if (row.img) { |
| | | // 如果img是字符串,可能是逗号分隔的多张图片 |
| | | this.previewImages = row.img.split(",").filter((item) => item); |
| | | this.previewImages = row.img.split(",").map((item) => this.VUE_APP_IMAGE_BASE_URL + item); |
| | | this.previewVisible = true; |
| | | } else { |
| | | this.$message.warning("暂无图片"); |