<!--
  @description: 项目启动数量情况列表
  @Modifier: yangzy
  @routerPath: /bidding/bidOpening/bidOpeningMonitor/bidOpeningMonitorDetail/tenderOpenNumData-detail
  @date: 2021/02/03 19:47:49
-->
<template>
  <div>
    <dl class="projectInfoDetail">
      <dd>
        <el-table
          v-loading="loading"
          :data="tableData"
        >
          <!-- isTwoBidOpening为00 一步开标展示开启和解密数据 -->
          <template v-if="this.$route.params.isTwoBidOpening === '00'">
            <el-table-column
              prop="technicalOpeningNum"
              label="开启"
              header-align="center"
              align="left"
              min-width="140px"
            />
            <el-table-column
              prop="technicalDecryptNum"
              label="解密"
              min-width="140px"
              header-align="center"
            />
          </template>
          <!-- isTwoBidOpening为01 两步开标展示商务技术和经济标开启和解密数据 -->
          <template v-if="this.$route.params.isTwoBidOpening === '01'">
            <el-table-column
              prop="technicalOpeningNum"
              label="商务技术开启"
              header-align="center"
              align="left"
              min-width="140px"
            />
            <el-table-column
              prop="technicalDecryptNum"
              label="商务技术解密"
              min-width="140px"
              header-align="center"
            />
            <el-table-column
              prop="economicOpeningNum"
              label="经济开启"
              min-width="140px"
              header-align="center"
            />
            <el-table-column
              prop="economicDecryptNum"
              label="经济解密"
              min-width="140px"
              header-align="center"
            />
          </template>
          <el-table-column
            prop="queryTime"
            label="查询时间"
            align="center"
            min-width="140px"
          />
        </el-table>
      </dd>
    </dl>
  </div>
</template>
<script>
/* api */
import { getOpenBidProjectNumber } from '@/api/bidding/bidOpening' // 获取开标前数据监控数据
export default {
  name: 'TenderOpenNumDataDetail',
  props: {
    tenderOpenNum: {
      type: Object,
      default: function() {
        return {}
      }
    }
  },
  data() {
    return {
      loading: false, // 列表loading
      tableData: [] // 列表
    }
  },
  methods: {
    // 查询数据
    tenderOpenNumData() {
      this.tableData = []
      this.loading = true
      getOpenBidProjectNumber(this.tenderOpenNum).then(response => {
        this.loading = false
        this.tableData = response.data
      }).catch(() => {
        this.loading = false
      })
    }
  }
}
</script>
<style lang="less" scoped>

</style>
