mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 17:54:37 +00:00
[Update] 修改Login log view
This commit is contained in:
@@ -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')
|
||||||
|
Reference in New Issue
Block a user