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
967a81c8
authored
2024-12-17 16:51:16 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
分类分级任务联调
1 parent
c98554a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
src/api/modules/dataMetaService.ts
src/utils/request.ts
src/api/modules/dataMetaService.ts
View file @
967a81c
...
...
@@ -57,7 +57,7 @@ export const getMetaDataTaskLog = (params) => request({
method
:
'post'
,
data
:
params
})
//
//
export
const
saveMetaReportAnalysis
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_PLAN_BASEURL
}
/lineage-analysis-report/add`
,
method
:
'post'
,
...
...
@@ -65,22 +65,22 @@ export const saveMetaReportAnalysis = (params) => request({
})
/**
* 元数据-元数据查询
**/
**/
// 树形数据
export
const
getMetaTreeData
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_
PLAN
_BASEURL
}
/meta-table/meta-tree-list`
,
url
:
`
${
import
.
meta
.
env
.
VITE_APP_
CHECK
_BASEURL
}
/meta-table/meta-tree-list`
,
method
:
'post'
,
data
:
params
})
// 数据库汇总信息
export
const
getMetaDatabaseCollect
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_
PLAN
_BASEURL
}
/meta-table/meta-database-collect-list`
,
url
:
`
${
import
.
meta
.
env
.
VITE_APP_
CHECK
_BASEURL
}
/meta-table/meta-database-collect-list`
,
method
:
'post'
,
data
:
params
})
// 库分页查询
export
const
getMetaDataBase
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_
PLAN
_BASEURL
}
/meta-table/meta-table-collect-list`
,
url
:
`
${
import
.
meta
.
env
.
VITE_APP_
CHECK
_BASEURL
}
/meta-table/meta-table-collect-list`
,
method
:
'post'
,
data
:
params
})
...
...
@@ -114,7 +114,7 @@ export const getMetaChangeRecord = (params) => request({
method
:
'post'
,
data
:
params
})
//
//
export
const
getMetacompareList
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_PLAN_BASEURL
}
/meta-table/meta-change-compare-list/
${
params
}
`
,
method
:
'get'
,
...
...
@@ -216,7 +216,7 @@ export const updateAnalysisRepor = (params) => request({
method
:
'put'
,
data
:
params
})
/** 删除边 */
/** 删除边 */
export
const
delLineAge
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_PLAN_BASEURL
}
/lineage/del-edge?euid=
${
params
}
`
,
method
:
'delete'
,
...
...
@@ -226,7 +226,7 @@ export const checkTableData = (params) => request({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_PLAN_BASEURL
}
/meta-table/check-table-data/
${
params
}
`
,
method
:
'get'
,
})
/**校验任务是否有数据库信息 */
/**校验任务是否有数据库信息 */
export
const
checkDatabaseIsExist
=
(
dataSourceGuid
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_PLAN_BASEURL
}
/meta-collect-task/check-database-is-exist/
${
dataSourceGuid
}
`
,
method
:
'get'
,
...
...
@@ -236,4 +236,4 @@ export const checkDatabaseIsExist = (dataSourceGuid) => request({
export
const
syncChangeDetail
=
(
guid
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_PLAN_BASEURL
}
/task-change-record/sync-change-detail/
${
guid
}
`
,
method
:
'get'
,
})
\ No newline at end of file
})
...
...
src/utils/request.ts
View file @
967a81c
...
...
@@ -31,7 +31,7 @@ service.interceptors.request.use(
* 为每一次请求生成一个cancleToken
*/
const
source
=
axios
.
CancelToken
.
source
();
config
.
headers
.
tenant
=
'9e5b9d7bfd8c4f4f8079e05de19bf7e0'
;
//会员guid先写死
config
.
headers
.
tenant
=
localStorage
.
getItem
(
'currentTenantGuid'
)
;
//会员guid先写死
config
.
cancelToken
=
source
.
token
;
if
(
config
.
method
===
"postfile"
)
{
config
.
method
=
"post"
;
...
...
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