mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-22 02:51:41 +00:00
[Update] 初步实现组织管理Page
This commit is contained in:
parent
54fe95f938
commit
0c33c7cd59
@ -426,7 +426,7 @@
|
|||||||
"options": "选项",
|
"options": "选项",
|
||||||
"taskName": "任务名称",
|
"taskName": "任务名称",
|
||||||
"dateStart": "开始日期",
|
"dateStart": "开始日期",
|
||||||
"versionDetail": ""
|
"versionDetail": "版本详情"
|
||||||
},
|
},
|
||||||
"perms": {
|
"perms": {
|
||||||
"assetPermissions": "资产授权",
|
"assetPermissions": "资产授权",
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
<template>
|
|
||||||
<h1>hello</h1>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: 'Organization'
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
|
|
||||||
</style>
|
|
38
src/views/xpack/org/OrganizationDetail/index.vue
Normal file
38
src/views/xpack/org/OrganizationDetail/index.vue
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
<template>
|
||||||
|
<GenericDetailPage :object.sync="Organization" :active-menu.sync="config.activeMenu" v-bind="config" v-on="$listeners" @tab-click="TabClick">
|
||||||
|
<keep-alive>
|
||||||
|
<component :is="config.activeMenu" :object="Organization" />
|
||||||
|
</keep-alive>
|
||||||
|
</GenericDetailPage>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { GenericDetailPage, TabPage } from '@/layout/components'
|
||||||
|
import OrganizationDetail from './OrganizationDetail'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
GenericDetailPage,
|
||||||
|
OrganizationDetail,
|
||||||
|
TabPage
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
Organization: {},
|
||||||
|
config: {
|
||||||
|
activeMenu: 'OrganizationDetail',
|
||||||
|
submenu: [
|
||||||
|
{
|
||||||
|
title: this.$t('org.OrganizationDetail'),
|
||||||
|
name: 'OrganizationDetail'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
@ -24,6 +24,33 @@ export default {
|
|||||||
component: () => import('@/views/xpack/GatherUser'),
|
component: () => import('@/views/xpack/GatherUser'),
|
||||||
name: 'GatherUser',
|
name: 'GatherUser',
|
||||||
meta: { title: 'GatherUser' }
|
meta: { title: 'GatherUser' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'orgs',
|
||||||
|
component: () => import('@/views/xpack/org/OrganizationList'),
|
||||||
|
name: 'OrganizationList',
|
||||||
|
meta: { title: 'OrganizationList' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'orgs/create',
|
||||||
|
component: () => import('@/views/xpack/org/OrganizationCreateUpdate'),
|
||||||
|
name: 'OrganizationCreate',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: 'OrganizationCreate', activeMenu: '/xpack/orgs', action: 'create' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'orgs/:id/update',
|
||||||
|
component: () => import('@/views/xpack/org/OrganizationCreateUpdate'),
|
||||||
|
name: 'OrganizationUpdate',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: 'OrganizationUpdate', activeMenu: '/xpack/orgs', action: 'update' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'orgs/:id',
|
||||||
|
component: () => import('@/views/xpack/org/OrganizationDetail/index'),
|
||||||
|
name: 'OrganizationDetail',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: 'OrganizationDetail', activeMenu: '/xpack/orgs', action: 'detail' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user