Skip to content

Commit

Permalink
fix(frontend): tendbcluster、doris的tab缺失 TencentBlueKing#8175
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 26055
  • Loading branch information
royalpioneer authored and hLinx committed Dec 6, 2024
1 parent 67845e3 commit f817d7c
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@
type: ticketTypeMap[clusterType.value],
bk_biz_id: window.PROJECT_CONFIG.BIZ_ID,
},
query: {
from: String(route.name),
clusterType: clusterType.value,
},
});
} else if ([ClusterTypes.SQLSERVER_SINGLE, ClusterTypes.SQLSERVER_HA].includes(clusterType.value)) {
router.push({
Expand All @@ -205,13 +209,21 @@
ticketType: ticketTypeMap[clusterType.value],
bizId: window.PROJECT_CONFIG.BIZ_ID,
},
query: {
from: String(route.name),
clusterType: clusterType.value,
},
});
} else {
router.push({
name: 'createSpiderModule',
params: {
bizId: window.PROJECT_CONFIG.BIZ_ID,
},
query: {
from: String(route.name),
clusterType: clusterType.value,
},
});
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@
],
);
}
if (state.version) {
baseColumns[0].push({
label: t('Spider版本'),
render: () => state.data.version,
});
}
return baseColumns;
});
const detailData = computed(() => {
Expand Down
8 changes: 8 additions & 0 deletions dbm-ui/frontend/src/views/db-configure/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ const routes: RouteRecordRaw[] = [
},
component: () => import('@views/db-manage/tendb-cluster/apply/CreateModule.vue'),
},
{
name: 'SqlServerCreateDbModule',
path: 'sqlserver-create-db-module/:ticketType/:bizId/',
meta: {
navName: t('新建模块'),
},
component: () => import('@views/service-apply/create-db-module/SqlServerCreateDbModule.vue'),
},
],
},
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,17 @@

defineExpose({
routerBack() {
if (!route.query.from) {
router.push({
name: 'serviceApply',
});
return;
}
router.push({
name: 'DbConfigureList',
name: String(route.query.from),
params: {
clusterType: route.query.clusterType as string,
},
});
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,17 @@

defineExpose({
routerBack() {
if (!route.query.from) {
router.push({
name: 'serviceApply',
});
return;
}
router.push({
name: 'DbConfigureList',
name: String(route.query.from),
params: {
clusterType: route.query.clusterType as string,
},
});
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@
}
router.push({
name: String(route.query.from),
params: {
clusterType: route.query.clusterType as string,
},
});
},
});
Expand Down

0 comments on commit f817d7c

Please sign in to comment.