This commit is contained in:
X_Rian 2024-05-29 23:57:48 +08:00
parent 0deedde0ed
commit 3bc2cbd9aa

View File

@ -30,7 +30,25 @@
<el-table-column prop="value" min-width="35%">
<template slot-scope="scope">
<div
v-if="scope.row.value && typeof(scope.row.value) == 'string' && scope.row.value.indexOf('http://') >= 0"
v-if="scope.row.value instanceof Array && scope.row.value.length > 0"
class="showImg_wrap"
>
<!-- <img
v-for="(item, index) in getUrl(scope.row.value2, 1)"
:key="index"
:src="item"
class="showImg"
@click="showImgBtn(item)"
/> -->
<img
v-for="item in scope.row.value"
:src="item.url"
class="showImg"
@click="showImgBtn(item.url)"
/>
</div>
<div
v-else-if="scope.row.value && typeof(scope.row.value) == 'string' && scope.row.value.indexOf('http://') >= 0"
class="showImg_wrap"
>
<!-- <img
@ -533,14 +551,7 @@ export default {
fieldName: this.$t("message.laborMange.laborCertificateNo"),
fieldName2: this.$t("message.laborMange.safetyProductionLicense"),
value: res.result.qualificationNumber,
value2: res.result.enterpriseSafeAllow && res.result.enterpriseSafeAllow.split(',').length > 0 ? res.result.enterpriseSafeAllow.split(',').map(item => {
return {
name: item.split('*')[0],
url: this.$store.state.FILEURL + item.split('*')[1],
}
}) : res.result.enterpriseSafeAllow.indexOf('http://') >= 0 || !res.result.enterpriseSafeAllow ? res.result.enterpriseQualificationUrl : this.$store.state.FILEURL + res.result.enterpriseSafeAllow
// res.result.enterpriseSafeAllow ? this.$store.state.FILEURL + res.result.enterpriseSafeAllow : '',
value2: res.result.enterpriseSafeAllow && res.result.enterpriseSafeAllow,
},
{
fieldName: this.$t("message.laborMange.natureOfUnit"),
@ -612,8 +623,8 @@ 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? this.$store.state.FILEURL + JSON.parse(res.result.projectEnterprise.layoutImage)[0].url:"",
value2: res.result.projectEnterprise.constructionMapUrl && JSON.parse(res.result.projectEnterprise.constructionMapUrl) instanceof Array && JSON.parse(res.result.projectEnterprise.constructionMapUrl).length > 0?this.$store.state.FILEURL + JSON.parse(res.result.projectEnterprise.constructionMapUrl)[0].url:"",
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):"",
},
{
fieldName: "联系电话",