mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-06 19:48:44 +00:00
feat: 移动 xpack/ChangeAuthPlan > accounts/CahngeAuthPlan
This commit is contained in:
parent
27b39ad910
commit
a1ad901b40
@ -82,5 +82,46 @@ export default [
|
|||||||
hidden: true
|
hidden: true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'change-auth-plan',
|
||||||
|
component: empty,
|
||||||
|
meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlan'), activeMenu: '/accounts/change-auth-plan/plan' },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'plan',
|
||||||
|
component: () => import('@/views/accounts/ChangeAuthPlan/ChangeAuthPlanList.vue'),
|
||||||
|
name: 'ChangeAuthPlanList',
|
||||||
|
meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlan'), activeMenu: '/accounts/change-auth-plan/plan' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'plan/create',
|
||||||
|
component: () => import('@/views/accounts/ChangeAuthPlan/ChangeAuthPlanCreateUpdate.vue'),
|
||||||
|
name: 'ChangeAuthPlanCreate',
|
||||||
|
meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlanCreate'), activeMenu: '/accounts/change-auth-plan/plan', action: 'create' },
|
||||||
|
hidden: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'plan/:id/update',
|
||||||
|
component: () => import('@/views/accounts/ChangeAuthPlan/ChangeAuthPlanCreateUpdate.vue'),
|
||||||
|
name: 'ChangeAuthPlanUpdate',
|
||||||
|
meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlanUpdate'), activeMenu: '/accounts/change-auth-plan/plan', action: 'update' },
|
||||||
|
hidden: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'plan/:id',
|
||||||
|
component: () => import('@/views/accounts/ChangeAuthPlan/ChangeAuthPlanDetail/index.vue'),
|
||||||
|
name: 'ChangeAuthPlanDetail',
|
||||||
|
meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlan'), activeMenu: '/accounts/change-auth-plan/plan' },
|
||||||
|
hidden: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'plan-execution/:id',
|
||||||
|
component: () => import('@/views/accounts/ChangeAuthPlan/ChangeAuthPlanDetail/ChangeAuthPlanExecution/ChangeAuthPlanExecutionDetail/index.vue'),
|
||||||
|
name: 'ChangeAuthPlanExecutionDetail',
|
||||||
|
meta: { title: i18n.t('xpack.ChangeAuthPlan.ExecutionDetail'), activeMenu: '/accounts/change-auth-plan/plan' },
|
||||||
|
hidden: true
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -88,11 +88,14 @@ export function toSafeLocalDateStr(d) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getApiPath(that) {
|
export function getApiPath(that) {
|
||||||
const pagePath = that.$route.path
|
let pagePath = that.$route.path
|
||||||
const isOrgPath = pagePath.split('/').indexOf('orgs') !== -1
|
const pagePathArray = pagePath.split('/')
|
||||||
if (isOrgPath) {
|
if (pagePathArray.indexOf('orgs') !== -1) {
|
||||||
return `/api/v1/orgs/orgs/${pagePath.split('/').pop()}/`
|
pagePathArray[pagePathArray.indexOf('xpack')] = 'orgs'
|
||||||
|
} else if (pagePathArray.indexOf('gathered-user') !== -1 || pagePathArray.indexOf('change-auth-plan') !== -1) {
|
||||||
|
pagePathArray[pagePathArray.indexOf('accounts')] = 'xpack'
|
||||||
}
|
}
|
||||||
|
pagePath = pagePathArray.join('/')
|
||||||
return `/api/v1${pagePath}/`
|
return `/api/v1${pagePath}/`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user