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
c30efebc
authored
2025-02-06 14:36:05 +0800
by
xukangle
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev_20241202_xukangle' into develop
2 parents
a04a9a71
a369b8d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
src/components/Table/index.vue
src/views/data_product/productListing.vue
src/components/Table/index.vue
View file @
c30efeb
...
...
@@ -339,7 +339,7 @@ onMounted(() => {
</
template
>
<
template
#
default=
"scope"
v-else-if=
"item.type == 'text_btn'"
>
<span
v-if=
"scope.row[item.field] != null"
:class=
"[
(item.getName
(scope) === '--' || item.getName
(scope) === null) ? '' : 'text_btn',
(item.getName
?.(scope) === '--' || item.getName?.
(scope) === null) ? '' : 'text_btn',
item.class,
scope.row.cellClass,
]"
...
...
@@ -375,7 +375,7 @@ onMounted(() => {
<
template
#
default=
"scope"
v-else-if=
"item.type == 'approveTag'"
>
<el-tag
v-if=
"scope.row[item.field]"
:type=
"tagType(scope.row.approveVO, 'approveState')"
>
{{
tagMethod
(
scope
.
row
.
approveVO
,
'approveState'
)
}}
</el-tag>
}}
</el-tag>
<span
v-else
>
{{
'--'
}}
</span>
</
template
>
<
template
#
default=
"scope"
v-else-if=
"item.type == 'tooltip'"
>
...
...
src/views/data_product/productListing.vue
View file @
c30efeb
...
...
@@ -271,10 +271,12 @@ const tableSwitchChange = (val, scope, field) => {
message
:
res
.
msg
,
});
getTableData
();
getListingCountData
();
reject
(
false
)
}
}).
catch
(()
=>
{
getTableData
();
getListingCountData
();
reject
(
false
)
})
})
...
...
@@ -334,6 +336,7 @@ const tableBtnClick = (scope, btn) => {
if
(
res
.
code
==
'00000'
)
{
ElMessage
.
success
(
'删除成功'
)
getTableData
();
getListingCountData
();
}
else
{
ElMessage
.
error
(
res
.
msg
)
}
...
...
@@ -356,6 +359,7 @@ const tableBtnClick = (scope, btn) => {
if
(
res
.
code
==
'00000'
)
{
ElMessage
.
success
(
'撤销成功!'
)
getTableData
();
getListingCountData
();
}
else
{
ElMessage
.
error
(
res
.
msg
)
}
...
...
@@ -554,6 +558,7 @@ const passSubmit = () => {
ElMessage
.
success
(
'审批通过!'
)
dialogVisible
.
value
=
false
;
getTableData
();
getListingCountData
();
}
else
{
ElMessage
.
error
(
res
.
msg
)
}
...
...
@@ -605,6 +610,7 @@ const rejectSubmit = async () => {
ElMessage
.
success
(
'驳回成功!'
)
dialogVisible
.
value
=
false
;
getTableData
();
getListingCountData
();
}
else
{
ElMessage
.
error
(
res
.
msg
)
}
...
...
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