fix: Fix link jump
1. Fix fip detail link 2. Fix lb listener detail link 3. Fix network qos policy detail link 4. Fix barematil node detail link Change-Id: Ib1cbd29182afb8ad15c073e25eecf53c8dd20fb8
This commit is contained in:
parent
d261aaf92a
commit
7af0a9e9c1
@ -147,7 +147,7 @@ const renderMenu = (t) => {
|
|||||||
{
|
{
|
||||||
path: /^\/compute\/baremetal-node-admin\/detail\/.[^/]+$/,
|
path: /^\/compute\/baremetal-node-admin\/detail\/.[^/]+$/,
|
||||||
name: t('Bare Metal Node Detail'),
|
name: t('Bare Metal Node Detail'),
|
||||||
key: 'baremetaNodeDetailAdmin',
|
key: 'baremetalNodeDetailAdmin',
|
||||||
routePath: '/compute/baremetal-node-admin/detail/:id',
|
routePath: '/compute/baremetal-node-admin/detail/:id',
|
||||||
level: 2,
|
level: 2,
|
||||||
},
|
},
|
||||||
|
@ -272,7 +272,7 @@ const renderMenu = (t) => {
|
|||||||
{
|
{
|
||||||
path: '/network/floatingip',
|
path: '/network/floatingip',
|
||||||
name: t('Floating IPs'),
|
name: t('Floating IPs'),
|
||||||
key: 'floatingip',
|
key: 'fip',
|
||||||
level: 1,
|
level: 1,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
|
@ -23,7 +23,7 @@ const renderMenu = (t) => {
|
|||||||
{
|
{
|
||||||
path: '/user/center',
|
path: '/user/center',
|
||||||
name: t('User Center'),
|
name: t('User Center'),
|
||||||
key: '/user',
|
key: 'userCenter',
|
||||||
icon: <HomeOutlined />,
|
icon: <HomeOutlined />,
|
||||||
level: 0,
|
level: 0,
|
||||||
hasBreadcrumb: false,
|
hasBreadcrumb: false,
|
||||||
@ -32,7 +32,7 @@ const renderMenu = (t) => {
|
|||||||
{
|
{
|
||||||
path: '/user/application-credentials',
|
path: '/user/application-credentials',
|
||||||
name: t('Application Credentials'),
|
name: t('Application Credentials'),
|
||||||
key: '/user/application-credentials',
|
key: 'applicationCredential',
|
||||||
level: 0,
|
level: 0,
|
||||||
icon: <UserOutlined />,
|
icon: <UserOutlined />,
|
||||||
children: [],
|
children: [],
|
||||||
|
@ -54,7 +54,7 @@ export default class BareMetalNode extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Node ID/Name'),
|
title: t('Node ID/Name'),
|
||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
routerName: 'baremetalNodeDetail',
|
routeName: 'baremetalNodeDetailAdmin',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Ironic Instance Name'),
|
title: t('Ironic Instance Name'),
|
||||||
|
@ -31,7 +31,7 @@ export class FloatingIpDetail extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get listUrl() {
|
get listUrl() {
|
||||||
return this.getRoutePath('floatingip');
|
return this.getRoutePath('fip');
|
||||||
}
|
}
|
||||||
|
|
||||||
get actionConfigs() {
|
get actionConfigs() {
|
||||||
|
@ -61,7 +61,7 @@ export default class Listeners extends Base {
|
|||||||
{
|
{
|
||||||
title: t('ID/Name'),
|
title: t('ID/Name'),
|
||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
routeName: this.getRouteName('lbDetail'),
|
routeName: this.getRouteName('lbListenerDetail'),
|
||||||
routeParamsFunc: (data) => {
|
routeParamsFunc: (data) => {
|
||||||
return {
|
return {
|
||||||
loadBalancerId: this.id,
|
loadBalancerId: this.id,
|
||||||
|
@ -30,7 +30,7 @@ export default class QoSPolicyDetail extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get listUrl() {
|
get listUrl() {
|
||||||
return this.getRoutePath('qosPolicy');
|
return this.getRoutePath('networkQos');
|
||||||
}
|
}
|
||||||
|
|
||||||
get actionConfigs() {
|
get actionConfigs() {
|
||||||
|
@ -28,6 +28,7 @@ const insertRouteMap = (record = {}) => {
|
|||||||
|
|
||||||
export const setRouteMap = (routes = []) => {
|
export const setRouteMap = (routes = []) => {
|
||||||
routes.forEach((r) => insertRouteMap(r));
|
routes.forEach((r) => insertRouteMap(r));
|
||||||
|
console.log('routeMap', routeMap);
|
||||||
return routeMap;
|
return routeMap;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user