<!--
  @description: 签到解密家数情况
  @Modifier: yangzy
  @routerPath: /bidding/bidOpening/bidOpeningMonitor/bidOpeningMonitorDetail/bidSignDecryptData-detail
  @date: 2021/02/05 11:35:59
-->
<template>
  <div>
    <dl class="projectInfoDetail">
      <dd>
        <el-table
          v-loading="loading"
          :data="tableData"
        >
          <el-table-column
            type="index"
            label="序号"
            min-width="60px"
            align="center"
          />
          <!-- isTwoBidOpening为00 一步开标展示开启和解密数据 -->
          <template v-if="this.$route.params.isTwoBidOpening === '00'">
            <template v-if="this.$route.params.decryptionMethod === '00'">
              <el-table-column
                prop="technicalSignNum"
                label="签到成功家数"
                min-width="140px"
                header-align="center"
              />
            </template>
            <el-table-column
              prop="technicalDecryptSuccessNum"
              label="解密成功家数"
              min-width="140px"
              header-align="center"
            />
            <el-table-column
              prop="technicalDecryptFailNum"
              label="解密失败家数"
              min-width="140px"
              header-align="center"
            />
          </template>
          <!-- isTwoBidOpening为01 两步开标展示商务技术和经济标开启和解密数据 -->
          <template v-if="this.$route.params.isTwoBidOpening === '01'">
            <template v-if="this.$route.params.decryptionMethod === '00'">
              <el-table-column
                prop="technicalSignNum"
                label="商务技术标签到家数"
                min-width="140px"
                header-align="center"
              />
              <el-table-column
                prop="economicSignNum"
                label="经济标签到家数"
                min-width="140px"
                header-align="center"
              />
            </template>
            <el-table-column
              prop="technicalDecryptSuccessNum"
              label="商务技术标解密成功家数"
              min-width="140px"
              header-align="center"
            />
            <el-table-column
              prop="technicalDecryptFailNum"
              label="商务技术标解密失败家数"
              min-width="140px"
              header-align="center"
            />
            <el-table-column
              prop="economicDecryptSuccessNum"
              label="经济标解密成功家数"
              min-width="140px"
              header-align="center"
            />
            <el-table-column
              prop="economicDecryptFailNum"
              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 { getOpenBidSignAndDecryptData } from '@/api/bidding/bidOpening' // 签到解密家数情况
export default {
  name: 'BidSignDecryptDataDetail',
  props: {
    bidSignDecrypt: {
      type: Object,
      default: function() {
        return {}
      }
    }
  },
  data() {
    return {
      loading: false, // 列表loading
      tableData: [] // 列表
    }
  },
  methods: {
    // 查询数据
    bidSignDecryptData() {
      this.tableData = []
      this.loading = true
      getOpenBidSignAndDecryptData(this.bidSignDecrypt).then(response => {
        this.loading = false
        this.tableData.push(response.data)
      }).catch(() => {
        this.loading = false
      })
    }
  }
}
</script>
<style lang="less" scoped>

</style>
