<!--
  @description: 专家库-抽取项目列表-直接指定列表组件
  @Modifier: 肖文龙
  @routerPath:
  @date: 2020/8/26
-->
<template>
  <div>
    <el-table
      ref="smallTable"
      :data="tableData"
      class="tableLimit"
    >
      <el-table-column
        type="index"
        label="序号"
        width="60px"
        align="center"
      />
      <el-table-column
        prop="applyCode"
        align="center"
        label="抽取申请编号"
        min-width="170"
      />
      <el-table-column
        align="center"
        prop="tenderName"
        label="评标开始时间"
        min-width="120"
      >
        <template slot-scope="scope">
          {{ $Moment(scope.row.createTime).format(momentDateTime) }}
        </template>
      </el-table-column>
      <el-table-column
        align="center"
        prop="createTime"
        label="评标结束时间"
        min-width="120"
      >
        <template slot-scope="scope">
          {{ $Moment(scope.row.createTime).format(momentDateTime) }}
        </template>
      </el-table-column>
      <el-table-column
        align="center"
        prop="tenderName"
        label="创建时间"
        min-width="120"
      >
        <template slot-scope="scope">
          {{ $Moment(scope.row.createTime).format(momentDateTime) }}
        </template>
      </el-table-column>
      <el-table-column
        header-align="center"
        align="right"
        prop="createTime"
        label="抽取成功专家"
        min-width="90"
      />
      <el-table-column
        align="center"
        label="操作"
        width="160"
      >
        <template slot-scope="scope">
          <el-link
            type="primary"
            @click.stop="preview(scope.row)"
          >
            [查看]
          </el-link>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
import { extractProjectMixin } from '../mixins/extractProjectMixins'// 字典信息
/* 组件*/
// import pagination from '@comp/common/pagination/pagination'// 分页

export default {
  name: 'TenderProjectList',
  components: {
    // pagination// 分页
  },
  mixins: [extractProjectMixin],
  props: {
    tableData: {
      type: Array,
      default: function() {
        return []
      }
    }
  },
  methods: {
    // 查看
    preview(row) {
      this.$router.push({
        path: 'extractApplyDetail',
        query: {
          id: row.id,
          status: row.auditStatus
        }
      })
    }
  }
}
</script>
<style lang="less" scoped>

</style>
