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
bf477aed3aed07564788b5e9d03f2528d40ba867
1 parent
3c93cb03
中间件-【1054】-统计优化
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
16 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/bizreslist.js
hg-monitor-web-base/src/main/resources/static/src/views/biz/list.html
hg-monitor-web-base/src/main/resources/static/src/controller/bizreslist.js
View file @
bf477ae
...
...
@@ -219,7 +219,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm
//触发拖动列事件,参数为保存按钮的id
common
.
dragCols
(
"bizreslist_cols_save"
);
loadRightResTypeSelectEvent
(
newResType
,
'normal'
);
loadRightResTypeSelectEvent
(
newResType
,
'normal'
,
res
.
obj
);
initSaveColsEvent
();
//保存列事件
// 导出到excel
...
...
@@ -746,7 +746,11 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm
}
// 渲染统计数据
function
loadRightResTypeSelectEvent
(
resType
,
type
)
{
function
loadRightResTypeSelectEvent
(
resType
,
type
,
obj
)
{
var
map
=
obj
;
$
.
each
(
map
,
function
(
key
,
values
)
{
$
(
"#"
+
key
+
"_resStatus"
).
html
(
map
[
key
])
});
layer
.
closeAll
(
'tips'
);
if
(
collProtocols
)
{
xmSelect
.
get
(
'#collProtocolSelect'
,
true
).
setValue
([]);
...
...
@@ -772,9 +776,6 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm
fun
=
renderTreeTable
;
}
var
map
=
res
.
object
;
$
.
each
(
map
,
function
(
key
,
values
)
{
$
(
"#"
+
domStr
+
" span[data-field='"
+
str
+
key
+
"']"
).
html
(
values
)
});
$
(
"#"
+
domStr
).
find
(
".info-box-count .num span"
).
unbind
().
on
(
"click"
,
function
()
{
var
val
=
$
(
this
).
data
(
"value"
),
target
=
$
(
this
).
data
(
"target"
);
if
(
val
&&
target
)
{
...
...
hg-monitor-web-base/src/main/resources/static/src/views/biz/list.html
View file @
bf477ae
...
...
@@ -222,7 +222,7 @@
<
i
><
/i
>
<
label
>
资源总量
<
/label
>
<
div
class
=
"num"
>
<
span
lay
-
tips
=
"资源总量"
data
-
field
=
"total"
>
0
<
/span
>
<
span
lay
-
tips
=
"资源总量"
data
-
field
=
"total"
id
=
"total_resStatus"
>
0
<
/span
>
<
/div
>
<
/div
>
<
div
class
=
"info-box-count"
>
...
...
@@ -230,13 +230,13 @@
<
label
>
健康状态
<
/label
>
<
div
class
=
"num"
>
<
span
class
=
"green"
lay
-
tips
=
"健康状态:优"
data
-
value
=
"3"
data
-
target
=
"biz_reslist_resStatus"
data
-
field
=
"normal"
>
0
<
/span>/
data
-
field
=
"normal"
id
=
"normal_resStatus"
>
0
<
/span>/
<
span
class
=
"orange"
lay
-
tips
=
"健康状态: 良"
data
-
value
=
"2"
data
-
target
=
"biz_reslist_resStatus"
data
-
field
=
"worse"
>
0
<
/span>/
data
-
field
=
"worse"
id
=
"worse_resStatus"
>
0
<
/span>/
<
span
class
=
"red"
lay
-
tips
=
"健康状态: 中"
data
-
value
=
"1"
data
-
target
=
"biz_reslist_resStatus"
data
-
field
=
"worst"
>
0
<
/span>/
data
-
field
=
"worst"
id
=
"worst_resStatus"
>
0
<
/span>/
<
span
class
=
"gray"
lay
-
tips
=
"连接状态:未监控"
data
-
value
=
"none"
data
-
target
=
"biz_reslist_resStatus"
data
-
field
=
"healthNone"
>
0
<
/span
>
data
-
field
=
"healthNone"
id
=
"healthNone_resStatus"
>
0
<
/span
>
<
/div
>
<
/div
>
<
div
class
=
"info-box-count"
>
...
...
@@ -244,11 +244,11 @@
<
label
>
资源状态
<
/label
>
<
div
class
=
"num"
>
<
span
class
=
"green"
lay
-
tips
=
"资源状态:监控中"
data
-
value
=
"monitor"
data
-
target
=
"biz_reslist_state"
data
-
field
=
"monitorstate"
>
0
<
/span>/
data
-
field
=
"monitorstate"
id
=
"monitorstate_resStatus"
>
0
<
/span>/
<
span
class
=
"red"
lay
-
tips
=
"资源状态:暂停监控"
data
-
value
=
"stop"
data
-
target
=
"biz_reslist_state"
data
-
field
=
"stopstate"
>
0
<
/span>/
data
-
field
=
"stopstate"
id
=
"stopstate_resStatus"
>
0
<
/span>/
<
span
class
=
"gray"
lay
-
tips
=
"资源状态:未监控"
data
-
value
=
"new"
data
-
target
=
"biz_reslist_state"
data
-
field
=
"newstate"
>
0
<
/span
>
data
-
field
=
"newstate"
id
=
"newstate_resStatus"
>
0
<
/span
>
<
/div
>
<
/div
>
<
div
class
=
"info-box-count div-link-state"
style
=
"display: none"
>
...
...
@@ -256,11 +256,11 @@
<
label
>
连接状态
<
/label
>
<
div
class
=
"num"
>
<
span
class
=
"green"
lay
-
tips
=
"连接状态:成功"
data
-
value
=
"1"
data
-
target
=
"biz_reslist_link_state"
data
-
field
=
"linksuccess"
>
0
<
/span>/
data
-
field
=
"linksuccess"
id
=
"linksuccess_resStatus"
>
0
<
/span>/
<
span
class
=
"red"
lay
-
tips
=
"连接状态:失败"
data
-
value
=
"0"
data
-
target
=
"biz_reslist_link_state"
data
-
field
=
"linkfail"
>
0
<
/span>/
data
-
field
=
"linkfail"
id
=
"linkfail_resStatus"
>
0
<
/span>/
<
span
class
=
"gray"
lay
-
tips
=
"连接状态:未监控"
data
-
value
=
"9"
data
-
target
=
"biz_reslist_link_state"
data
-
field
=
"linkNone"
>
0
<
/span
>
data
-
field
=
"linkNone"
id
=
"linkNone_resStatus"
>
0
<
/span
>
<
/div
>
<
/div
>
<!--
<
div
class
=
"info-box-count"
>
...
...
Please
register
or
login
to post a comment