<!--
  @description: 驱动内-邀请公告详情/查看邀请公告
  @Modifier: 肖文龙
  @routerPath:bidding/projectDrive/invitation/newTenderInvitationPdf
  @date: 2020/4/22
-->
<template>
  <div>
    <makeTenderingInvitationPdfDetail />
    <!--当前页面从哪进来的  01 驱动内列表页-->
    <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 makeTenderingInvitationPdfDetail from '../tenderInvitation/makeTenderingInvitationPdf-detail' // 邀请公告查看pdf
export default {
  name: 'MakeTenderingBulletinPdfDetail',
  components: {
    makeTenderingInvitationPdfDetail
  },
  data() {
    return {
      tenderBase: this.$store.getters.tenderBase // 项目信息
      // bulletinPageType: this.$route.query.bulletinPageType // 当前页面从哪进来的  01 驱动内列表页 02 驱动内直接展示详情页
    }
  },
  methods: {
    // 返回
    back() {
      const query = { ...this.$route.query }
      // let path = ''
      // if (this.tenderBase.bulletinType === '01') { // 招标公告
      //   path = '/bidding/projectDrive/bulletin/bidBulletinList'
      // } else if (this.tenderBase.bulletinType === '21') { // 资审公告
      //   path = '/bidding/projectDrive/zsBulletin/bidBulletinList'
      // }
      this.$router.push({
        path: '/bidding/projectDrive/invitation/newTenderInvitation-detail',
        query: query
      })
    }
  }
}
</script>

<style scoped lang="less">

</style>
