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
ef377f84
authored
2025-11-25 13:13:53 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加数据目录分类接口联调
1 parent
d54f890c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
25 deletions
src/api/modules/dataAsset.ts
src/views/data_asset/productDataCatalogSort.vue
src/views/data_asset/registerCatalogCreate.vue
src/api/modules/dataAsset.ts
View file @
ef377f8
...
...
@@ -291,7 +291,7 @@ export const getParamsList = (params) => request({
// data: { paramCode: "DAM-TYPE" }
// })
export
const
getDamTypesList
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_CONFIG_UR
L
}
/dict/data/get-by-dictType`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/dict/data/get-by-dictType`
,
method
:
'get'
,
params
})
...
...
@@ -608,3 +608,9 @@ export const getDictData = (params) => request({
method
:
'post'
,
data
:
params
})
export
const
addDictDictionary
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_API_NEW_PORTAL
}
/dict/save-dict`
,
method
:
'post'
,
data
:
params
})
...
...
src/views/data_asset/productDataCatalogSort.vue
View file @
ef377f8
...
...
@@ -78,6 +78,7 @@ import {
getDictClass
,
removeDict
,
getDictData
,
addDictDictionary
,
}
from
"@/api/modules/dataAsset"
;
const
{
required
}
=
useValidator
();
...
...
@@ -574,8 +575,7 @@ const tableSelectionChange = (val) => {
selectRowData
.
value
=
val
.
map
((
item
)
=>
item
.
guid
);
}
// 批量删除
function
batchDelete
(
param
)
{
if
(
param
==
"delete"
)
{
const
batchDelete
=
()
=>
{
if
(
selectRowData
.
value
.
length
==
0
)
{
ElMessage
({
type
:
"info"
,
...
...
@@ -597,7 +597,6 @@ function batchDelete(param) {
}
})
});
}
};
const
tablePageChange
=
(
info
)
=>
{
...
...
@@ -674,7 +673,7 @@ const tableInfo = ref({
align
:
"center"
,
},
{
label
:
"
字典
描述"
,
label
:
"描述"
,
field
:
"remarks"
,
width
:
160
,
},
...
...
@@ -814,19 +813,20 @@ const drawerBtnClick = (btn, info) => {
if
(
drawerInfo
.
value
.
type
!=
'add'
)
{
info
.
guid
=
currEditTableRow
.
value
.
guid
;
}
//TODO
// dictApi.addDictionary(resultForm1).then(res => {
// if (res.data.code === proxy.$passCode) {
// proxy.$ElMessage({
// type: 'success',
// message: message
// })
// drawerInfo.value.visible = false;
// toSearch(params.value)
// }
// });
drawerInfo
.
value
.
footer
.
btns
[
1
].
loading
=
true
;
addDictDictionary
(
info
).
then
((
res
:
any
)
=>
{
drawerInfo
.
value
.
footer
.
btns
[
1
].
loading
=
false
;
if
(
res
.
code
===
proxy
.
$passCode
)
{
proxy
.
$ElMessage
({
type
:
'success'
,
message
:
message
})
drawerInfo
.
value
.
visible
=
false
;
toSearch
(
params
.
value
)
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
});
}
else
{
drawerInfo
.
value
.
container
.
id
=
"add-dictionary-form"
;
drawerInfo
.
value
.
visible
=
false
;
...
...
src/views/data_asset/registerCatalogCreate.vue
View file @
ef377f8
...
...
@@ -8,7 +8,6 @@ import { useRouter, useRoute } from "vue-router";
import
useUserStore
from
"@/store/modules/user"
;
import
{
getAreaData
,
getParamsList
,
}
from
"@/api/modules/queryService"
;
import
{
registerCatalogSave
,
...
...
@@ -22,6 +21,7 @@ import {
getRegisterCatalogTableList
,
checkDamTableChange
,
getTenantList
,
getDamTypesList
}
from
"@/api/modules/dataAsset"
;
import
{
getValidApi
,
...
...
@@ -867,7 +867,7 @@ onBeforeMount(() => {
})
}
get
Param
sList
({
get
DamType
sList
({
dictType
:
"资产类型"
,
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
...
...
@@ -878,7 +878,7 @@ onBeforeMount(() => {
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
})
get
Param
sList
({
get
DamType
sList
({
dictType
:
"数据资产目录主题名称"
,
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
...
...
@@ -890,7 +890,7 @@ onBeforeMount(() => {
}
})
get
Param
sList
({
get
DamType
sList
({
dictType
:
"行业分类"
,
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
...
...
@@ -902,7 +902,7 @@ onBeforeMount(() => {
}
})
get
Param
sList
({
dictType
:
'领域'
}).
then
((
res
:
any
)
=>
{
get
DamType
sList
({
dictType
:
'领域'
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
domainDictList
.
value
=
res
.
data
||
[];
let
itemIndex
=
baseInfoFormItems
.
value
.
findIndex
(
item
=>
item
.
field
==
'domain'
);
...
...
@@ -915,7 +915,7 @@ onBeforeMount(() => {
}
});
get
Param
sList
({
get
DamType
sList
({
dictType
:
"组织机构性质"
,
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
...
...
@@ -927,7 +927,7 @@ onBeforeMount(() => {
}
})
get
Param
sList
({
get
DamType
sList
({
dictType
:
"更新周期"
,
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
...
...
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