This commit is contained in:
jym503558564 2020-05-08 19:37:44 +08:00
commit b19eda1f53
5 changed files with 123 additions and 5 deletions

View File

@ -0,0 +1,31 @@
<template>
<GenericListPage :table-config="tableConfig" />
</template>
<script>
import GenericListPage from '@/layout/components/GenericListPage'
export default {
components: {
GenericListPage
},
data() {
return {
tableConfig: {
url: '/api/v1/audits/command-execution-logs/',
columns: [
'hosts', 'user', 'command', 'run_as', 'result', 'is_finished',
'is_success', 'date_start'
],
columnsMeta: {
},
hasSelection: false
}
}
}
}
</script>
<style>
</style>

View File

@ -0,0 +1,31 @@
<template>
<GenericListPage :table-config="tableConfig" />
</template>
<script>
import GenericListPage from '@/layout/components/GenericListPage'
export default {
components: {
GenericListPage
},
data() {
return {
tableConfig: {
url: '/api/v1/audits/ftp-logs/',
columns: [
'user', 'asset', 'system_user', 'remote_addr', 'operate',
'filename', 'is_success', 'date_start'
],
columnsMeta: {
},
hasSelection: false
}
}
}
}
</script>
<style>
</style>

View File

@ -0,0 +1,28 @@
<template>
<GenericListPage :table-config="tableConfig" />
</template>
<script>
import GenericListPage from '@/layout/components/GenericListPage'
export default {
components: {
GenericListPage
},
data() {
return {
tableConfig: {
url: '/api/v1/audits/operate-logs/',
columns: ['user', 'action', 'resource_type', 'resource', 'remote_addr', 'datetime'],
columnsMeta: {
},
hasSelection: false
}
}
}
}
</script>
<style>
</style>

View File

@ -0,0 +1,28 @@
<template>
<GenericListPage :table-config="tableConfig" />
</template>
<script>
import GenericListPage from '@/layout/components/GenericListPage'
export default {
components: {
GenericListPage
},
data() {
return {
tableConfig: {
url: '/api/v1/audits/password-change-logs/',
columns: ['user', 'change_by', 'remote_addr', 'datetime'],
columnsMeta: {
},
hasSelection: false
}
}
}
}
</script>
<style>
</style>

View File

@ -2,31 +2,31 @@ export default [
{
path: 'login-log',
name: 'LoginLog',
component: () => import('@/views/audits/LoginLogList.vue'),
component: () => import('@/views/audits/LoginLogList'),
meta: { title: 'LoginLog' }
},
{
path: 'ftp-log',
name: 'FtpLog',
component: () => import('@/views/tree/index'),
component: () => import('@/views/audits/FTPLogList'),
meta: { title: 'FtpLog' }
},
{
path: 'operate-log',
name: 'OperateLog',
component: () => import('@/views/tree/index'),
component: () => import('@/views/audits/OperateLogList'),
meta: { title: 'OperateLog' }
},
{
path: 'password-change-log',
name: 'PasswordChangeLog',
component: () => import('@/views/tree/index'),
component: () => import('@/views/audits/PasswordChangeLogList'),
meta: { title: 'PasswordChangeLog' }
},
{
path: 'command-execution-log',
name: 'BatchCommand',
component: () => import('@/views/tree/index'),
component: () => import('@/views/audits/CommandExecutionList'),
meta: { title: 'BatchCommand' }
}
]