
<!--
  @description: 采购员-桌面
  @Modifier：wxy
  @routerPath:/procurement/procurementDesktop
  @date：  2020-09-01 11:29:50
-->
<template>
  <div class="sessionContent">
    <!--标题-->
    <div class="title title_border p0-16">
      <i class="el-icon-s-home" />工作台
    </div>
    <div class="p16 clearfix">
      <div class="fl contentLeft">
        <procurementDesktopProject :table-data="tableData" />
      </div>
      <div class="fr contentRight">
        <!--<procurementDesktopBidOpening/>-->
        <!-- 下载中心 -->
        <procurementDesktopDownload :supplier-flag="supplierFlag" />
      </div>
    </div>
  </div>
</template>

<script>
import procurementDesktopProject from '../procurementDesktopProject-detail' // 采购单组件
// import procurementDesktopBidOpening from '../procurementDesktopBidOpening-detial' // 开标提醒
import { getGalleryInfo } from '@/api/procurement/commonDesk'
import procurementDesktopDownload from '../procurementDesktopDownload-detai' // 下载中心

export default {
  components: {
    procurementDesktopProject, // 采购单组件
    // procurementDesktopBidOpening // 开标提醒
    procurementDesktopDownload // 下载中心

  },
  data() {
    return {
      tableData: [],
      paginationData: {
        // pageNo: 1,
        // pageSize: 2
      },
      supplierFlag: true
    }
  },
  created() {
    this.getGalleryInfo()
  },
  methods: {
    // 获取工作台
    getGalleryInfo() {
      getGalleryInfo(this.paginationData).then(res => {
        if (res.header.ret === '0') {
          this.tableData = [...res.data]
        }
      })
    }
  }
}
</script>

<style lang='less' scoped>
.title{
  background: #ffffff;
}
.sessionContent{
  background: #f5f5f5;
}
.contentLeft{
    width: 70%;
}
.contentRight{
    width: 28%;
    margin-left: 10px;
}
</style>
