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
鲁尚清
3 years ago
Commit
54b2a18d52ddf9da30cf2de9a36b584758b23c8f
1 parent
b4c1ac9c
【#831】 详情页展示停机计划状态-跑马灯更换背景图片
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/commonDetail.js
hg-monitor-web-base/src/main/resources/static/src/style/img/shutdown.png
hg-monitor-web-base/src/main/resources/static/src/controller/commonDetail.js
View file @
54b2a18
...
...
@@ -3078,7 +3078,8 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele
layer
.
alert
(
'该资源只对接TRAP告警信息!'
,{
icon
:
0
});
return
;
}
title
+=
`
<
span
id
=
"title-shutdown"
data
-
id
=
$
{
resId
}
style
=
"display: inline-block; position: relative;top: 8px;left:20px;"
><
/span>
`
//url(/src/style/img/shutdown.png)
title
+=
`
<
span
id
=
"title-shutdown"
data
-
id
=
$
{
resId
}
style
=
"padding:0 5px;display: inline-block;position: relative;top: 8px;left:20px;"
><
/span>
`
obj
.
openNewWin
(
url
,
title
,
params
,
editFlag
,
fn
,
cancelfn
,
type
,
sign_
);
},
error
:
function
()
{
...
...
@@ -3356,11 +3357,18 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele
,
done
:
function
(
res
)
{
if
(
res
.
data
&&
res
.
data
.
length
>
0
){
let
listData
=
res
.
data
;
let
carouselStr
=
`
<
div
class
=
"layui-carousel shutdown-carousel "
id
=
"shutdown-carousel"
style
=
"background: #d0ddec;"
>
//
let
carouselStr
=
`
<
img
src
=
"/src/style/img/shutdown.png"
style
=
"position: absolute;top: 0; left: -3px;"
alt
=
""
>
<
div
class
=
"layui-carousel shutdown-carousel "
id
=
"shutdown-carousel"
style
=
"background: transparent;"
>
<
div
carousel
-
item
>
`
;
listData
.
map
(
item
=>
{
carouselStr
+=
`
<
div
class
=
"layui-row layui-col-space10"
style
=
"background: #d0ddec;font-size: 14px;"
>
<
span
>
`
+
item
+
`
<
/span
>
let
boxShadow
=
'0 0 10px'
;
listData
.
map
((
item
,
index
)
=>
{
if
((
index
+
1
)
%
2
==
0
){
// boxShadow='10px 10px 10px';
}
carouselStr
+=
`
<
div
class
=
"layui-row layui-col-space10"
style
=
"background: transparent;position: relative;"
>
<
span
style
=
"font-size: 14px;color:#ff0000;padding:0 5px; height:30px;width:100%;position: absolute;top:0;left:0;right:0;"
>
`
+
item
+
`
<
/span
>
<
/div>`
;
})
carouselStr
+=
`
<
/div></
div
>
`
;
...
...
hg-monitor-web-base/src/main/resources/static/src/style/img/shutdown.png
0 → 100644
View file @
54b2a18
3.74 KB
Please
register
or
login
to post a comment