mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-05 19:26:48 +00:00
[Add] GatherUser page
This commit is contained in:
parent
10d4f1f04a
commit
7d89ea686f
@ -1,13 +1,39 @@
|
||||
<template>
|
||||
<h1>hello</h1>
|
||||
<GenericTreeListPage :table-config="tableConfig" :tree-setting="treeSetting" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import GenericTreeListPage from '@/layout/components/GenericTreeListPage/index'
|
||||
|
||||
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>
|
||||
|
||||
<style scoped>
|
||||
<style>
|
||||
|
||||
</style>
|
||||
|
@ -18,6 +18,12 @@ export default {
|
||||
component: () => import('@/views/xpack/License.vue'),
|
||||
name: 'License',
|
||||
meta: { title: 'License' }
|
||||
},
|
||||
{
|
||||
path: 'gathered-users',
|
||||
component: () => import('@/views/xpack/GatherUser'),
|
||||
name: 'GatherUser',
|
||||
meta: { title: 'GatherUser' }
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user