1
This commit is contained in:
parent
b0907cdd4e
commit
a81fa377f7
File diff suppressed because it is too large
Load Diff
@ -27,12 +27,36 @@
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-table-column prop="fieldName" min-width="15%"> </el-table-column>
|
||||
<el-table-column prop="value" min-width="35%"> </el-table-column>
|
||||
<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"
|
||||
class="showImg_wrap"
|
||||
>
|
||||
<!-- <img
|
||||
v-for="(item, index) in getUrl(scope.row.value2, 1)"
|
||||
:key="index"
|
||||
:src="item"
|
||||
class="showImg"
|
||||
@click="showImgBtn(item)"
|
||||
/> -->
|
||||
<img
|
||||
:src="scope.row.value"
|
||||
class="showImg"
|
||||
@click="showImgBtn(scope.row.value)"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div v-else>
|
||||
{{ scope.row.value }}
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="fieldName2" min-width="15%"> </el-table-column>
|
||||
<el-table-column prop="value2" min-width="35%">
|
||||
<template slot-scope="scope">
|
||||
<div
|
||||
v-if="scope.row.value2 && scope.row.value2.indexOf('http://') >= 0"
|
||||
v-if="scope.row.value2 && typeof(scope.row.value2) == 'string' && scope.row.value2.indexOf('http://') >= 0"
|
||||
class="showImg_wrap"
|
||||
>
|
||||
<!-- <img
|
||||
@ -401,61 +425,6 @@ export default {
|
||||
if (res.code == 200) {
|
||||
if(!res.result) return;
|
||||
console.log('~~~~~~~~~~~~~~~~~~~~',res)
|
||||
this.enterpriseInfo = [
|
||||
...this.enterpriseInfo,
|
||||
{
|
||||
fieldName: "承包商名称",
|
||||
fieldName2: "项目施工区域",
|
||||
value: res.result.projectDirectorName,
|
||||
value2: res.result.projectDirectorPhone,
|
||||
},
|
||||
{
|
||||
fieldName: "竣工日期",
|
||||
fieldName2: "项目类型",
|
||||
value: res.result.projectDirectorName,
|
||||
value2: res.result.projectDirectorPhone,
|
||||
},
|
||||
{
|
||||
fieldName: "项目经理",
|
||||
fieldName2: "维度位置",
|
||||
value: res.result.projectManage,
|
||||
value2: res.result.latitude,
|
||||
},
|
||||
{
|
||||
fieldName: "经度位置",
|
||||
fieldName2: "工程类别",
|
||||
value: res.result.longitude,
|
||||
value2: res.result.engineeringPurpose,
|
||||
},
|
||||
{
|
||||
fieldName: "项目编号",
|
||||
fieldName2: "结构类型",
|
||||
value: res.result.projectNumber,
|
||||
value2: res.result.structureType,
|
||||
},
|
||||
{
|
||||
fieldName: "项目面积(m²)",
|
||||
fieldName2: "工程状态",
|
||||
value: res.result.projectAcreage,
|
||||
value2: res.result.bulidStatus,
|
||||
},
|
||||
{
|
||||
fieldName: "开工日期",
|
||||
fieldName2: "施工阶段",
|
||||
value: res.result.startWorkDate,
|
||||
value2: res.result.constructionStage,
|
||||
},
|
||||
{
|
||||
fieldName: "现场布置图",
|
||||
fieldName2: "现场施工图",
|
||||
value: res.result.layoutImage,
|
||||
value2: res.result.constructionMapUrl,
|
||||
},
|
||||
{
|
||||
fieldName: "联系电话",
|
||||
value: res.result.projectTel,
|
||||
},
|
||||
]
|
||||
}
|
||||
});
|
||||
},
|
||||
@ -467,6 +436,7 @@ export default {
|
||||
};
|
||||
getEnterpriseInfoByIdApi(data).then((res) => {
|
||||
if (res.code == 200) {
|
||||
console.log(res.result);
|
||||
this.enterpriseInfo = [
|
||||
{
|
||||
fieldName: this.$t("message.laborMange.theNameOfFirm"),
|
||||
@ -560,6 +530,58 @@ export default {
|
||||
value: res.result.projectDirectorName,
|
||||
value2: res.result.projectDirectorPhone,
|
||||
},
|
||||
{
|
||||
fieldName: "承包商名称",
|
||||
fieldName2: "项目施工区域",
|
||||
value: res.result.projectEnterprise.cbsName ? res.result.projectEnterprise.cbsName : "",
|
||||
value2: res.result.projectEnterprise.projectBuildArea ? res.result.projectEnterprise.projectBuildArea : "",
|
||||
},
|
||||
{
|
||||
fieldName: "竣工日期",
|
||||
fieldName2: "项目类型",
|
||||
value: res.result.projectEnterprise.completionDate ? res.result.projectEnterprise.completionDate :"",
|
||||
value2: res.result.projectEnterprise.cbsProjectTypeName ? res.result.projectEnterprise.cbsProjectTypeName:"",
|
||||
},
|
||||
{
|
||||
fieldName: "项目经理",
|
||||
fieldName2: "维度位置",
|
||||
value: res.result.projectEnterprise.projectManage ? res.result.projectEnterprise.projectManage :"",
|
||||
value2: res.result.projectEnterprise.latitude ? res.result.projectEnterprise.latitude :"",
|
||||
},
|
||||
{
|
||||
fieldName: "经度位置",
|
||||
fieldName2: "工程类别",
|
||||
value: res.result.projectEnterprise.longitude ? res.result.projectEnterprise.longitude:"",
|
||||
value2: res.result.projectEnterprise.projectTypeName?res.result.projectEnterprise.projectTypeName:"",
|
||||
},
|
||||
{
|
||||
fieldName: "项目编号",
|
||||
fieldName2: "结构类型",
|
||||
value: res.result.projectEnterprise.projectNumber ? res.result.projectEnterprise.projectNumber:"",
|
||||
value2: res.result.projectEnterprise.structureTypeName ? res.result.projectEnterprise.structureTypeName:"",
|
||||
},
|
||||
{
|
||||
fieldName: "项目面积(m²)",
|
||||
fieldName2: "工程状态",
|
||||
value: res.result.projectEnterprise.projectAcreage ? res.result.projectEnterprise.projectAcreage:"",
|
||||
value2: res.result.projectEnterprise.bulidStatus ? res.result.projectEnterprise.bulidStatus:"",
|
||||
},
|
||||
{
|
||||
fieldName: "开工日期",
|
||||
fieldName2: "施工阶段",
|
||||
value: res.result.projectEnterprise.startWorkDate?res.result.projectEnterprise.startWorkDate:"",
|
||||
value2: res.result.projectEnterprise.constructionStageName?res.result.projectEnterprise.constructionStageName:"",
|
||||
},
|
||||
{
|
||||
fieldName: "现场布置图",
|
||||
fieldName2: "现场施工图",
|
||||
value: res.result.projectEnterprise.layoutImage && 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).length > 0?this.$store.state.FILEURL + JSON.parse(res.result.projectEnterprise.constructionMapUrl)[0].url:"",
|
||||
},
|
||||
{
|
||||
fieldName: "联系电话",
|
||||
value: res.result.projectEnterprise.projectTel?res.result.projectEnterprise.projectTel:"",
|
||||
},
|
||||
];
|
||||
this.infoEnterpriseId = res.result.id;
|
||||
// this.getDataDateils();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user