From 584d948fc399d5561a01523a034aa5482848ead8 Mon Sep 17 00:00:00 2001 From: X_Rian <904416525@qq.com> Date: Fri, 23 Aug 2024 10:32:14 +0800 Subject: [PATCH] =?UTF-8?q?flx=EF=BC=9A=E6=8F=90=E4=BA=A4=E6=89=BF?= =?UTF-8?q?=E5=8C=85=E5=95=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projectSummary/contractorAudit.vue | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/views/projectFront/projectSummary/contractorAudit.vue b/src/views/projectFront/projectSummary/contractorAudit.vue index d37dfe5e..283d20f1 100644 --- a/src/views/projectFront/projectSummary/contractorAudit.vue +++ b/src/views/projectFront/projectSummary/contractorAudit.vue @@ -855,9 +855,11 @@ export default { }).then((res) => { console.log(res, "基本信息"); if (res.result) { - for (let i in this.supplierDetail) { - this.supplierDetail[i] = res.result[i]; - } + this.supplierDetail = { + ...res.result, + enterpriseQualificationUrl: res.result.enterpriseQualificationUrl ? (res.result.enterpriseQualificationUrl.includes(this.$store.state.FILEURL) ? res.result.enterpriseQualificationUrl : this.$store.state.FILEURL + res.result.enterpriseQualificationUrl) : res.result.enterpriseQualificationUrl, + logo: res.result.logo ? (res.result.logo.includes(this.$store.state.FILEURL) ? res.result.logo : this.$store.state.FILEURL + res.result.logo) : res.result.logo, + }; } }); }, @@ -920,7 +922,13 @@ export default { getEnterpriseSupplierInfoListApi(requestData).then((res) => { console.log(res, "承包项目信息"); if (res.result) { - this.supplierDetailCBS = res.result; + this.supplierDetailCBS = res.result.map(item => { + return { + ...item, + constructionMapUrl: item.constructionMapUrl ? (item.constructionMapUrl.includes(this.$store.state.FILEURL) ? item.constructionMapUrl : this.$store.state.FILEURL + item.constructionMapUrl) : item.constructionMapUrl, + layoutImage: item.layoutImage ? (item.layoutImage.includes(this.$store.state.FILEURL) ? item.layoutImage : this.$store.state.FILEURL + item.layoutImage) : item.layoutImage, + } + }); } }); },