Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
9a33afe6
authored
2025-04-06 17:43:40 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
BI报表
1 parent
037a3ccd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
289 deletions
src/router/modules/dataCatalog.ts
src/router/modules/dataMeta.ts
src/router/routes.ts
src/router/modules/dataCatalog.ts
deleted
100644 → 0
View file @
037a3cc
import
type
{
RouteRecordRaw
}
from
'vue-router'
function
Layout
()
{
return
import
(
'@/layouts/index.vue'
)
}
const
routes
:
RouteRecordRaw
[]
=
[
{
path
:
'/data-catalog/data-warehouse'
,
component
:
Layout
,
meta
:
{
title
:
'数仓目录'
,
icon
:
'sidebar-videos'
,
},
children
:
[
{
path
:
''
,
name
:
'dataWarehouse'
,
component
:
()
=>
import
(
'@/views/data_catalog/dataWarehouse.vue'
),
meta
:
{
title
:
'数仓目录'
,
sidebar
:
false
,
breadcrumb
:
false
,
cache
:
true
}
},
{
path
:
'table-create-manual'
,
name
:
'tableCreateManual'
,
component
:
()
=>
import
(
'@/views/data_catalog/tableCreateManual.vue'
),
meta
:
{
title
:
'手动新建表'
,
sidebar
:
false
,
breadcrumb
:
false
,
cache
:
true
,
reuse
:
true
},
beforeEnter
:
(
to
,
from
)
=>
{
if
(
to
.
query
.
isLook
)
{
to
.
meta
.
title
=
`详情-`
;
return
;
}
if
(
to
.
query
.
domainName
)
{
to
.
meta
.
title
=
`手动新建表(
${
to
.
query
.
domainName
}
)`
;
to
.
meta
.
editPage
=
true
;
}
else
if
(
to
.
query
.
guid
)
{
to
.
meta
.
title
=
`编辑-`
;
to
.
meta
.
editPage
=
true
;
}
}
},
{
path
:
'dim-table-create-manual'
,
name
:
'dimTableCreateManual'
,
component
:
()
=>
import
(
'@/views/data_catalog/dimTableCreateManual.vue'
),
meta
:
{
title
:
'手动新建表'
,
sidebar
:
false
,
breadcrumb
:
false
,
cache
:
true
,
reuse
:
true
},
beforeEnter
:
(
to
,
from
)
=>
{
if
(
to
.
query
.
isLook
)
{
to
.
meta
.
title
=
`详情-`
;
return
;
}
if
(
to
.
query
.
domainName
)
{
to
.
meta
.
title
=
`手动新建表(
${
to
.
query
.
domainName
}
)`
;
to
.
meta
.
editPage
=
true
;
}
else
if
(
to
.
query
.
guid
)
{
to
.
meta
.
title
=
`编辑-`
;
to
.
meta
.
editPage
=
true
;
}
}
},
{
path
:
'table-create-existing'
,
name
:
'tableCreateExisting'
,
component
:
()
=>
import
(
'@/views/data_catalog/tableCreateExisting.vue'
),
meta
:
{
title
:
'已有表新建'
,
sidebar
:
false
,
breadcrumb
:
false
,
cache
:
true
,
reuse
:
true
},
beforeEnter
:
(
to
,
from
)
=>
{
if
(
to
.
query
.
domainName
)
{
to
.
meta
.
title
=
`已有表新建(
${
to
.
query
.
domainName
}
)`
;
to
.
meta
.
editPage
=
true
;
}
}
},
{
path
:
'table-sort-existing-data'
,
name
:
'tableSortExistingData'
,
component
:
()
=>
import
(
'@/views/data_catalog/tableSortExisting.vue'
),
meta
:
{
title
:
'已有表分类'
,
sidebar
:
false
,
breadcrumb
:
false
,
cache
:
true
,
reuse
:
true
},
beforeEnter
:
(
to
,
from
)
=>
{
if
(
to
.
query
.
domainName
)
{
to
.
meta
.
title
=
`已有表分类(
${
to
.
query
.
domainName
}
)`
;
to
.
meta
.
editPage
=
true
;
}
else
if
(
to
.
query
.
guid
)
{
to
.
meta
.
title
=
`编辑-`
;
to
.
meta
.
editPage
=
true
;
}
}
},
{
path
:
'table-sort-existing-edit'
,
name
:
'tableSortExistingEdit'
,
component
:
()
=>
import
(
'@/views/data_catalog/tableSortExistingEdit.vue'
),
meta
:
{
title
:
'编辑'
,
sidebar
:
false
,
breadcrumb
:
false
,
cache
:
true
,
reuse
:
true
},
beforeEnter
:
(
to
,
from
)
=>
{
if
(
to
.
query
.
isLook
)
{
to
.
meta
.
title
=
`详情-`
;
return
;
}
if
(
to
.
query
.
guid
)
{
to
.
meta
.
title
=
`编辑-`
;
to
.
meta
.
editPage
=
true
;
}
}
},
{
path
:
'table-create-file'
,
name
:
'tableCreateFile'
,
component
:
()
=>
import
(
'@/views/data_catalog/tableCreateFile.vue'
),
meta
:
{
title
:
'根据文件新建'
,
sidebar
:
false
,
breadcrumb
:
false
,
cache
:
true
,
reuse
:
true
},
beforeEnter
:
(
to
,
from
)
=>
{
if
(
to
.
query
.
domainName
)
{
to
.
meta
.
title
=
`根据文件新建(
${
to
.
query
.
domainName
}
)`
;
}
else
if
(
to
.
query
.
guid
)
{
to
.
meta
.
title
=
`编辑-`
;
to
.
meta
.
editPage
=
true
;
}
}
},
{
path
:
'tableDataView'
,
name
:
'tableDataView'
,
component
:
()
=>
import
(
'@/views/data_catalog/tableDataView.vue'
),
meta
:
{
title
:
'查看数据'
,
sidebar
:
false
,
breadcrumb
:
false
,
cache
:
true
,
reuse
:
true
},
beforeEnter
:
(
to
,
from
)
=>
{
if
(
to
.
query
.
id
)
{
to
.
meta
.
title
=
`查看数据-
${
to
.
query
.
name
}
(
${
to
.
query
.
domainName
}
)`
;
}
}
},
{
path
:
'import-data'
,
name
:
'importData'
,
component
:
()
=>
import
(
'@/views/data_catalog/importData.vue'
),
meta
:
{
title
:
'文件导入'
,
sidebar
:
false
,
breadcrumb
:
false
,
cache
:
true
,
reuse
:
true
},
beforeEnter
:
(
to
,
from
)
=>
{
if
(
to
.
query
.
bizGuid
)
{
to
.
meta
.
title
=
`文件导入-
${
to
.
query
.
name
}
(
${
to
.
query
.
domainName
}
)`
;
}
}
},
{
path
:
'import-file1'
,
name
:
'importFile1'
,
component
:
()
=>
import
(
'@/views/importFile.vue'
),
meta
:
{
title
:
'导入数据'
,
sidebar
:
false
,
breadcrumb
:
false
,
cache
:
true
,
reuse
:
true
},
beforeEnter
:
(
to
,
from
)
=>
{
if
(
to
.
query
.
bizGuid
)
{
to
.
meta
.
title
=
`导入数据-
${
to
.
query
.
name
}
(
${
to
.
query
.
domainName
}
)`
;
}
}
},
{
path
:
'syncTableStructure'
,
name
:
'syncTableStructure'
,
component
:
()
=>
import
(
'@/views/data_catalog/syncTableStructure.vue'
),
meta
:
{
title
:
'同步表结构'
,
sidebar
:
false
,
breadcrumb
:
false
,
cache
:
true
,
reuse
:
true
},
beforeEnter
:
(
to
,
from
)
=>
{
if
(
to
.
query
.
id
)
{
to
.
meta
.
title
=
`同步表结构-`
;
}
}
},
{
path
:
'processDetail'
,
name
:
'subjectProcessDetail'
,
component
:
()
=>
import
(
'@/views/data_catalog/detail_subjectTable.vue'
),
meta
:
{
title
:
'流程详情'
,
sidebar
:
false
,
breadcrumb
:
false
,
cache
:
true
,
reuse
:
true
},
},
],
},
// {
// path: '/data-catalog/budgetDataIndex',
// component: Layout,
// meta: {
// title: '资源看板',
// icon: 'sidebar-videos',
// },
// children: [
// {
// path: '',
// name: 'budgetDataIndex',
// component: () => import('@/views/data_catalog/budgetDataIndex.vue'),
// meta: {
// title: '资源看板',
// sidebar: false,
// breadcrumb: false,
// cache: true,
// reuse: true
// },
// }
// ]
// },
{
path
:
'/data-catalog/report'
,
component
:
Layout
,
meta
:
{
title
:
'报表查看'
,
icon
:
'sidebar-videos'
,
},
children
:
[
{
path
:
'budgetDataIndex'
,
name
:
'budgetDataIndex'
,
component
:
()
=>
import
(
'@/views/data_catalog/budgetDataIndex.vue'
),
meta
:
{
title
:
''
,
sidebar
:
false
,
breadcrumb
:
false
,
cache
:
true
,
reuse
:
true
},
}
]
}
]
export
default
routes
src/router/modules/dataMeta.ts
View file @
9a33afe
...
...
@@ -133,6 +133,28 @@ const routes: RouteRecordRaw[] = [
},
],
},
{
path
:
'/data-catalog/report'
,
component
:
Layout
,
meta
:
{
title
:
'报表查看'
,
icon
:
'sidebar-videos'
,
},
children
:
[
{
path
:
'budgetDataIndex'
,
name
:
'budgetDataIndex'
,
component
:
()
=>
import
(
'@/views/data_catalog/budgetDataIndex.vue'
),
meta
:
{
title
:
''
,
sidebar
:
false
,
breadcrumb
:
false
,
cache
:
true
,
reuse
:
true
},
}
]
}
]
export
default
routes
...
...
src/router/routes.ts
View file @
9a33afe
...
...
@@ -9,7 +9,6 @@ import AssetIndex from './modules/assetIndex';
import
DataAssetRegistry
from
'./modules/dataAssetRegistry'
;
import
DataEntry
from
'./modules/dataEntry'
;
import
SecurityMenu
from
'./modules/securityMenu'
;
import
DataCatalog
from
'./modules/dataCatalog'
import
type
{
Route
}
from
'#/global'
import
useSettingsStore
from
'@/store/modules/settings'
...
...
@@ -113,7 +112,6 @@ const asyncRoutes: RouteRecordRaw[] = [
...
DataMeta
,
...
DataQuality
,
...
DataInventory
,
...
DataCatalog
,
]
const
constantRoutesByFilesystem
=
generatedRoutes
.
filter
((
item
)
=>
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment