Ben Lin
2024-06-20 36acf8daf78fdc005a42ea682efec7174f4e283b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<template>
  <div>
    <BasicTable @register="registerTable">
      <template #toolbar>
        <!-- <a-button type="primary" @click="handleCreate"> 新增登录日志 </a-button> -->
      </template>
    </BasicTable>
  </div>
</template>
<script lang="ts">
  import { defineComponent } from 'vue';
 
  import { BasicTable, useTable } from '/@/components/Table';
 
  import { columns, searchFormSchema } from './loginlog.data';
  import { getLoginLogListByPage } from '/@/api/tigerapi/system';
 
  export default defineComponent({
    name: 'LoginLogManagement',
    components: { BasicTable },
    setup() {
      const [registerTable, { reload }] = useTable({
        title: '登录日志列表',
        api: getLoginLogListByPage,
        columns,
        formConfig: {
          labelWidth: 120,
          schemas: searchFormSchema,
        },
        useSearchForm: true,
        showTableSetting: true,
        bordered: true,
        showIndexColumn: false,
      });
 
      function handleSuccess() {
        reload();
      }
 
      return {
        registerTable,
        handleSuccess,
      };
    },
  });
</script>