<template>
  <el-table :data="tableData" border v-loading="loading" style="width: 100%">
    <el-table-column prop="date" label="序号" width="80" align="center">
      <template slot-scope="scope">{{ scope.$index + 1 }}</template>
    </el-table-column>
    <el-table-column prop="name" label="工作内容" align="center">
    </el-table-column>
    <el-table-column prop="name" label="风险等级" align="center">
    </el-table-column>
    <el-table-column prop="name" label="作业时间" align="center">
    </el-table-column>
    <el-table-column prop="name" label="施工单位" align="center">
    </el-table-column>
    <el-table-column prop="name" label="运维单位" align="center">
    </el-table-column>
    <el-table-column prop="name" label="专业部门" align="center">
    </el-table-column>
    <el-table-column prop="name" label="到岗到位安排" align="center">
    </el-table-column>
  </el-table>
</template>

<script>
export default {
  data() {
    return {
      loading: true,
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1517 弄",
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1519 弄",
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1516 弄",
        },
      ],
    };
  },
  methods: {
    getList(dateRange) {
      this.loading = true;
      setTimeout(() => {
        this.loading = false;
      }, 2000);
    },
  },
};
</script>

<style></style>
