<template>
  <el-dialog
    :visible.sync="dialogVisible"
    :show-close="false"
    :destroy-on-close="true"
    :close-on-click-modal="false"
    append-to-body
    custom-class="dialog-boxed"
    width="60%"
  >
    <div class="dialog-slot">
      <div class="closeClick">
        <div class="newplan">
          <div class="line"></div>
          <div class="span">计划详情</div>
        </div>
        <img src="@/assets/images/close.png" alt="" @click="Close" />
      </div>
    </div>
    <div class="content">
      <div class="filtrate">
        <el-descriptions :column="2" border>
          <el-descriptions-item
            :label="item.label"
            v-for="(item, index) in listDes"
            :key="index"
          >
            {{
              item.value == "null"
                ? ""
                : item.value == "false"
                ? "暂无"
                : item.value
            }}
          </el-descriptions-item>
        </el-descriptions>
      </div>
    </div>
  </el-dialog>
</template>
<script>
import { businessList } from "@/api/yingji/keyEnterprise";
export default {
  data() {
    return {
      listDes: [
        {
          eng: "bizAddr",
          label: "生产经营地址",
          value: "123",
        },
        {
          eng: "bossEmail",
          label: "主要负责人电子邮箱",
          value: "456",
        },
        {
          eng: "bossMobtel",
          label: "主要负责人移动电话",
          value: "",
        },
        {
          eng: "bossTel",
          label: "主要负责人固定电话",
          value: "",
        },
        {
          eng: "businessScope",
          label: "经营范围",
          value: "",
        },
        {
          eng: "contactEmail",
          label: "电子邮箱",
          value: "",
        },
        {
          eng: "contactQq",
          label: "联系QQ号码",
          value: "",
        },
        {
          eng: "contactTel",
          label: "企业固定电话",
          value: "",
        },
        {
          eng: "cseNum",
          label: "注册安全工程师人员数量",
          value: "",
        },
        {
          eng: "doublePreven",
          label: "是否开展双重预防机制",
          value: "",
        },
        {
          eng: "ecoTypeLarge",
          label: "经济类型大类",
          value: "",
        },
        {
          eng: "ecoTypeSmall",
          label: "经济类型小类",
          value: "",
        },
        {
          eng: "employeeNum",
          label: "从业人员数量",
          value: "",
        },
        {
          eng: "enterColorChart",
          label: "企业分色图",
          value: "",
        },
        {
          eng: "entprId",
          label: "企业ID",
          value: "",
        },
        {
          eng: "entprName",
          label: "企业名称",
          value: "",
        },
        {
          eng: "entprPlaneGragh",
          label: "企业平面图",
          value: "",
        },
        {
          eng: "floorArea",
          label: "占地面积（㎡）",
          value: "",
        },
        {
          eng: "fullEmegNum",
          label: "专职应急管理人员数量",
          value: "",
        },
        {
          eng: "fullSafety",
          label: "是否有专职安全人员",
          value: "",
        },
        {
          eng: "fullSafetyNum",
          label: "专职安全生产管理人员数量",
          value: "",
        },
        {
          eng: "gridCode",
          label: "网格编码",
          value: "",
        },
        {
          eng: "gridEntprStatus",
          label: "网格对企业的关停和恢复",
          value: "",
        },
        {
          eng: "groupCompName",
          label: "集团公司名称",
          value: "",
        },
        {
          eng: "indusTypeClass",
          label: "行业类别门类",
          value: "",
        },
        {
          eng: "indusTypeLagre",
          label: "行业类别大类",
          value: "",
        },
        {
          eng: "indusTypeMiddle",
          label: "行业类别中类",
          value: "",
        },
        {
          eng: "indusTypeSmall",
          label: "行业类别小类",
          value: "",
        },
        {
          eng: "industryRefer",
          label: "工贸涉及(专项治理类别)",
          value: "",
        },
        {
          eng: "infoYear",
          label: "数据年份",
          value: "",
        },

        {
          eng: "isPoint",
          label: "是否重点",
          value: "",
        },

        {
          eng: "latitudeGps",
          label: "纬度（度） 84",
          value: "",
        },
        {
          eng: "legalPerson",
          label: "法定代表人",
          value: "",
        },
        {
          eng: "localSafetyAdmin",
          label: "属地安监机构",
          value: "",
        },
        {
          eng: "longitudeGps",
          label: "经度（度） 84",
          value: "",
        },
        {
          eng: "mainProduct",
          label: "主要产品",
          value: "",
        },
        {
          eng: "majorHazardInstallations",
          label: "是否存在重大危险源",
          value: "",
        },
        {
          eng: "majorHazardLevel",
          label: "重大危险源等级",
          value: "",
        },
        {
          eng: "operatingStatus",
          label: "经营状态",
          value: "",
        },
        {
          eng: "parentCompName",
          label: "母公司名称",
          value: "",
        },
        {
          eng: "partSafetyNum",
          label: "兼职安全生产管理人员数量",
          value: "",
        },
        {
          eng: "regAddr",
          label: "注册地址",
          value: "",
        },
        {
          eng: "regCapi",
          label: "注册资金（万元）",
          value: "",
        },
        {
          eng: "safetyDepart",
          label: "是否有专门安全机构",
          value: "",
        },
        {
          eng: "safetyDepartDuty",
          label: "安全管理机构职责",
          value: "",
        },
        {
          eng: "safetyDepartName",
          label: "安全管理机构名称",
          value: "",
        },
        {
          eng: "safetyDepartNum",
          label: "安全管理机构成员数量",
          value: "",
        },
        {
          eng: "safetyEmail",
          label: "安全负责人电子邮箱",
          value: "",
        },
        {
          eng: "safetyManager",
          label: "安全负责人",
          value: "",
        },
        {
          eng: "safetyMobtel",
          label: "安全负责人移动电话",
          value: "",
        },
        {
          eng: "safetySupervisionLevel",
          label: "安全监管等级",
          value: "",
        },
        {
          eng: "safetyTel",
          label: "安全负责人固定电话",
          value: "",
        },
        {
          eng: "setupDate",
          label: "成立日期",
          value: "",
        },
        {
          eng: "sourceData",
          label: "数据来源",
          value: "",
        },
        {
          eng: "specialGovernance",
          label: "专项治理类别",
          value: "",
        },
        {
          eng: "speclalOperationNum",
          label: "特种作业人员数量",
          value: "",
        },
        {
          eng: "standLevel",
          label: "标准化等级",
          value: "",
        },
        {
          eng: "stateOwed",
          label: "是否为国有企业",
          value: "",
        },
        {
          eng: "supervisionLarge",
          label: "行业监管大类",
          value: "",
        },
        {
          eng: "supervisionSmall",
          label: "行业监管小类",
          value: "",
        },
        {
          eng: "uscCode",
          label: "统一社会信用代码",
          value: "",
        },
      ],
      dialogVisible: false,
    };
  },
  methods: {
    open(item) {
      console.log(item);
      this.dialogVisible = true;
    },
    Close() {
      this.dialogVisible = false;
    },
    getList() {
      businessList(this.searchBefore).then((res) => {
        this.tableData = res.rows;
        this.total = res.total;
      });
    },
  },
};
</script>
<style lang="scss" scoped>
.dialog-slot {
  .closeClick {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 20px;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background: #f8f9fa;
    box-shadow: 0px 1px 0px 0px #dbe0e8;
    background-color: #e0eaf8;
    img {
      width: 18px;
      height: 18px;
      cursor: pointer;
    }
    .newplan {
      display: flex;
      align-items: center;
      .line {
        margin-right: 10px;
        width: 5px;
        height: 16px;
        background-color: #1e70de;
      }
      .span {
        font-size: 16px;
        font-family: "Alibaba PuHuiTi";
        font-weight: bold;
        color: #1e70de;
      }
    }
  }
}
::v-deep .el-descriptions-row th {
  width: 20% !important;
  font-size: 14px;
  font-family: "Alibaba PuHuiTi";
  font-weight: 400;
}
::v-deep .el-descriptions-row td {
  width: 30% !important;
  font-size: 14px;
  font-family: "Alibaba PuHuiTi";
  font-weight: 400;
}
</style>
