[improvement][headless-fe] Revised the interaction for semantic modeling routing and implemented the initial version of metric management switching.

This commit is contained in:
tristanliu
2024-11-26 20:28:24 +08:00
parent 0edadd01eb
commit 2eca2d1c14
23 changed files with 571 additions and 895 deletions

View File

@@ -62,27 +62,85 @@ const ROUTES = [
envEnableList: [ENV_KEY.SEMANTIC],
routes: [
{
path: '/model/:domainId',
component: './SemanticModel/DomainManager',
envEnableList: [ENV_KEY.SEMANTIC],
path: '/model/',
redirect: '/model/domain',
},
{
path: '/model/domain/',
component: './SemanticModel/OverviewContainer',
routes: [
{
path: '/model/:domainId/:menuKey',
path: '/model/domain/:domainId',
component: './SemanticModel/DomainManager',
routes: [
{
path: '/model/domain/:domainId/:menuKey',
component: './SemanticModel/DomainManager',
},
],
},
{
path: '/model/domain/manager/:domainId/:modelId',
component: './SemanticModel/ModelManager',
routes: [
{
path: '/model/domain/manager/:domainId/:modelId/:menuKey',
component: './SemanticModel/ModelManager',
},
],
},
],
},
{
path: '/model/manager/:domainId/:modelId',
component: './SemanticModel/ModelManager',
path: '/model/metric/:domainId/:modelId/:metricId',
component: './SemanticModel/Metric/Edit',
envEnableList: [ENV_KEY.SEMANTIC],
routes: [
{
path: '/model/manager/:domainId/:modelId/:menuKey',
component: './SemanticModel/ModelManager',
},
],
// routes: [
// {
// path: '/model/manager/:domainId/:modelId/:menuKey',
// component: './SemanticModel/ModelManager',
// },
// ],
},
// {
// path: '/model/manager/',
// component: './SemanticModel/OverviewContainer',
// routes: [
// {
// path: '/model/manager/:domainId/:modelId',
// component: './SemanticModel/ModelManager',
// routes: [
// {
// path: '/model/manager/:domainId/:modelId/:menuKey',
// component: './SemanticModel/ModelManager',
// },
// ],
// },
// ],
// },
// {
// path: '/model/:domainId',
// component: './SemanticModel/DomainManager',
// envEnableList: [ENV_KEY.SEMANTIC],
// routes: [
// {
// path: '/model/:domainId/:menuKey',
// component: './SemanticModel/DomainManager',
// },
// ],
// },
// {
// path: '/model/manager/:domainId/:modelId',
// component: './SemanticModel/ModelManager',
// envEnableList: [ENV_KEY.SEMANTIC],
// routes: [
// {
// path: '/model/manager/:domainId/:modelId/:menuKey',
// component: './SemanticModel/ModelManager',
// },
// ],
// },
// {
// path: '/model/:domainId/:modelId/:menuKey',
// component: './SemanticModel/DomainManager',