<script>
import { getAuthInfo } from '@/api/hisStore/store'
export default {
  data(){
    return{
      auditLogs:[],
    }
  },
  created() {
    this.selectAuthList()
  },
  methods:{
    selectAuthList(){
      getAuthInfo().then(response=>{
        this.auditLogs = response.auditLog;
      })
    }
  }
}
</script>

<template>
  <div>
    <el-table :data="auditLogs" height="350" border>
      <el-table-column label="描述" align="center" prop="des" :show-overflow-tooltip="true" />
      <el-table-column label="操作人员" align="center" prop="operName" width="100" :show-overflow-tooltip="true" sortable="custom" :sort-orders="['descending', 'ascending']" />
      <el-table-column label="操作日期" align="center" prop="operTime" sortable="custom" :sort-orders="['descending', 'ascending']" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.operTime) }}</span>
        </template>
      </el-table-column>
      <el-table-column label="审核理由" align="center" prop="reason" ></el-table-column>
      <el-table-column label="图片" align="center" prop="attachImage" width="100" >
        <template slot-scope="scope">
          <el-image
            style="width: 100px"
            :src="scope.row.attachImage"
            :preview-src-list="[scope.row.attachImage]"
            v-if="scope.row.attachImage">
          </el-image>
          <span v-else >无图片</span >
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<style scoped lang="scss">

</style>
