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
c46e1eb4
authored
2025-01-02 16:34:00 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
结果确认界面调整
1 parent
9b6c29d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
13 deletions
src/views/data_inventory/taskEdit.vue
src/views/data_inventory/taskEdit.vue
View file @
c46e1eb
...
...
@@ -155,7 +155,9 @@ const metadataTableInfo = ref({
})
const
getTaskDetail
=
(
data
)
=>
{
loading
.
value
=
true
;
getCgTaskDetail
(
data
).
then
((
res
:
any
)
=>
{
loading
.
value
=
false
;
if
(
res
.
code
==
proxy
.
$passCode
)
{
const
data
=
res
.
data
||
{};
taskDetail
.
value
=
data
;
...
...
@@ -166,6 +168,8 @@ const getTaskDetail = (data) => {
getPermissionList
({});
getMetaTableData
();
}
}).
catch
(()
=>
{
loading
.
value
=
false
;
})
}
...
...
@@ -177,14 +181,14 @@ const nodeClick = (data) => {
// 获取标签数据
const
getTableData
=
()
=>
{
tableInfo
.
value
.
loading
=
true
;
loading
.
value
=
true
;
getCgLabelPageList
(
Object
.
assign
({},
searchItemValue
.
value
,
{
pageIndex
:
page
.
value
.
curr
,
pageSize
:
page
.
value
.
limit
,
})
).
then
((
res
:
any
)
=>
{
tableInfo
.
value
.
loading
=
false
;
loading
.
value
=
false
;
if
(
res
.
code
==
proxy
.
$passCode
)
{
tableInfo
.
value
.
data
=
res
.
data
.
records
||
[];
tableInfo
.
value
.
page
.
curr
=
res
.
data
.
pageIndex
;
...
...
@@ -193,7 +197,7 @@ const getTableData = () => {
}
})
.
catch
((
res
)
=>
{
tableInfo
.
value
.
loading
=
false
;
loading
.
value
=
false
;
});
};
...
...
@@ -223,8 +227,9 @@ const tablePageChange = (info) => {
// 获取元数据表格
const
getMetaTableData
=
()
=>
{
loading
.
value
=
true
;
getMetaTableCollectList
({}).
then
((
res
:
any
)
=>
{
metadataTableInfo
.
value
.
loading
=
false
;
loading
.
value
=
false
;
if
(
res
.
code
==
proxy
.
$passCode
)
{
const
data
=
res
.
data
.
records
||
[];
metadataTableInfo
.
value
.
data
=
data
;
...
...
@@ -236,16 +241,18 @@ const getMetaTableData = () => {
})
}
}
}).
catch
(()
=>
{
loading
.
value
=
false
;
})
}
const
querySearch
=
(
queryString
:
string
)
=>
{
l
istLoading
.
value
=
true
l
oading
.
value
=
true
;
const
results
=
queryString
?
currpermissionList
.
value
.
filter
(
item
=>
item
.
dataPermissionName
.
indexOf
(
queryString
)
>
-
1
)
:
permissionList
.
value
;
currpermissionList
.
value
=
results
l
istLoading
.
value
=
false
l
oading
.
value
=
false
;
}
const
btnClick
=
async
(
btn
,
bType
=
null
)
=>
{
...
...
@@ -352,8 +359,9 @@ const getPermissionList = (val, init = true) => {
params
.
pageIndex
=
listPage
.
value
.
curr
;
params
.
pageSize
=
listPage
.
value
.
limit
;
params
.
type
=
'C'
;
l
istLoading
.
value
=
true
l
oading
.
value
=
true
;
getClassifyGradList
(
params
).
then
((
res
:
any
)
=>
{
loading
.
value
=
false
;
if
(
res
.
code
==
proxy
.
$passCode
)
{
const
data
=
res
.
data
?.
records
||
[]
if
(
init
)
{
...
...
@@ -375,9 +383,8 @@ const getPermissionList = (val, init = true) => {
querySearch
(
asideSearchInput
.
value
)
}
}
listLoading
.
value
=
false
}).
catch
(()
=>
{
l
istLoading
.
value
=
false
l
oading
.
value
=
false
;
})
}
...
...
@@ -386,16 +393,16 @@ const getClassifyTree = () => {
const
params
=
{
classifyGradeGuid
:
templateInfo
.
value
.
guid
}
treeInfo
.
value
.
loading
=
true
;
loading
.
value
=
true
;
getClassifyTreeList
(
params
).
then
((
res
:
any
)
=>
{
treeInfo
.
value
.
loading
=
false
;
loading
.
value
=
false
;
if
(
res
.
code
==
proxy
.
$passCode
)
{
const
data
=
res
.
data
||
[];
treeInfo
.
value
.
data
=
data
;
treeInfoRef
.
value
.
setCurrentKey
(
''
);
}
}).
catch
(()
=>
{
treeInfo
.
value
.
loading
=
false
;
loading
.
value
=
false
;
})
}
...
...
@@ -433,7 +440,7 @@ onMounted(() => {
<el-input
v-model
.
trim=
"asideSearchInput"
placeholder=
"请输入关键字"
:prefix-icon=
"Search"
clearable
@
change=
"querySearch"
/>
</div>
-->
<div
class=
"aside_list"
v-
loading=
"listLoading"
v-
infinite-scroll=
"handleScroll"
>
<div
class=
"aside_list"
v-infinite-scroll=
"handleScroll"
>
<div
class=
"list_item"
v-for=
"(item, i) in currpermissionList"
:class=
"
{ active: selectIndex == item.guid }"
@click="listClick(item);" v-preReClick>
{{
item
.
name
}}
</div>
</div>
...
...
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