<template>
  <div>
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column prop="type" label="设施种类" align="center"> </el-table-column>
      <el-table-column prop="time" label="最近记录时间" align="center"> </el-table-column>
      <el-table-column prop="status" label="状态" align="center"> </el-table-column>
      <el-table-column prop="result" label="记录结果" align="center"> </el-table-column>
      <el-table-column label="操作" align="center">
        <template slot-scope="scope">
          <el-button @click="handleAdd(scope.$index,scope.row)" type="text" size="small"
            >新增</el-button
          >
          <el-button type="text" size="small">更多记录</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
export default {
    data(){
        return{
            tableData:[
                {
                    type:"111",
                    time:"2020-2-2 20:00",
                    status:"已完成",
                    result:"lllll"
                },
                {
                    type:"111",
                    time:"2020-2-2 20:00",
                    status:"已完成",
                    result:"lllll"
                },
                {
                    type:"111",
                    time:"2020-2-2 20:00",
                    status:"已完成",
                    result:"lllll"
                },
            ]
        }
    },
    methods: {
        handleAdd(index,row){
            this.$router.push({path:"/facilitiesManagement/addType"})
        }
    },
}
</script>