From d327dc5cc832df94a364d468aca74dea8d7624c8 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期五, 30 八月 2024 19:37:56 +0800 Subject: [PATCH] 工单图片优化 --- src/views/system/work-order/index.vue | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/views/system/work-order/index.vue b/src/views/system/work-order/index.vue index b02c481..65826d7 100644 --- a/src/views/system/work-order/index.vue +++ b/src/views/system/work-order/index.vue @@ -68,6 +68,7 @@ :preview-src-list="item.imgList" fit="cover" :src="item.imgList[0]" class="image" + style="display: flex;justify-content: center;align-items: center;" > <div slot="error" class="image-slot"> <i class="el-icon-picture-outline">鍔犺浇澶辫触</i> @@ -556,7 +557,7 @@ // 杩愮淮鎯呭喌 ywData: { content: '', - fileList: '' + fileList: 'process.env.VUE_APP_BASE_API' } } }, @@ -729,11 +730,13 @@ this.queryParams['end'] = this.daterangeYwHandleTime ? this.daterangeYwHandleTime[1] : null listWorkOrder(this.queryParams).then(response => { - // response.data.forEach(item => { - // if (item.errorType) { - // item.errorTypeList = item.errorTypeList.split(",") - // } - // }) + response.data.forEach(item => { + if (item.imgList) { + item.imgList = item.imgList.map(img => { + return this.$img + img + }) + } + }) this.workOrderList = response.data this.total = response.total this.loading = false -- Gitblit v1.8.0