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
ccc1b00e
authored
2024-12-31 09:34:28 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交元数据采集任务有关
1 parent
00b73e2a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
74 additions
and
69 deletions
.env.development
.env.product
src/api/modules/dataMetaService.ts
src/router/modules/dataMeta.ts
src/views/data_meta/collectorTask.vue
src/views/data_meta/metaSheet.vue
.env.development
View file @
ccc1b00
...
...
@@ -33,6 +33,9 @@ VITE_APP_QUALITY_BASEURL = ms-daop-data-quality-service
# VITE_APP_CHECK_BASEURL = /mock
VITE_APP_CHECK_BASEURL = ms-daop-zcgl-data-inventory
#数据源接口地址
VITE_APP_DATA_SOURCE_URL = ms-daop-data-source-service
# 数据字典接口地址
VITE_APP_CONFIG_URL = 'ms-daop-configure-service'
...
...
.env.product
View file @
ccc1b00
...
...
@@ -62,6 +62,9 @@ VITE_APP_CHECK_BASEURL = ms-daop-zcgl-data-inventory
# 数据字典接口地址
VITE_APP_CONFIG_URL = 'ms-daop-configure-service'
#数据源接口地址
VITE_APP_DATA_SOURCE_URL = ms-daop-data-source-service
# 文件上传下载接口地址
VITE_APP_COMMON_URL = 'ms-daop-common-service'
...
...
src/api/modules/dataMetaService.ts
View file @
ccc1b00
...
...
@@ -192,7 +192,7 @@ export const getMetaChangeList = (params) => request({
/** 获取数据库选择列表 */
export
const
getDatabase
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_
API_BASE
URL
}
/data-source/get-source-list`
,
url
:
`
${
import
.
meta
.
env
.
VITE_APP_
DATA_SOURCE_
URL
}
/data-source/get-source-list`
,
method
:
'post'
,
data
:
params
})
...
...
src/router/modules/dataMeta.ts
View file @
ccc1b00
...
...
@@ -93,46 +93,46 @@ const routes: RouteRecordRaw[] = [
},
],
},
//
{
//
path: '/data-meta/metadata-lineage',
//
component: Layout,
//
meta: {
//
title: '元数据血缘',
//
icon: 'ep:grid',
//
},
//
children: [
//
{
//
path: 'analysis-view',
//
name: 'analysisView',
//
component: () => import('@/views/data_meta/analysisView.vue'),
//
meta: {
//
title: '查看血缘',
//
breadcrumb: false,
//
cache: true
//
},
//
},
//
{
//
path: 'change-detection',
//
name: 'changeDetection',
//
component: () => import('@/views/data_meta/changeDetection.vue'),
//
meta: {
//
title: '血缘变更检测',
//
breadcrumb: false,
//
cache: true
//
},
//
},
//
{
//
path: 'analysis-reports',
//
name: 'analysisReports',
//
component: () => import('@/views/data_meta/analysisReports.vue'),
//
meta: {
//
title: '血缘关系解析',
//
breadcrumb: false,
//
cache: true
//
},
//
},
//
],
//
},
{
path
:
'/data-meta/metadata-lineage'
,
component
:
Layout
,
meta
:
{
title
:
'元数据血缘'
,
icon
:
'ep:grid'
,
},
children
:
[
{
path
:
'analysis-view'
,
name
:
'analysisView'
,
component
:
()
=>
import
(
'@/views/data_meta/analysisView.vue'
),
meta
:
{
title
:
'查看血缘'
,
breadcrumb
:
false
,
cache
:
true
},
},
{
path
:
'change-detection'
,
name
:
'changeDetection'
,
component
:
()
=>
import
(
'@/views/data_meta/changeDetection.vue'
),
meta
:
{
title
:
'血缘变更检测'
,
breadcrumb
:
false
,
cache
:
true
},
},
{
path
:
'analysis-reports'
,
name
:
'analysisReports'
,
component
:
()
=>
import
(
'@/views/data_meta/analysisReports.vue'
),
meta
:
{
title
:
'血缘关系解析'
,
breadcrumb
:
false
,
cache
:
true
},
},
],
},
]
export
default
routes
...
...
src/views/data_meta/collectorTask.vue
View file @
ccc1b00
...
...
@@ -104,7 +104,7 @@ const tableInfo = ref({
actionInfo
:
{
label
:
"操作"
,
type
:
"btn"
,
width
:
2
1
0
,
width
:
2
3
0
,
fixed
:
'right'
,
btns
:
(
scope
)
=>
{
const
row
=
scope
.
row
...
...
@@ -114,7 +114,7 @@ const tableInfo = ref({
}
else
{
btnsArr
.
splice
(
0
,
0
,
{
label
:
"立即执行"
,
value
:
"carry"
,
disabled
:
row
.
taskState
===
0
||
row
.
execState
==
1
})
}
//
btnsArr.push({ label: "编辑", value: "edit", disabled: row.taskState === 1 || row.isCarry || row.execState == 1 });
btnsArr
.
push
({
label
:
"编辑"
,
value
:
"edit"
,
disabled
:
row
.
taskState
===
1
||
row
.
isCarry
||
row
.
execState
==
1
});
btnsArr
.
push
({
label
:
"删除"
,
value
:
"delete"
,
disabled
:
row
.
isCarry
||
row
.
taskState
===
1
||
row
.
execState
==
1
});
btnsArr
.
push
({
label
:
"执行日志"
,
value
:
"log"
});
return
btnsArr
...
...
@@ -472,19 +472,18 @@ const setDetailInfo = (row) => {
}
const
getDataSourceList
=
()
=>
{
// TODO
// getDatabase({ connectStatus: 1 }).then((res: any) => {
// if (res.code == proxy.$passCode) {
// dataSourceList.value = res.data || [];
// formItems.value[1].options = dataSourceList.value;
// searchItemList.value[1].options = dataSourceList.value;
// } else {
// proxy.$ElMessage({
// type: "error",
// message: res.msg,
// });
// }
// })
getDatabase
({
connectStatus
:
1
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
dataSourceList
.
value
=
res
.
data
||
[];
formItems
.
value
[
1
].
options
=
dataSourceList
.
value
;
searchItemList
.
value
[
1
].
options
=
dataSourceList
.
value
;
}
else
{
proxy
.
$ElMessage
({
type
:
"error"
,
message
:
res
.
msg
,
});
}
})
}
const
radioGroupChange
=
(
val
,
info
)
=>
{
...
...
@@ -598,7 +597,7 @@ onBeforeMount(() => {
<!-- 头部搜索 -->
<TableTools
:searchItems=
"searchItemList"
:searchId=
"'data-source-search'"
@
search=
"toSearch"
:init=
"false"
/>
<div
class=
"tools_btns"
>
<
!--
<el-button
type=
"primary"
@
click=
"loadDrawer"
>
新建
</el-button>
--
>
<
el-button
type=
"primary"
@
click=
"loadDrawer"
>
新建
</el-button
>
<el-button
@
click=
"importMeta"
>
导入
</el-button>
</div>
</div>
...
...
src/views/data_meta/metaSheet.vue
View file @
ccc1b00
...
...
@@ -60,8 +60,8 @@ const tabsInfo = ref({
activeName
:
''
,
tabs
:
[
{
label
:
'基础信息'
,
name
:
'first'
},
// /
{ label: '数据血缘', name: 'second' },
//
{ label: '变更记录', name: 'third' }
{
label
:
'数据血缘'
,
name
:
'second'
},
{
label
:
'变更记录'
,
name
:
'third'
}
]
})
/** 切换布局 */
...
...
@@ -192,13 +192,13 @@ const tabsPaneMap = ref({
tableInfo
:
fieldTableInfo
.
value
,
show
:
true
},
//
{
//
title: '索引信息',
//
type: 'table',
//
isIndex: true,
//
tableInfo: indexTableInfo.value,
//
show: true
//
},
{
title
:
'索引信息'
,
type
:
'table'
,
isIndex
:
true
,
tableInfo
:
indexTableInfo
.
value
,
show
:
true
},
],
second
:
[
{
...
...
@@ -310,10 +310,10 @@ const lineageDataLoading = ref(true);
const
getDetailInfo
=
()
=>
{
getSheetDetail
()
getSheetField
()
//
getSheetKeys()
getSheetKeys
()
logPage
.
value
.
curr
=
1
//
getSheetLog();
//
getTableLineageMap();
getSheetLog
();
getTableLineageMap
();
}
const
getSheetDetail
=
()
=>
{
...
...
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