[Add] GatherUser page

This commit is contained in:
xinwen 2020-05-19 20:49:27 +08:00
parent 10d4f1f04a
commit 7d89ea686f
2 changed files with 35 additions and 3 deletions

View File

@ -1,13 +1,39 @@
<template> <template>
<h1>hello</h1> <GenericTreeListPage :table-config="tableConfig" :tree-setting="treeSetting" />
</template> </template>
<script> <script>
import GenericTreeListPage from '@/layout/components/GenericTreeListPage/index'
export default { export default {
name: 'GatherUser' components: {
GenericTreeListPage
},
data() {
return {
treeSetting: {
showMenu: true,
showRefresh: true,
showAssets: true,
url: '/api/v1/assets/gathered-users/',
nodeUrl: '/api/v1/assets/nodes/',
// ?assets=0. =1
treeUrl: '/api/v1/assets/nodes/children/tree/?assets=0'
},
tableConfig: {
url: '/api/v1/assets/gathered-users/',
hasTree: true,
columns: [
'hostname', 'ip', 'username', 'date_last_login', 'present', 'ip_last_login', 'date_updated'
],
columnsMeta: {
}
}
}
}
} }
</script> </script>
<style scoped> <style>
</style> </style>

View File

@ -18,6 +18,12 @@ export default {
component: () => import('@/views/xpack/License.vue'), component: () => import('@/views/xpack/License.vue'),
name: 'License', name: 'License',
meta: { title: 'License' } meta: { title: 'License' }
},
{
path: 'gathered-users',
component: () => import('@/views/xpack/GatherUser'),
name: 'GatherUser',
meta: { title: 'GatherUser' }
} }
] ]
} }