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
cc7ff2f3
authored
2024-12-27 11:29:02 +0800
by
xukangle
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update : 分类分级目录
1 parent
dcdb4505
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
src/api/modules/dataInventory.ts
src/views/data_inventory/dataLabel.vue
src/api/modules/dataInventory.ts
View file @
cc7ff2f
...
...
@@ -748,6 +748,7 @@ export const createTableSql = (data) => request({
export
const
exportCgDir
=
()
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_CHECK_BASEURL
}
/cg-dir/export`
,
method
:
'post'
,
responseType
:
'blob'
,
})
/**
...
...
@@ -758,6 +759,7 @@ export const exportCgDir = () => request({
export
const
exportDbDirTable
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_CHECK_BASEURL
}
/db-dir/table/export?execGuid=
${
params
.
execGuid
}
`
,
method
:
'post'
,
responseType
:
'blob'
,
})
/**
...
...
@@ -767,7 +769,7 @@ export const exportDbDirTable = (params) => request({
*
*/
export
const
getDbDirDetail
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_CHECK_BASEURL
}
/db-dir/detail?
g
uid=
${
params
.
tableGuid
}
`
,
url
:
`
${
import
.
meta
.
env
.
VITE_APP_CHECK_BASEURL
}
/db-dir/detail?
tableG
uid=
${
params
.
tableGuid
}
`
,
method
:
'get'
,
})
...
...
src/views/data_inventory/dataLabel.vue
View file @
cc7ff2f
...
...
@@ -7,6 +7,7 @@ import TableTools from '@/components/Tools/table_tools.vue';
import
{
getGradeList
}
from
"@/api/modules/dataInventory"
;
import
{
getLabelList
,
getClassifyGradeTreeList
,
saveLabel
,
getLabelPageList
,
deleteLabel
,
updateLabel
}
from
"@/api/modules/dataLabel"
;
import
{
CirclePlus
,
Delete
,
Warning
}
from
"@element-plus/icons-vue"
;
import
{
tr
}
from
'element-plus/es/locale'
;
const
{
proxy
}
=
getCurrentInstance
()
as
any
;
...
...
@@ -39,7 +40,8 @@ const getClassifyGradeTree = async () => {
}
// 分别赋值 分类guid
classifyGuid
.
value
=
classGradeTreeData
.
value
[
0
].
guid
;
newCreateGradeFormItems
.
value
[
1
].
options
=
transformDataForTree
(
transformedData
)
console
.
log
(
'getClassifyGradeTree'
,
transformedData
);
newCreateGradeFormItems
.
value
[
1
].
options
=
transformDataForTree
([
transformedData
[
0
]])
treeInfo
.
value
.
loading
=
false
;
isAddDisabled
.
value
=
false
;
}
else
{
...
...
@@ -78,8 +80,8 @@ const getLabelPageData = async () => {
refCount
.
value
++
;
tableInfo
.
value
.
loading
=
true
;
const
params
=
{
pageIndex
:
1
,
pageSize
:
50
,
pageIndex
:
page
.
value
.
curr
,
pageSize
:
page
.
value
.
limit
,
classifyGuid
:
classifyGuid
.
value
,
detailGuid
:
classifyDetailGuid
.
value
}
...
...
@@ -208,7 +210,7 @@ const deleteLabelGuids = ref<any>([]);
// 保存编辑的guid
const
editLabelRow
=
ref
<
any
>
(
''
);
const
page
=
ref
({
limit
:
1
0
,
limit
:
5
0
,
curr
:
1
,
sizes
:
[
{
label
:
"10"
,
value
:
10
},
...
...
@@ -672,6 +674,10 @@ const searchClass = async (val: any, clear: boolean = false) => {
}
if
(
val
?.
labelName
?.
length
!==
0
||
refCount
.
value
>=
1
)
{
tableInfo
.
value
.
loading
=
true
;
classifyGuid
.
value
=
''
;
classifyDetailGuid
.
value
=
''
;
treeInfo
.
value
.
expandedKey
=
[];
treeInfo
.
value
.
currentNodeKey
=
''
;
const
params
=
{
pageIndex
:
1
,
pageSize
:
50
,
...
...
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