Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xwx
3 years ago
Commit
3d795a5e59d3b04857aaa80a7bf7f69afd87ad0b
1 parent
e599d68c
杭州-视图中心-资产视图收藏资源优化
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
hg-monitor-web-zj/src/main/resources/static/vue3/src/components/page/res/resNameComponents/index.js
hg-monitor-web-zj/src/main/resources/static/vue3/src/components/page/res/resNameComponents/index.js
View file @
3d795a5
...
...
@@ -94,15 +94,19 @@ export default {
proxy
.
$global
.
showMsg
(
"资源编号不存在,请确认!"
,
"warning"
)
return
;
}
proxy
.
$http
.
post
(
`
/
api
-
web
/
favorites
/
save
/
res
?
favId
=
$
{
favIds
.
value
}
&
resIds
=
$
{
props
.
resId
}
`
,
{},
function
(
res
)
{
if
(
res
&&
res
.
code
==
0
)
{
let
msg
=
!
res
.
msg
?
'收藏成功!'
:
res
.
msg
;
let
type
=
!
res
.
success
?
'warning'
:
'success'
;
proxy
.
$global
.
showMsg
(
msg
,
type
);
showDialog
(
false
);
}
});
if
(
favIds
.
value
!=
''
&&
favIds
.
value
!=
null
)
{
proxy
.
$http
.
post
(
`
/
api
-
web
/
favorites
/
save
/
res
?
favId
=
$
{
favIds
.
value
}
&
resIds
=
$
{
props
.
resId
}
`
,
{},
function
(
res
)
{
if
(
res
&&
res
.
code
==
0
)
{
let
msg
=
!
res
.
msg
?
'收藏成功!'
:
res
.
msg
;
let
type
=
!
res
.
success
?
'warning'
:
'success'
;
proxy
.
$global
.
showMsg
(
msg
,
type
);
showDialog
(
false
);
}
});
}
else
{
proxy
.
$global
.
showMsg
(
'请选择收藏夹'
,
'warning'
);
}
}
...
...
Please
register
or
login
to post a comment