
<template>
    <div class="page">
        <LayoutTable :data='tableData' :config='tableConfig' />
    </div>
</template>

<script>
    import table from '@/assets/mixins/table';

    export default {
        mixins: [table],
        data() {
            return {
                config: {
                    search: [
                        {
                            name: 'loginName',
                            type: 'text',
                            label: '登录名',
                        },
                        {
                            name: 'requestUrl',
                            type: 'text',
                            label: '请求地址',
                        },
                    ],
                    columns: [
                        {
                            type: 'selection',
                            width: 60,
                        },

                        {
                            prop: 'id',
                            label: '序号',
                        },


                        {
                            prop: 'userName',
                            label: '用户名称',
                        },


                        {
                            prop: 'loginName',
                            label: '用户登录名',
                        },


                        {
                            prop: 'requestUrl',
                            label: '请求地址',
                        },


                        {
                            prop: 'content',
                            label: '操作内容',
                        },


                        {
                            prop: 'ip',
                            label: '操作IP地址',
                        },


                        {
                            prop: 'logDate',
                            label: '操作时间',
                            width: 140,
                            formatter: this.formatterDate
                        },


                        {
                            label: '操作',
                            width: 100,
                            formatter: (row)=> {
                                return (
                                    <table-buttons row={row} onDel={this.toDel} noEdit/>
                                )
                            },
                        },
                    ],
                },
            }
        }
    }
</script>
