<template>
  <div class='m-container'>
    <h2>系统角色权限管理</h2>
    <div class="m-core">
      <div class='newBand'>添加</div>
      <!-- 搜索类型 -->
      <el-form :inline="true"
               class="searchForm"
               v-model="searchForm">
        <el-form-item>
          <el-select v-model="searchForm.status"
                     placeholder="工作类型">
            <el-option label="哈哈哈"
                       value="1"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item>
          <el-input suffix-icon="el-icon-search"
                    placeholder="请输入搜索内容"></el-input>
        </el-form-item>
      </el-form>
      <!-- 查询列表 -->
      <div class="searchWrap">
        <p>查询条件:</p>
        <div class="searchItem"
             @click="closeSearch(item)"
             v-for="(item,index) in searchLsit">
          {{ item.key }}
          <i class="el-icon-close"></i>
        </div>
      </div>
      <!-- 列表 -->
      <div class="tableWrap">
        <el-table :data='tableList'>
          <el-table-column align='center'
                           label="角色分类">
          </el-table-column>
          <el-table-column align='center'
                           label="状态">
          </el-table-column>
          <el-table-column align='center'
                           label="权限范围">
          </el-table-column>
          <el-table-column align='center'
                           label="操作">
          </el-table-column>
        </el-table>
        <pagination :total="rules.total"
                    :page.sync="rules.page"
                    :limit.sync="rules.limit"
                    :page-sizes="rules.page_size"
                    @pagination="getList" />
      </div>
    </div>
  </div>
  </div>
</template>
<script>
import pagination from '@/components/Pagination/index'
export default {
  components: { pagination },
  name: 'adminManager',
  data () {
    return {
      searchForm: {
        status: ''
      },
      searchLsit: [],
      tableList: [],
      rules: {
        // 分页规则
        limit: 10, // 限制显示条数
        page: 1, // 当前页
        total: 0, // 总条数
        page_size: [10, 20, 40, 50] // 选择限制显示条数
      },
    }
  },
  methods: {
    getList () { }
  }
}
</script>
<style lang="scss">
</style>