<!--
  @description: 招标项目-可参与项目详情
  @Modifier: 肖文龙
  @routerPath: /bidding/bidTenderParticipate-detail
  @date: 2021/01/06
-->

<template>
  <div>
    <div class="title p0-16 clearfix">
      <div class="title-back pointer" @click="back">
        <i class="iconfont icon-fanhui mr10" />可参与项目列表
      </div>
    </div>
    <div>
      <!-- 00 招标公告/资审公告 -->
      <bulletinPdfDetail v-if="bidType==='00'" />
      <!-- 01 邀请函 -->
      <invitationPdfDetail v-if="bidType==='01'" />
    </div>
    <!--底步按钮-->
    <div class="but_footer">
      <div class="but_footer-h" />
      <div class="but_footer-but">
        <el-button @click="back()">
          返 回
        </el-button>
      </div>
    </div>
  </div>
</template>

<script>
/* 组件 */
import bulletinPdfDetail from '@/views/bidding/bulletin/tenderBulletin/bulletinPdf-detail' // 招标公告/资审公告
import invitationPdfDetail from '@/views/bidding/invitation/tenderInvitation/makeTenderingInvitationPdf-detail.vue'// 邀请函
export default {
  name: 'BidTenderParticipateDetail',
  components: {
    bulletinPdfDetail,
    invitationPdfDetail
  },
  data() {
    return {
      bidType: '' // 招标方式
    }
  },
  created() {
    this.initData()// 初始化数据
  },
  methods: {
    // 初始化数据(因为之前架构的原因必须这么处理，切记其他功能不要这么干)
    initData() {
      this.$router.push({
        query: {
          ...this.$route.params
        }
      })
      this.bidType = this.$route.query.bidType// 招标方式 00 公开招标 01 邀请招标
      this.loadding = true
    },
    // 返回
    back() {
      this.$router.push({
        path: '/bidding/bidTenderParticipate-list'
      })
    }
  }
}
</script>

<style lang="less" scoped>

</style>
