companyInfo.vue 2.53 KB
<template>
    <iframe width="100%" height="600px" 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 + "/h5/#/enterpriseInfo?enterpriseId=" + id + "&isThird=1";
        }
        if(this.businessType == 1){
          this.src = http + "/h5/#/vehicleDetail?id=" + id + "&isThird=1";
        }
        if(this.businessType == 2){
          this.src = http + "/h5/#/constructionInfo?id="+id + "&isThird=1";
        }
        if(this.businessType == 3){
          this.src = http + "/h5/#/digestionSite?digestionId=" + id + "&isThird=1";
        }
        if(this.businessType == 4){
          this.src = http + "/h5/#/contractDetail?id=" + id + "&isThird=1";
        }
        if(this.businessType == 5){
          this.src = http + "/h5/#/driverDetail?id=" + id + "&isThird=1";
        }
    },



  }
</script>
<style>
  .bd{
    padding:5px;
  }



</style>