<template>
  <a-card :bordered="false">
    <x-form-table
      title="登录日志"
      serviceName="af-system"
      :queryParamsName="queryParamsName"
      @action="toDetail">
    </x-form-table>
  </a-card>
</template>

<script>
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'

export default {
  name: 'LoginInfor',
  components: {
    XFormTable
  },
  data () {
    return {
      // 选中的编号
      selectNo: undefined,
      // 查询配置文件名
      queryParamsName: 'crud_login_infor_manage',
      // 是否显示详情抽屉
      detailVisible: false
    }
  },
  methods: {
    toDetail (record, id) {
      this.selectNo = id + ''
      this.detailVisible = true
    }
  }
}
</script>
