<!--
  @description:获取当前专家审核记录列表list
  @Modifier: ysg
  @routerPath:
  @date:  2020-12-18 15:35:00
-->
<template>
  <div class="projectInfoDetail">
    <div class="page-title">
      8.审批信息
    </div>
    <section>
      <el-table ref="smallTable" :data="tableData" class="tableLimit" border>
        <el-table-column
          prop="auditName"
          label="审核人姓名"
          header-align="center"
          align="center"
          min-width="140"
        />
        <el-table-column
          prop="auditStatus"
          label="审核状态"
          header-align="center"
          align="center"
          min-width="140"
        />
        <el-table-column
          prop="auditDate"
          label="审核日期"
          header-align="center"
          align="center"
          min-width="140"
        >
          <template slot-scope="scope">
            <span>{{ $Moment(scope.row.auditDate).format(momentDate) }}</span>
          </template>
        </el-table-column>
        <el-table-column
          prop="auditReason"
          label="审核意见"
          header-align="center"
          align="center"
          min-width="140"
        />
      </el-table>
    </section>
  </div>
</template>

<script>
/* 接口*/
import { getAllAuditOpinionsByExpertId } from '@/api/expert/expertscloud.js'
import { commonMxin } from '@/mixins/commonMxin'
/* 组件 */
export default {
  mixins: [commonMxin],
  data() {
    return {
      tableData: [],
      // 弹框数据
      dialogData: {
        dialog: false,
        id: ''
      }
    }
  },
  created() {
    // 获取当前专家审核记录列表
    this.initData()
  },
  methods: {
    initData() {
      const data = {
        expertId: this.$route.params.expertId
      } // 专家id
      getAllAuditOpinionsByExpertId(data).then(res => {
        this.tableData = res.data // 审核信息
      }).catch(() => {})
    }
  }
}
</script>

<style lang='less' scoped>
.baseInfo{
   font-weight: bolder;
}
</style>
