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, + } + }); } }); },