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
6f90b49e
authored
2025-01-05 10:19:49 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增数据源管理
1 parent
93c44ebe
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
5 deletions
src/api/modules/queryService.ts
src/router/modules/dataInventory.ts
src/views/data_inventory/dataSource.vue
src/api/modules/queryService.ts
View file @
6f90b49
...
...
@@ -27,9 +27,8 @@ export const refreshToken = (params) => {
export
const
getSystemMenu
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_AUTH_URL
}
/product-menu-permission/
tenant
/
get
-
product
-
menu
?
tenantGuid
=
$
{
params
.
tenantGuid
}
&
platformSystemGuid
=
32774
fcfdf5e43e8b866660374d8bced
`,
url
:
`
${
import
.
meta
.
env
.
VITE_APP_AUTH_URL
}
/product-menu-permission/
tenant
/
get
-
product
-
menu
?
tenantGuid
=
$
{
params
.
tenantGuid
}
&
platformSystemGuid
=
32774
fcfdf5e43e8b866660374d8bced
`,
method: "get",
});
};
...
...
@@ -123,7 +122,7 @@ export const getServiceTenants = (params) => request({
})
/** 获取会员的附件模板 */
export const getTenantAttach = (params) =>
request({
export const getTenantAttach = (params) => request({
url: `
$
{
import
.
meta
.
env
.
VITE_APP_API_BASEURL
}
/attachment-template/
list
-
attachment
?
tenantGuid
=
$
{
params
}
`,
method: 'get'
})
...
...
@@ -145,7 +144,7 @@ export const resetUserPwd = (params) => request({
/** ----------------- 消息管理 ------------------- */
/** 获取所有的消息列表 */
export const getAllMessageList = (params) =>
request({
export const getAllMessageList = (params) => request({
url: `
$
{
import
.
meta
.
env
.
VITE_API_MESSAGE
}
/message/
data
/
get
-
message
-
list
`,
method: 'post',
data: params
...
...
@@ -210,3 +209,62 @@ export const exportDictionary = (params) => request({
data: params,
responseType: 'blob'
})
/**
* 数据源管理
**/
// 分页查询
export const getDataSourceList = (params) => request({
url: `
$
{
import
.
meta
.
env
.
VITE_APP_DATA_SOURCE_URL
}
/data-source/
list
`,
method: "post",
data: params,
});
// 获取数据源列表
export const getDataSource = (params) => request({
url: `
$
{
import
.
meta
.
env
.
VITE_APP_DATA_SOURCE_URL
}
/data-source/g
et
-
source
-
list
`,
method: "post",
data: params,
});
// 新增
export const addDataSource = (params) => request({
url: `
$
{
import
.
meta
.
env
.
VITE_APP_DATA_SOURCE_URL
}
/data-source/
save
`,
method: "post",
data: params,
});
// 删除
export const deleteDataSource = (params) => request({
url: `
$
{
import
.
meta
.
env
.
VITE_APP_DATA_SOURCE_URL
}
/data-source/
delete
`,
method: "delete",
data: params,
});
// 修改
export const updateDataSource = (params) => request({
url: `
$
{
import
.
meta
.
env
.
VITE_APP_DATA_SOURCE_URL
}
/data-source/
update
`,
method: "put",
data: params,
});
// 查看数据源详情
export const getDataSourceDetail = (params) => request({
url: `
$
{
import
.
meta
.
env
.
VITE_APP_DATA_SOURCE_URL
}
/data-source/
detail
/
$
{
params
}
`,
method: "get",
});
// 连通检测
export const checkDataSourceConnect = (params) => request({
url: `
$
{
import
.
meta
.
env
.
VITE_APP_DATA_SOURCE_URL
}
/data-source/
check
-
connect
`,
method: "post",
params,
});
// 连接测试
export const checkDataSourceConnectTest = (params) => request({
url: `
$
{
import
.
meta
.
env
.
VITE_APP_DATA_SOURCE_URL
}
/data-source/
check
-
connect
-
test
`,
method: "post",
data: params,
});
// 获取所有参数列表
export const getAllFlowData = (params) => request({
url: `
$
{
import
.
meta
.
env
.
VITE_APP_CONFIG_URL
}
/dict/
data
/
get
-
by
-
dictType
`,
method: 'get',
params
})
...
...
src/router/modules/dataInventory.ts
View file @
6f90b49
...
...
@@ -282,6 +282,27 @@ const routes: RouteRecordRaw[] = [
},
],
},
{
path
:
'/data-inventory/data-source'
,
component
:
Layout
,
meta
:
{
title
:
'数据源管理'
,
icon
:
'sidebar-videos'
,
},
children
:
[
{
path
:
''
,
name
:
'dataSource'
,
component
:
()
=>
import
(
'@/views/data_inventory/dataSource.vue'
),
meta
:
{
title
:
'数据源管理'
,
sidebar
:
false
,
breadcrumb
:
false
,
cache
:
true
},
},
],
},
]
export
default
routes
...
...
src/views/data_inventory/dataSource.vue
0 → 100644
View file @
6f90b49
This diff is collapsed.
Click to expand it.
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