| | |
| | | <div v-if="isIconIndex === '1'" class="product-view"> |
| | | <div class="product-box" v-for="item in tableList.tableInfomation" :key="item.id" @click="showDetail(item)"> |
| | | <div class="left"> |
| | | <!-- <el-image style="width: 60px; height: 80px" :src="url"></el-image> --> |
| | | <div class="img-view"> |
| | | <el-image |
| | | v-if="item.attachmentList?.length > 0" |
| | | style="width: 60px; height: 80px" |
| | | :src="item.attachmentList[0].FileUrl" |
| | | ></el-image> |
| | | <div v-else class="img-view"> |
| | | <i class="el-icon-picture-outline"></i> |
| | | </div> |
| | | </div> |
| | |
| | | console.log(row) |
| | | this.editConfig.autoEdit = false |
| | | this.editConfig.title = "编辑" |
| | | this.editConfig.infomation = { ...row } |
| | | let imageSrc = row.attachmentList?.length > 0 ? row.attachmentList[0].FileUrl : "" |
| | | this.editConfig.infomation = { ...row, imageSrc: imageSrc } |
| | | this.editConfig.visible = true |
| | | }, |
| | | // 编辑 |
| | | editRow(row) { |
| | | this.editConfig.autoEdit = true |
| | | this.editConfig.title = "编辑" |
| | | this.editConfig.infomation = { ...row } |
| | | let imageSrc = row.attachmentList?.length > 0 ? row.attachmentList[0].FileUrl : "" |
| | | this.editConfig.infomation = { ...row, imageSrc: imageSrc } |
| | | this.editConfig.visible = true |
| | | }, |
| | | // 切换列表展现形式 |