diff --git a/src/views/projectFront/projectSummary/cooperationUnit.vue b/src/views/projectFront/projectSummary/cooperationUnit.vue index 4dce9a1f..a5de33b9 100644 --- a/src/views/projectFront/projectSummary/cooperationUnit.vue +++ b/src/views/projectFront/projectSummary/cooperationUnit.vue @@ -1281,16 +1281,20 @@ export default { handleSuccess(file, type) { this.$message.success(this.$t('message.laborMange.uploadSuccessful')) let data = { name: file.data[0].filename, url: file.data[0].imageUrl } + console.log(file); if (type == 1) { this.aptitudeFileList.push(data) } else if (type == 2) { this.logoFileList.push(data) } else if (type == 3) { + this.layoutImageList= this.layoutImageList ? this.layoutImageList : []; this.layoutImageList.push(data) console.log(this.layoutImageList); } else if (type == 4) { - this.constructionMapUrlList.push(data); console.log(this.constructionMapUrlList); + this.constructionMapUrlList = this.constructionMapUrlList ? this.constructionMapUrlList : []; + this.constructionMapUrlList.push(data); + } }, handleError(file) { }, diff --git a/src/views/projectFront/projectSummary/cooperatorDatails.vue b/src/views/projectFront/projectSummary/cooperatorDatails.vue index dbe9b48c..0c8ffdf9 100644 --- a/src/views/projectFront/projectSummary/cooperatorDatails.vue +++ b/src/views/projectFront/projectSummary/cooperatorDatails.vue @@ -514,7 +514,7 @@ export default { ? this.$t("message.cooperationUnit.subpackage10") : res.result.enterpriseTypeId == 11 ? this.$t("message.cooperationUnit.subpackage11") - : this.$t("message.cooperationUnit.subpackage12"), + : res.result.enterpriseTypeId == 12 ? this.$t("message.cooperationUnit.subpackage12") : '', value2: res.result.enterpriseLegalPerson, }, { @@ -623,8 +623,18 @@ export default { { fieldName: "现场布置图", fieldName2: "现场施工图", - value: res.result.projectEnterprise.layoutImage && JSON.parse(res.result.projectEnterprise.layoutImage) instanceof Array && JSON.parse(res.result.projectEnterprise.layoutImage).length > 0? JSON.parse(res.result.projectEnterprise.layoutImage) :"", - value2: res.result.projectEnterprise.constructionMapUrl && JSON.parse(res.result.projectEnterprise.constructionMapUrl) instanceof Array && JSON.parse(res.result.projectEnterprise.constructionMapUrl).length > 0 ? JSON.parse(res.result.projectEnterprise.constructionMapUrl):"", + value: res.result.projectEnterprise.layoutImage && JSON.parse(res.result.projectEnterprise.layoutImage) instanceof Array && JSON.parse(res.result.projectEnterprise.layoutImage).length > 0? JSON.parse(res.result.projectEnterprise.layoutImage).map(item => { + return { + name: item.name, + url: this.$store.state.FILEURL + item.url, + } + }) :"", + value2: res.result.projectEnterprise.constructionMapUrl && JSON.parse(res.result.projectEnterprise.constructionMapUrl) instanceof Array && JSON.parse(res.result.projectEnterprise.constructionMapUrl).length > 0 ? JSON.parse(res.result.projectEnterprise.constructionMapUrl).map(item => { + return { + name: item.name, + url: this.$store.state.FILEURL + item.url, + } + }):"", }, { fieldName: "联系电话",