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
wf
about a year ago
Commit
0e644ab4741a045b79e0f57dbe40f7035d7e4ebd
1 parent
39a28563
wangfeng-500-dev
...
master-500-dev
涉及未处理的漏洞进行提示
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/main-biz-card.js
hg-monitor-web-base/src/main/resources/static/src/controller/main-biz-card.js
View file @
0e644ab
...
...
@@ -57,9 +57,12 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
,
type
:
"get"
,
async
:
false
,
done
:
function
(
res
)
{
// 如果有未读的漏洞则弹出未读漏洞信息
if
(
res
.
data
&&
res
.
data
.
length
>
0
){
list
=
res
.
data
;
vulnerabilityDialog
(
res
.
data
)
}
else
{
// 提示有涉及但未处理的漏洞
countRelatedUnSolvevulnerability
();
}
}
});
...
...
@@ -83,7 +86,7 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
`
if
(
list
.
length
>
0
){
layer
.
open
({
title
:
[
'漏洞
咨询
'
,
'font-size:20px;background-color: #d0ddec;display:flex;align-items: center; justify-content: flex-start;'
],
title
:
[
'漏洞
资讯
'
,
'font-size:20px;background-color: #d0ddec;display:flex;align-items: center; justify-content: flex-start;'
],
type
:
1
,
area
:
[
'40%'
,
'60%'
],
closeBtn
:
0
,
...
...
@@ -188,6 +191,18 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
}
}
// 涉及但未处理的漏洞
function
countRelatedUnSolvevulnerability
()
{
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/vulnerabilities/unsolve'
,
type
:
"get"
,
done
:
function
(
res
)
{
if
(
res
.
count
>
0
){
layer
.
msg
(
'您有 '
+
res
.
count
+
" 条涉及漏洞未处理,请前往【漏洞管理】进行处理!"
,
{
icon
:
7
,
time
:
5000
});
}
}
});
}
function
checkPassword
(
pattern
,
oldPwd
)
{
var
msg
=
"密码安全等级过低,请修改密码"
;
var
password
=
localStorage
.
getItem
(
"password"
);
...
...
Please
register
or
login
to post a comment