<template>
  <div >
    <div class="content">
      <dataTable :table-data="tableData" :columns="columns" :page-obj="pageObj" :breads="breads" :checklist="checklist">
        <el-table-column slot="operate" label="操作" align="center" fixed="right" width="100">
          <template slot-scope="scope">
            <el-button type="text" size="small" @click="examine(scope.row)">审核</el-button>
          </template>
        </el-table-column>
      </dataTable>
    </div>
  </div>
</template>

<script>
import dataTable from '@components/dataTable.vue'
export default {
  name: 'failList',
  components: {
    dataTable
  },
  data() {
    return {
      checklist: [{
        title: '公告名称',
        type: 'input',
        model: 'name'
      }, {
        title: '状态',
        type: 'select',
        model: 'state',
        selectlist: [{
          value: '1',
          label: '公开招标'
        }, {
          value: '2',
          label: '邀请招标'
        }],
        change: row => ''
      }
      ],		
      breads: ['招投标管理', '异常公告列表'],
      tableData: [{
        name: '涿州市鼓楼大街（范阳路至永济路段）及周边区域街巷改造工程监理',
        person: '腾讯4',
        data: '2017-10-01 12：00',
        state: '待审核',
        remark: '错别字'
      }, {
        name: '涿州市鼓楼大街（范阳路至永济路段）及周边区域街巷改造工程监理',
        person: '腾讯3',
        data: '2017-10-01 13：00',
        state: '待审核',
        remark: '错别字'
      }, {
        name: '涿州市鼓楼大街（范阳路至永济路段）及周边区域街巷改造工程监理',
        person: '腾讯2',
        data: '2017-10-01 14：00',
        state: '待审核',
        remark: '错别字'
      }, {
        name: '涿州市鼓楼大街（范阳路至永济路段）及周边区域街巷改造工程监理',
        person: '腾讯1',
        data: '2017-10-01 15：00',
        state: '待审核',
        remark: '错别字'
      }],
      columns: [{
        label: '公告名称',
        prop: 'name',
        width: 400
      },
      {
        label: '审核人',
        prop: 'person'
      },
      {
        label: '创建时间',
        prop: 'data',
        sortable: true
      },
      {
        label: '状态',
        prop: 'state'
      },
      {
        label: '备注',
        prop: 'remark'
      },
      {
        slot: 'operate'
      }
      ], // 操作列
     
      pageObj: {
        size: 10,
        total: 1,
        currentPage: 1,
        sizes: [100, 200, 300],
        func: (currentPage) => {
          this.pageTurning(currentPage)
        }
      }
    }
  },
  methods: {
    examine() {
      this.$router.push('/admin/bid/failDetail')
    }
  }
}
</script>

<style scoped>
	
</style>
