companyInfo.vue
2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<template >
<iframe width="1400px" height="2000px" frameborder="no" id="iFrame" :src="src"></iframe>
</template>
<script>
import store from "@/store";
import {
getToken
} from "@/utils/auth";
import {
getCompanyInfo,
getArea,
getDict
} from "@/api/dict";
export default {
name: "ThreestepInfo",
props: {
businessKey: {
type: String
},
businessType: {
type: Number
},
},
data() {
return {
src:"",
sign: store.getters.avatar, //裁剪图片的地址
areas: [],
loading: null,
objectDict: {
constructionSiteID:"工地ID",
constructionSiteName:"工地名称",
earthSiteID:"处理场所ID",
earthSiteName:"处理场所名称",
absorbCapacity:"消纳容量",
startTime:"有效期开始时间 yyyy-mM-dd",
endTime:"有效期结束时间 yyyy-mM-dd",
type:"建筑垃圾类型ID",
typeName:"垃圾类型名称",
contractNo:"消纳合同编号",
routeName:"线路名称",
routeWidth:"线路宽度",
auditStatus:"审核状态 0-审核中 1-审核通过 2-审核驳回",
auditStatusName:"审核状态名称",
contractStatus:"合同状态",
contractStatusName:"合同状态名称",
routePoints:"线路信息"},
infoData: {},
dicts:null,
showPic:false,
picImage:null,
}
},
created() {
let id;
if (this.businessKey.split(":").length == 2) {
id = this.businessKey.split(":")[1];
} else {
id = this.businessKey;
}
let http = this.remoteFrame;
if(this.businessType == 0){
this.src = http + "/single/#/enterprise-information/information-detail?id=" + id;
}
if(this.businessType == 1){
this.src = http + "/single/#/vehicleInformation/information-detail?id=" + id;
}
if(this.businessType == 2){
this.src = http + "/single/#/constructionInfo/detail?id="+id+"&type=detail";
}
if(this.businessType == 3){
this.src = http + "/single/#/absorptionsitedetail?absorptionId=" + id;
}
if(this.businessType == 4){
this.src = http + "/single/#/contractInfo/detail?id=" + id;
}
if(this.businessType == 5){
this.src = http + "/single/#/driverdetail?driverId=" + id;
}
},
}
</script>
<style>
.bd{
padding:5px;
}
iframe{
overflow: hidden;
}
</style>