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
zhichao
3 years ago
Commit
9c6ef6bb8cf5ff03a72ea7351b7fb67ed00f5b8f
1 parent
e5ee86ae
75首页access_token回退
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
20 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 @
9c6ef6b
...
...
@@ -26,7 +26,6 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
var
access_token
=
sessions
.
getToken
().
access_token
;
var
isNewPwd
=
sessionStorage
.
getItem
(
"isNewPwd"
);
var
oldLgn
=
localStorage
.
getItem
(
"lgn"
);
//joke add 20210506
//判定是否第一次登录
...
...
@@ -129,13 +128,13 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
// 过滤无资源的业务
filter
=
'2'
;
}
var
url
=
`
$
{
common
.
domainName
}
/api-web/
home
/
business
/
getBusHealthResultByAlarm
?
filter
=
$
{
filter
}
&
layout
=
$
{
sessionStorage
.
getItem
(
"userLayout"
)}
&
userName
=
$
{
oldLgn
}
`
var
url
=
`
$
{
common
.
domainName
}
/api-web/
home
/
business
/
getBusHealthResultByAlarm
?
filter
=
$
{
filter
}
&
layout
=
$
{
sessionStorage
.
getItem
(
"userLayout"
)}
`
$
.
ajax
({
admin
.
req
({
url
:
url
,
type
:
"get"
,
async
:
false
,
success
:
function
(
data
)
{
,
done
:
function
(
data
)
{
layer
.
close
(
loadIdx
);
if
(
data
.
code
===
0
)
{
var
bizMap
=
null
;
...
...
@@ -311,12 +310,11 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
// loadBizInfo();
// }, alarmTimerStep);
}
,
error
:
function
(
xhr
,
type
,
errorThrown
)
{
}).
error
(
function
()
{
layer
.
close
(
loadIdx
);
$
(
"#indexActiveAlarmList"
).
html
(
'<li style="width:390px;"><p>无告警</p></li>'
);
}
})
});
}
var
resourceHealthTips
;
...
...
@@ -472,10 +470,10 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
//加载资源类型信息
function
loadResTypeInfo
()
{
$
.
ajax
({
url
:
common
.
domainName
+
'/api-web/home/restype/getResTypeHealthResult?userName='
+
oldLgn
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/home/restype/getResTypeHealthResult'
,
type
:
"get"
,
success
:
function
(
data
)
{
,
done
:
function
(
data
)
{
layer
.
close
(
loadIdx
);
if
(
data
.
code
===
0
)
{
var
resTypelist
=
data
.
data
...
...
@@ -558,11 +556,11 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
// loadResTypeInfo();
// }, alarmTimerStep);
}
,
error
:
function
(
xhr
,
type
,
errorThrown
)
{
}).
error
(
function
()
{
layer
.
close
(
loadIdx
);
$
(
"#indexActiveAlarmList"
).
html
(
'<li style="width:390px;"><p>无告警</p></li>'
);
}
})
});
}
//绑定卡片上的事件
...
...
@@ -625,9 +623,9 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
});
//获取顺序
$
.
ajax
({
url
:
common
.
domainName
+
"/api-web/home/getMovePlace?userName="
+
oldLgn
,
success
:
function
(
res
)
{
admin
.
req
({
url
:
common
.
domainName
+
"/api-web/home/getMovePlace"
,
done
:
function
(
res
)
{
if
(
res
.
data
&&
res
.
data
.
top
&&
res
.
data
.
top
===
'res'
)
{
//资源在顶部
var
resTypeBox
=
$
(
"#indexResTypehealth"
);
var
bizBox
=
$
(
"#indexbizhealth"
);
...
...
@@ -1143,11 +1141,11 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
// 过滤无资源的业务
filter
=
'2'
;
}
var
url
=
`
$
{
common
.
domainName
}
/api-web/
home
/
business
/
getBusHealthResultByAlarm
?
filter
=
$
{
filter
}
&
layout
=
$
{
sessionStorage
.
getItem
(
"userLayout"
)}
&
userName
=
$
{
oldLgn
}
`
$
.
ajax
({
var
url
=
`
$
{
common
.
domainName
}
/api-web/
home
/
business
/
getBusHealthResultByAlarm
?
filter
=
$
{
filter
}
&
layout
=
$
{
sessionStorage
.
getItem
(
"userLayout"
)}
`
admin
.
req
({
url
:
url
,
type
:
"get"
,
success
:
function
(
data
)
{
,
done
:
function
(
data
)
{
if
(
data
.
code
===
0
)
{
var
bizMap
=
data
.
map
;
if
(
bizMap
&&
bizMap
.
health
!==
'3'
)
{
//不等于优
...
...
Please
register
or
login
to post a comment