<template>
  <div>
    <div class="content">
      <dataTable  :columns="columns"  :breads="breads" :checklist="checklist"  :pageObj="pageObj"  url="tender-management/relevance/bidder/list">
        <el-table-column slot="operate" label="操作" align="center" fixed="right" width="100">
          <template slot-scope="scope">
            <el-button type="text" size="small" @click="see(scope.row.companyId)">查看</el-button>
          </template>
        </el-table-column>
      </dataTable>
    </div>
  </div>
</template>
<script>
import dataTable from '@components/dataTable.vue'
export default {
  components: {
    dataTable
  },
  data() {
    return {
      checklist: [{
        title: '单位名称',
        type: 'input',
        model: 'companyName'
      }],
      breads: ['供应商管理', '我的供应商'],
      tableData: [],
      columns: [{
        label: '单位名称',
        prop: 'companyName'
      },
      {
        label: '行业类型',
        prop: 'industry'
      },
      {
        label: '联系人',
        prop: 'contacts'
      },
      {
        slot: 'operate'
      }
      ], // 操作列
	 pageObj: {
	   size: 10,
	   currentPage: 1,
	   func: (currentPage) => {
	     this.pageTurning(currentPage)
	   }
	 }
    }
  },
  methods: {
   see(companyId) {
     this.$router.push(`/purchaser/supply/mySupplySee?companyId=${companyId}`)
   }
  },
  created() {
  	this.pageObj.companyId=localStorage.getItem("companyId")
  }
}
</script>

<style scoped>

</style>
