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
Plain Diff
Browse Files
Authored by
王涛
3 years ago
Commit
65e52c527233a51b54cc0253439e24b6720a59cc
2 parents
62fb8b95
7fcf1e49
Merge branch 'master-V32-XuHaoJie' into 'master'
天津-详情页面-监控连接状态添加过滤状态 See merge request
!201
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
12 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/commonDetail.js
hg-monitor-web-base/src/main/resources/static/src/style/css/main.css
hg-monitor-web-base/src/main/resources/static/src/controller/commonDetail.js
View file @
65e52c5
...
...
@@ -95,25 +95,59 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele
}
else
if
(
v
.
value
!=
'null'
){
valueStr
=
v
.
value
;
var
old
=
v
.
value
;
var
oldstr
=
old
.
replace
(
v
.
unit
,
''
);
if
(
"从不过期"
==
oldstr
){
valueStr
=
oldstr
;
}
else
{
if
(
v
.
id
==
'KPIA04D5BD0'
&&
parseInt
(
oldstr
)
>
7
){
fontColor
=
'color:#D81E06;'
;
var
oldstr
=
old
.
replace
(
v
.
unit
,
''
);
if
(
"从不过期"
==
oldstr
)
{
valueStr
=
oldstr
;
}
else
{
if
(
v
.
id
==
'KPIA04D5BD0'
&&
parseInt
(
oldstr
)
>
7
)
{
fontColor
=
'color:#D81E06;'
;
}
}
titleStr
=
valueStr
;
}
var
tips
=
'<a class="detail_row_menu hide">\n'
+
'<img style="width: 17px;height: 17px;" src="/src/style/img/icon_row_menu.png">\n'
+
'</a>'
var
menuId
=
""
;
if
(
v
.
id
==
'KPIE13DD9A3'
)
{
v
.
name
=
v
.
name
+
tips
;
menuId
=
"id=\""
+
targetId
+
"_detail_row_menu\""
;
}
var
$html
=
addIconByValue
(
valueStr
);
var
resStyle
=
obj
.
alarmEleMatchStyle
(
v
.
flag
,
v
.
id
);
li
+=
' <li><span style="text-align:left;width:40%">'
+
v
.
name
+
'</span>'
+
'<span title="'
+
titleStr
+
'" style="'
+
fontColor
+
'width:60%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;'
+
resStyle
+
'">'
+
$html
+
valueStr
+
'</span></li>'
var
resStyle
=
obj
.
alarmEleMatchStyle
(
v
.
flag
,
v
.
id
);
li
+=
' <li><span '
+
menuId
+
' style="text-align:left;width:40%">'
+
v
.
name
+
'</span>'
+
'<span title="'
+
titleStr
+
'" style="'
+
fontColor
+
'width:60%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;'
+
resStyle
+
'">'
+
$html
+
valueStr
+
'</span></li>'
});
$
(
"#"
+
targetId
).
html
(
li
);
fn
&&
fn
()
fn
&&
fn
();
//初始化监听告警压制需要的数据
var
rowMenu
=
$
(
'#'
+
targetId
).
find
(
'.detail_row_menu'
).
eq
(
0
);
rowMenu
.
attr
(
"data-id"
,
"KPIE13DD9A3"
);
rowMenu
.
attr
(
"data-flag"
,
""
);
rowMenu
.
attr
(
"data-name"
,
"监控连接状态"
);
rowMenu
.
attr
(
"data-kpiname"
,
"监控连接状态"
);
rowMenu
.
attr
(
"data-iswarning"
,
"1"
);
rowMenu
.
attr
(
"data-ident"
,
"1"
);
rowMenu
.
attr
(
"data-trend"
,
"0"
);
rowMenu
.
attr
(
"data-unit"
,
""
);
rowMenu
.
attr
(
'data-hidem'
,
'true'
);
rowMenu
.
attr
(
'data-canca'
,
data
.
canCA
);
rowMenu
.
attr
(
'data-incaing'
,
data
.
inCAing
);
rowMenu
.
attr
(
'data-restype'
,
data
.
resType
);
//监听告警压制等操作配置
$
(
'#'
+
targetId
+
"_detail_row_menu"
).
hover
(
function
()
{
var
$that
=
$
(
this
);
var
$btn
=
$that
.
find
(
".detail_row_menu"
);
if
(
$btn
.
length
>
0
)
{
$
(
".layui-card-body"
).
find
(
".detail_row_menu:not(.hide)"
).
addClass
(
"hide"
)
$btn
.
removeClass
(
"hide"
);
}
});
//监听过滤压制等事件
filterSuppressMonitor
(
resId
);
});
},
/**
...
...
hg-monitor-web-base/src/main/resources/static/src/style/css/main.css
View file @
65e52c5
...
...
@@ -7882,4 +7882,7 @@ form[lay-filter="activewarning-form"] .layui-inline {
}
.layui-logo
{
pointer-events
:
none
;
}
.detail_menubox
li
{
font-size
:
12px
!important
;
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment