[Update] 修改Login log view

This commit is contained in:
ibuler
2020-05-06 19:35:48 +08:00
parent ead20ec589
commit bf377d12c2

View File

@@ -1,19 +1,20 @@
<template> <template>
<GenericTreeListPage :table-config="tableConfig" :header-actions="headerActions" :tree-setting="treeSetting" /> <GenericListPage :table-config="tableConfig" :header-actions="headerActions" />
</template> </template>
<script> <script>
import GenericTreeListPage from '@/layout/components/GenericTreeListPage' import GenericListPage from '@/layout/components/GenericListPage'
export default { export default {
components: { components: {
GenericTreeListPage GenericListPage
}, },
data() { data() {
return { return {
tableConfig: { tableConfig: {
url: '/api/v1/audits/login-logs/', url: '/api/v1/audits/login-logs/',
columns: [ columns: ['username', 'type', 'ip', 'city', 'user_agent', 'mfa', 'reason', 'status', 'datetime'],
columnsMeta: [
{ {
prop: 'username', prop: 'username',
label: this.$t('audits.username') label: this.$t('audits.username')