<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: 'bidingList',
  components: {
    dataTable
  },
  data() {
    return {
      checklist: [{
        title: '姓名',
        type: 'input',
        model: 'name'
      }, {
        title: '用户操作',
        type: 'input',
        model: 'operate'
      }],
      breads: ['系统管理', '日志列表'],
      tableData: [{}],
      columns: [{
        label: '姓名',
        prop: 'name'
      },
      {
        label: '用户操作',
        prop: 'operate'
      },
      {
        label: '请求方式',
        prop: 'requestType'
      },
      {
        label: '请求参数',
        prop: 'requestData'
      },
      {
        label: '请求时长',
        prop: 'requestTime'
      },
      {
        label: '状态',
        prop: 'state'
      },
      {
        label: '操作IP',
        prop: 'ip'
      },
      {
        label: '创建时间',
        prop: 'data'
      }],
      pageObj: {
        size: 10,
        total: 1,
        currentPage: 1,
        sizes: [100, 200, 300],
        func: (currentPage) => {
          this.pageTurning(currentPage)
        }
      }
    }
  },
  methods: {
    examine() {
      this.$router.push('/admin/bid/bidingDetail')
    }
  }
}
</script>

<style scoped>

</style>
