From d3004dd80e5fa80c696eaf2aeff089c5fb01bfe2 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期五, 10 十一月 2023 15:28:52 +0800 Subject: [PATCH] Merge branch 'dev' of http://192.168.5.5:10010/r/web/WMS into dev --- src/views/productManage/product/index.vue | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/productManage/product/index.vue b/src/views/productManage/product/index.vue index c5855a4..cf639f7 100644 --- a/src/views/productManage/product/index.vue +++ b/src/views/productManage/product/index.vue @@ -33,8 +33,12 @@ <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> @@ -269,14 +273,16 @@ 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 }, // 鍒囨崲鍒楄〃灞曠幇褰㈠紡 -- Gitblit v1.8.0