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:
Jingwei.Zhang 2021-11-12 16:54:25 +08:00
parent d261aaf92a
commit 7af0a9e9c1
8 changed files with 9 additions and 8 deletions

View File

@ -147,7 +147,7 @@ const renderMenu = (t) => {
{
path: /^\/compute\/baremetal-node-admin\/detail\/.[^/]+$/,
name: t('Bare Metal Node Detail'),
key: 'baremetaNodeDetailAdmin',
key: 'baremetalNodeDetailAdmin',
routePath: '/compute/baremetal-node-admin/detail/:id',
level: 2,
},

View File

@ -272,7 +272,7 @@ const renderMenu = (t) => {
{
path: '/network/floatingip',
name: t('Floating IPs'),
key: 'floatingip',
key: 'fip',
level: 1,
children: [
{

View File

@ -23,7 +23,7 @@ const renderMenu = (t) => {
{
path: '/user/center',
name: t('User Center'),
key: '/user',
key: 'userCenter',
icon: <HomeOutlined />,
level: 0,
hasBreadcrumb: false,
@ -32,7 +32,7 @@ const renderMenu = (t) => {
{
path: '/user/application-credentials',
name: t('Application Credentials'),
key: '/user/application-credentials',
key: 'applicationCredential',
level: 0,
icon: <UserOutlined />,
children: [],

View File

@ -54,7 +54,7 @@ export default class BareMetalNode extends Base {
{
title: t('Node ID/Name'),
dataIndex: 'name',
routerName: 'baremetalNodeDetail',
routeName: 'baremetalNodeDetailAdmin',
},
{
title: t('Ironic Instance Name'),

View File

@ -31,7 +31,7 @@ export class FloatingIpDetail extends Base {
}
get listUrl() {
return this.getRoutePath('floatingip');
return this.getRoutePath('fip');
}
get actionConfigs() {

View File

@ -61,7 +61,7 @@ export default class Listeners extends Base {
{
title: t('ID/Name'),
dataIndex: 'name',
routeName: this.getRouteName('lbDetail'),
routeName: this.getRouteName('lbListenerDetail'),
routeParamsFunc: (data) => {
return {
loadBalancerId: this.id,

View File

@ -30,7 +30,7 @@ export default class QoSPolicyDetail extends Base {
}
get listUrl() {
return this.getRoutePath('qosPolicy');
return this.getRoutePath('networkQos');
}
get actionConfigs() {

View File

@ -28,6 +28,7 @@ const insertRouteMap = (record = {}) => {
export const setRouteMap = (routes = []) => {
routes.forEach((r) => insertRouteMap(r));
console.log('routeMap', routeMap);
return routeMap;
};