| | |
| | | v-if="item.attachmentList?.length > 0" |
| | | style="width: 60px; height: 80px" |
| | | :src="item.attachmentList[0].FileUrl" |
| | | :preview-src-list="item.srcList" |
| | | :z-index="9999" |
| | | @click.stop="imgClick" |
| | | ></el-image> |
| | | <div v-else class="img-view"> |
| | | <i class="el-icon-picture-outline"></i> |
| | |
| | | }).then((res) => { |
| | | if (res.code === 200) { |
| | | const list = res.data.map((item) => { |
| | | let srcList = [] |
| | | if (item.attachmentList?.length > 0) { |
| | | item.attachmentList.forEach((ele) => { |
| | | if (ele.fileType === "picture") { |
| | | srcList.push(ele.FileUrl) |
| | | } |
| | | }) |
| | | } else { |
| | | srcList = [] |
| | | } |
| | | |
| | | return { |
| | | ...item |
| | | ...item, |
| | | srcList |
| | | } |
| | | }) |
| | | this.tableList.tableInfomation = list || [] |
| | |
| | | delSelectClick() { |
| | | this.categoryId = 0 |
| | | this.getData() |
| | | } |
| | | }, |
| | | imgClick() {} |
| | | } |
| | | } |
| | | </script> |