<template>
  <div class="app-container">
    <div class="filter-container">
      <el-row type="flex" justify="end">
        <el-col :md="2" :xs="24" class="left-align">
          <el-button class="filter-item blue-black" type="primary" icon="el-icon-search">新增</el-button>
        </el-col>
        <el-col :md="22" :xs="24" style="flost: right">
          <el-input v-model="search" :placeholder="'搜索'" style="width: 200px;" clearable />
          <el-button class="filter-item blue-black" type="primary" icon="el-icon-search">查询</el-button>
        </el-col>
      </el-row>
    </div>

    <el-table
      :data="tableData"
      border
      style="width: 100%">
      <el-table-column prop="data1" label="用户" ></el-table-column>
      <el-table-column prop="data2" label="拥有权限" ></el-table-column>
      <el-table-column label="操作" >
        <template scope="scope">
          <el-button type="text" size="small" @click="handleClick(scope.row)">编辑</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

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

    data() {
      return {
        search: null,
        tableData: [{
          data1: '小明',
          data2: '财务新增、财务删除、财务修改、财务查询'
        }]
      }
    },

    methods: {
      handleClick(val) {}
    }
  }
</script>