<template>
  <div>
    <el-row type="flex" style="margin-top: 20px">
      <router-link to="">
        <el-button class="filter-item blue-black" type="primary">新增</el-button>
      </router-link>
    </el-row>
    <el-table :data="tableData" border style="width: 100%; margin-top: 20px" >
      <el-table-column prop="address" label="所属项目" align="center"></el-table-column>
      <el-table-column prop="name" label="巡查时间" align="center"></el-table-column>
      <el-table-column prop="province" label="巡视人" align="center"></el-table-column>
      <el-table-column prop="city" label="巡视地点" align="center"></el-table-column>
      <el-table-column prop="date" label="巡视情况" align="center"></el-table-column>
      <el-table-column prop="date" label="处理意见  " align="center"></el-table-column>
      <el-table-column fixed="right" label="操作" align="center">
        <template scope="scope">
        <el-button @click="handleClick(scope.row)" type="text" size="small">编辑</el-button>
      </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  methods: {
    handleClick(row) {
      console.log(row);
    }
  },

  data() {
    return {
      tableData: [
        {
          date: "2016-05-02",
          name: "1001",
          province: "上海",
          city: "普陀区",
          address: "上海市普陀区金沙江路 1518 弄",
          zip: "-",
          remarks: "11111"
        }
      ]
    };
  }
};
</script>
