todo.vue 1.3 KB
Newer Older
陈浩玮's avatar
陈浩玮 committed
1
<template>
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
    <Table url="/api/v1/logger/login" rowKey="logId" addBtn :actions="actions" ref="table">
        <template #search="{query}">
            <my-form-item label="开始时间">
                <a-date-picker
                    class="tw-w-full"
                    show-time
                    v-model="query.startTime"
                    valueFormat="YYYY-MM-DD HH:mm:ss"
                />
            </my-form-item>
        </template>

        <template #drawer="{hidden}">
            <Form :hidden="hidden" />
        </template>

        <a-table-column title="用户Id" data-index="userId" />
        <a-table-column title="登录用户" data-index="userName" />
        <a-table-column title="登录IP" data-index="loginIp" />
        <a-table-column title="事件类型" data-index="loginTypeName" />
        <a-table-column title="事件状态" data-index="isSuccessName" />
        <a-table-column title="登录时间" data-index="loginTime" />
        <a-table-column title="说明" data-index="logResultContent" />
    </Table>
陈浩玮's avatar
陈浩玮 committed
26
</template>
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41

<script>
import Table from '@/components/table/table.vue';
import Form from './form.vue';

export default {
    components: { Table, Form },
    data: () => ({
        addBtn: {
            text: '新增',
        },
        actions: [],
    }),
};
</script>