BI报表
Showing
3 changed files
with
22 additions
and
289 deletions
src/router/modules/dataCatalog.ts
deleted
100644 → 0
| 1 | import type { RouteRecordRaw } from 'vue-router' | ||
| 2 | |||
| 3 | function Layout() { | ||
| 4 | return import('@/layouts/index.vue') | ||
| 5 | } | ||
| 6 | |||
| 7 | const routes: RouteRecordRaw[] = [ | ||
| 8 | { | ||
| 9 | path: '/data-catalog/data-warehouse', | ||
| 10 | component: Layout, | ||
| 11 | meta: { | ||
| 12 | title: '数仓目录', | ||
| 13 | icon: 'sidebar-videos', | ||
| 14 | }, | ||
| 15 | children: [ | ||
| 16 | { | ||
| 17 | path: '', | ||
| 18 | name: 'dataWarehouse', | ||
| 19 | component: () => import('@/views/data_catalog/dataWarehouse.vue'), | ||
| 20 | meta: { | ||
| 21 | title: '数仓目录', | ||
| 22 | sidebar: false, | ||
| 23 | breadcrumb: false, | ||
| 24 | cache: true | ||
| 25 | } | ||
| 26 | }, | ||
| 27 | { | ||
| 28 | path: 'table-create-manual', | ||
| 29 | name: 'tableCreateManual', | ||
| 30 | component: () => import('@/views/data_catalog/tableCreateManual.vue'), | ||
| 31 | meta: { | ||
| 32 | title: '手动新建表', | ||
| 33 | sidebar: false, | ||
| 34 | breadcrumb: false, | ||
| 35 | cache: true, | ||
| 36 | reuse: true | ||
| 37 | }, | ||
| 38 | beforeEnter: (to, from) => { | ||
| 39 | if (to.query.isLook) { | ||
| 40 | to.meta.title = `详情-`; | ||
| 41 | return; | ||
| 42 | } | ||
| 43 | if (to.query.domainName) { | ||
| 44 | to.meta.title = `手动新建表(${to.query.domainName})`; | ||
| 45 | to.meta.editPage = true; | ||
| 46 | } else if (to.query.guid) { | ||
| 47 | to.meta.title = `编辑-`; | ||
| 48 | to.meta.editPage = true; | ||
| 49 | } | ||
| 50 | } | ||
| 51 | }, | ||
| 52 | { | ||
| 53 | path: 'dim-table-create-manual', | ||
| 54 | name: 'dimTableCreateManual', | ||
| 55 | component: () => import('@/views/data_catalog/dimTableCreateManual.vue'), | ||
| 56 | meta: { | ||
| 57 | title: '手动新建表', | ||
| 58 | sidebar: false, | ||
| 59 | breadcrumb: false, | ||
| 60 | cache: true, | ||
| 61 | reuse: true | ||
| 62 | }, | ||
| 63 | beforeEnter: (to, from) => { | ||
| 64 | if (to.query.isLook) { | ||
| 65 | to.meta.title = `详情-`; | ||
| 66 | return; | ||
| 67 | } | ||
| 68 | if (to.query.domainName) { | ||
| 69 | to.meta.title = `手动新建表(${to.query.domainName})`; | ||
| 70 | to.meta.editPage = true; | ||
| 71 | } else if (to.query.guid) { | ||
| 72 | to.meta.title = `编辑-`; | ||
| 73 | to.meta.editPage = true; | ||
| 74 | } | ||
| 75 | } | ||
| 76 | }, | ||
| 77 | { | ||
| 78 | path: 'table-create-existing', | ||
| 79 | name: 'tableCreateExisting', | ||
| 80 | component: () => import('@/views/data_catalog/tableCreateExisting.vue'), | ||
| 81 | meta: { | ||
| 82 | title: '已有表新建', | ||
| 83 | sidebar: false, | ||
| 84 | breadcrumb: false, | ||
| 85 | cache: true, | ||
| 86 | reuse: true | ||
| 87 | }, | ||
| 88 | beforeEnter: (to, from) => { | ||
| 89 | if (to.query.domainName) { | ||
| 90 | to.meta.title = `已有表新建(${to.query.domainName})`; | ||
| 91 | to.meta.editPage = true; | ||
| 92 | } | ||
| 93 | } | ||
| 94 | }, | ||
| 95 | { | ||
| 96 | path: 'table-sort-existing-data', | ||
| 97 | name: 'tableSortExistingData', | ||
| 98 | component: () => import('@/views/data_catalog/tableSortExisting.vue'), | ||
| 99 | meta: { | ||
| 100 | title: '已有表分类', | ||
| 101 | sidebar: false, | ||
| 102 | breadcrumb: false, | ||
| 103 | cache: true, | ||
| 104 | reuse: true | ||
| 105 | }, | ||
| 106 | beforeEnter: (to, from) => { | ||
| 107 | if (to.query.domainName) { | ||
| 108 | to.meta.title = `已有表分类(${to.query.domainName})`; | ||
| 109 | to.meta.editPage = true; | ||
| 110 | } else if (to.query.guid) { | ||
| 111 | to.meta.title = `编辑-`; | ||
| 112 | to.meta.editPage = true; | ||
| 113 | } | ||
| 114 | } | ||
| 115 | }, | ||
| 116 | { | ||
| 117 | path: 'table-sort-existing-edit', | ||
| 118 | name: 'tableSortExistingEdit', | ||
| 119 | component: () => import('@/views/data_catalog/tableSortExistingEdit.vue'), | ||
| 120 | meta: { | ||
| 121 | title: '编辑', | ||
| 122 | sidebar: false, | ||
| 123 | breadcrumb: false, | ||
| 124 | cache: true, | ||
| 125 | reuse: true | ||
| 126 | }, | ||
| 127 | beforeEnter: (to, from) => { | ||
| 128 | if (to.query.isLook) { | ||
| 129 | to.meta.title = `详情-`; | ||
| 130 | return; | ||
| 131 | } | ||
| 132 | if (to.query.guid) { | ||
| 133 | to.meta.title = `编辑-`; | ||
| 134 | to.meta.editPage = true; | ||
| 135 | } | ||
| 136 | } | ||
| 137 | }, | ||
| 138 | { | ||
| 139 | path: 'table-create-file', | ||
| 140 | name: 'tableCreateFile', | ||
| 141 | component: () => import('@/views/data_catalog/tableCreateFile.vue'), | ||
| 142 | meta: { | ||
| 143 | title: '根据文件新建', | ||
| 144 | sidebar: false, | ||
| 145 | breadcrumb: false, | ||
| 146 | cache: true, | ||
| 147 | reuse: true | ||
| 148 | }, | ||
| 149 | beforeEnter: (to, from) => { | ||
| 150 | if (to.query.domainName) { | ||
| 151 | to.meta.title = `根据文件新建(${to.query.domainName})`; | ||
| 152 | } else if (to.query.guid) { | ||
| 153 | to.meta.title = `编辑-`; | ||
| 154 | to.meta.editPage = true; | ||
| 155 | } | ||
| 156 | } | ||
| 157 | }, | ||
| 158 | { | ||
| 159 | path: 'tableDataView', | ||
| 160 | name: 'tableDataView', | ||
| 161 | component: () => import('@/views/data_catalog/tableDataView.vue'), | ||
| 162 | meta: { | ||
| 163 | title: '查看数据', | ||
| 164 | sidebar: false, | ||
| 165 | breadcrumb: false, | ||
| 166 | cache: true, | ||
| 167 | reuse: true | ||
| 168 | }, | ||
| 169 | beforeEnter: (to, from) => { | ||
| 170 | if (to.query.id) { | ||
| 171 | to.meta.title = `查看数据-${to.query.name}(${to.query.domainName})`; | ||
| 172 | } | ||
| 173 | } | ||
| 174 | }, | ||
| 175 | { | ||
| 176 | path: 'import-data', | ||
| 177 | name: 'importData', | ||
| 178 | component: () => import('@/views/data_catalog/importData.vue'), | ||
| 179 | meta: { | ||
| 180 | title: '文件导入', | ||
| 181 | sidebar: false, | ||
| 182 | breadcrumb: false, | ||
| 183 | cache: true, | ||
| 184 | reuse: true | ||
| 185 | }, | ||
| 186 | beforeEnter: (to, from) => { | ||
| 187 | if (to.query.bizGuid) { | ||
| 188 | to.meta.title = `文件导入-${to.query.name}(${to.query.domainName})`; | ||
| 189 | } | ||
| 190 | } | ||
| 191 | }, | ||
| 192 | { | ||
| 193 | path: 'import-file1', | ||
| 194 | name: 'importFile1', | ||
| 195 | component: () => import('@/views/importFile.vue'), | ||
| 196 | meta: { | ||
| 197 | title: '导入数据', | ||
| 198 | sidebar: false, | ||
| 199 | breadcrumb: false, | ||
| 200 | cache: true, | ||
| 201 | reuse: true | ||
| 202 | }, | ||
| 203 | beforeEnter: (to, from) => { | ||
| 204 | if (to.query.bizGuid) { | ||
| 205 | to.meta.title = `导入数据-${to.query.name}(${to.query.domainName})`; | ||
| 206 | } | ||
| 207 | } | ||
| 208 | }, | ||
| 209 | |||
| 210 | { | ||
| 211 | path: 'syncTableStructure', | ||
| 212 | name: 'syncTableStructure', | ||
| 213 | component: () => import('@/views/data_catalog/syncTableStructure.vue'), | ||
| 214 | meta: { | ||
| 215 | title: '同步表结构', | ||
| 216 | sidebar: false, | ||
| 217 | breadcrumb: false, | ||
| 218 | cache: true, | ||
| 219 | reuse: true | ||
| 220 | }, | ||
| 221 | beforeEnter: (to, from) => { | ||
| 222 | if (to.query.id) { | ||
| 223 | to.meta.title = `同步表结构-`; | ||
| 224 | } | ||
| 225 | } | ||
| 226 | }, | ||
| 227 | { | ||
| 228 | path: 'processDetail', | ||
| 229 | name: 'subjectProcessDetail', | ||
| 230 | component: () => import('@/views/data_catalog/detail_subjectTable.vue'), | ||
| 231 | meta: { | ||
| 232 | title: '流程详情', | ||
| 233 | sidebar: false, | ||
| 234 | breadcrumb: false, | ||
| 235 | cache: true, | ||
| 236 | reuse: true | ||
| 237 | }, | ||
| 238 | }, | ||
| 239 | ], | ||
| 240 | }, | ||
| 241 | // { | ||
| 242 | // path: '/data-catalog/budgetDataIndex', | ||
| 243 | // component: Layout, | ||
| 244 | // meta: { | ||
| 245 | // title: '资源看板', | ||
| 246 | // icon: 'sidebar-videos', | ||
| 247 | // }, | ||
| 248 | // children: [ | ||
| 249 | // { | ||
| 250 | // path: '', | ||
| 251 | // name: 'budgetDataIndex', | ||
| 252 | // component: () => import('@/views/data_catalog/budgetDataIndex.vue'), | ||
| 253 | // meta: { | ||
| 254 | // title: '资源看板', | ||
| 255 | // sidebar: false, | ||
| 256 | // breadcrumb: false, | ||
| 257 | // cache: true, | ||
| 258 | // reuse: true | ||
| 259 | // }, | ||
| 260 | // } | ||
| 261 | // ] | ||
| 262 | // }, | ||
| 263 | { | ||
| 264 | path: '/data-catalog/report', | ||
| 265 | component: Layout, | ||
| 266 | meta: { | ||
| 267 | title: '报表查看', | ||
| 268 | icon: 'sidebar-videos', | ||
| 269 | }, | ||
| 270 | children: [ | ||
| 271 | { | ||
| 272 | path: 'budgetDataIndex', | ||
| 273 | name: 'budgetDataIndex', | ||
| 274 | component: () => import('@/views/data_catalog/budgetDataIndex.vue'), | ||
| 275 | meta: { | ||
| 276 | title: '', | ||
| 277 | sidebar: false, | ||
| 278 | breadcrumb: false, | ||
| 279 | cache: true, | ||
| 280 | reuse: true | ||
| 281 | }, | ||
| 282 | } | ||
| 283 | ] | ||
| 284 | } | ||
| 285 | ] | ||
| 286 | |||
| 287 | export default routes |
| ... | @@ -133,6 +133,28 @@ const routes: RouteRecordRaw[] = [ | ... | @@ -133,6 +133,28 @@ const routes: RouteRecordRaw[] = [ |
| 133 | }, | 133 | }, |
| 134 | ], | 134 | ], |
| 135 | }, | 135 | }, |
| 136 | { | ||
| 137 | path: '/data-catalog/report', | ||
| 138 | component: Layout, | ||
| 139 | meta: { | ||
| 140 | title: '报表查看', | ||
| 141 | icon: 'sidebar-videos', | ||
| 142 | }, | ||
| 143 | children: [ | ||
| 144 | { | ||
| 145 | path: 'budgetDataIndex', | ||
| 146 | name: 'budgetDataIndex', | ||
| 147 | component: () => import('@/views/data_catalog/budgetDataIndex.vue'), | ||
| 148 | meta: { | ||
| 149 | title: '', | ||
| 150 | sidebar: false, | ||
| 151 | breadcrumb: false, | ||
| 152 | cache: true, | ||
| 153 | reuse: true | ||
| 154 | }, | ||
| 155 | } | ||
| 156 | ] | ||
| 157 | } | ||
| 136 | ] | 158 | ] |
| 137 | 159 | ||
| 138 | export default routes | 160 | export default routes | ... | ... |
| ... | @@ -9,7 +9,6 @@ import AssetIndex from './modules/assetIndex'; | ... | @@ -9,7 +9,6 @@ import AssetIndex from './modules/assetIndex'; |
| 9 | import DataAssetRegistry from './modules/dataAssetRegistry'; | 9 | import DataAssetRegistry from './modules/dataAssetRegistry'; |
| 10 | import DataEntry from './modules/dataEntry'; | 10 | import DataEntry from './modules/dataEntry'; |
| 11 | import SecurityMenu from './modules/securityMenu'; | 11 | import SecurityMenu from './modules/securityMenu'; |
| 12 | import DataCatalog from './modules/dataCatalog' | ||
| 13 | 12 | ||
| 14 | import type { Route } from '#/global' | 13 | import type { Route } from '#/global' |
| 15 | import useSettingsStore from '@/store/modules/settings' | 14 | import useSettingsStore from '@/store/modules/settings' |
| ... | @@ -113,7 +112,6 @@ const asyncRoutes: RouteRecordRaw[] = [ | ... | @@ -113,7 +112,6 @@ const asyncRoutes: RouteRecordRaw[] = [ |
| 113 | ...DataMeta, | 112 | ...DataMeta, |
| 114 | ...DataQuality, | 113 | ...DataQuality, |
| 115 | ...DataInventory, | 114 | ...DataInventory, |
| 116 | ...DataCatalog, | ||
| 117 | ] | 115 | ] |
| 118 | 116 | ||
| 119 | const constantRoutesByFilesystem = generatedRoutes.filter((item) => { | 117 | const constantRoutesByFilesystem = generatedRoutes.filter((item) => { | ... | ... |
-
Please register or sign in to post a comment