<template>
  <div class="table-container">
    <el-row class="table-title">
      <el-col :span="6"><div class="title-header"><i class="el-icon-menu"/>数据列表</div></el-col>
    </el-row>
    <el-table ref="table" :data="list" class="table" border>
      <el-table-column align="center" label="排序" type="index" width="80"/>
      <el-table-column align="center" label="事件/部件" prop="eorc"/>
      <el-table-column align="center" label="大类/小类">
        <template slot-scope="scope">
          <span>{{ scope.row.caseTypeName + '/' + scope.row.caseTypeDetailName }}</span>
        </template>
      </el-table-column>
      <el-table-column align="center" label="上报数" prop="upNum"/>
    </el-table>
  </div>

</template>

<script>
export default {
  name: 'HighFreqList',
  props: {
    list: {
      type: Array,
      default() {
        return []
      }
    }
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  $tableTitleHeight:46px;
  .table{
    margin-bottom: 20px;
  }
  .table-title{
    background-color:rgba(243, 243, 243, 1);
    height: $tableTitleHeight;
    .title-header{
      line-height:$tableTitleHeight;
      color: #606266;
      font-size: 15px;
      i{
        margin-left: 5px;
        margin-right: 5px;
      }
    }
  }
</style>
