<template>
  <div class="app-container">
    <el-form :model="queryForm" inline size="small">
      <el-form-item label="名称">
        <el-input v-model="queryForm.name" placeholder="名称"/>
      </el-form-item>
      <el-form-item label="类型">
        <el-select v-model="queryForm.isEnable" clearable placeholder="用户状态">
          <el-option label="是" value="Y"/>
          <el-option label="否" value="N"/>
        </el-select>
      </el-form-item>
    </el-form>
    <el-table
      v-loading="isLoading"
      :data="pageData.records"
      border
      fit
      highlight-current-row
      @selection-change="selectionChange"
    >
      <el-table-column type="selection" width="55"/>
      <el-table-column label="名称" prop="id" width="150"/>
      <el-table-column label="地址" prop="name"/>
      <el-table-column label="类型" prop="publicKey" width="150"/>
    </el-table>

    <el-pagination
      class="pagination-container"
      background
      layout="prev, pager, next"
      :total="pageData.total"
      :page-size="pageData.pageSize"
      @current-change="paginationChange"
    />
  </div>
</template>

<script>

export default {
  components: {},
  data() {
    return {
      queryForm: {},
      pageData: {}
    }
  },
  computed: {},
  created() {
  },
  mounted() {
  },
  methods: {
    paginationChange(val) {
      this.currentPage = val
      this.fetchData()
    }
  }
}
</script>
