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
f340a5349a1a330eb08d4b45f7a29a8f7a0a2fb7
1 parent
2278a05e
【835】 【停机计划】 详情页展示停机计划状态,停机计划名称过长时间展示不下-更改为marquee,鼠标移入到文字暂停,移除继续
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/commonDetail.js
hg-monitor-web-base/src/main/resources/static/src/controller/commonDetail.js
View file @
f340a53
...
...
@@ -3079,7 +3079,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele
return
;
}
//url(/src/style/img/shutdown.png)
title
+=
`
<
span
id
=
"title-shutdown"
data
-
id
=
$
{
resId
}
style
=
"padding:0 5px;
display: inline-block;position: relative;top: 8
px;left:20px;"
><
/span>
`
title
+=
`
<
span
id
=
"title-shutdown"
data
-
id
=
$
{
resId
}
style
=
"padding:0 5px;
width:600px;display: inline-block;position: relative;top: 0
px;left:20px;"
><
/span>
`
obj
.
openNewWin
(
url
,
title
,
params
,
editFlag
,
fn
,
cancelfn
,
type
,
sign_
);
},
error
:
function
()
{
...
...
@@ -3360,17 +3360,24 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele
//
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
>
`
;
<
div
style
=
"background: transparent; height: 30px;font-size: 14px; color:#ff0000; display: flex;align-items: center;"
>
<
marquee
id
=
"marqueeDiv"
behavior
=
"scroll"
direction
=
"left"
scrollamount
=
"10"
>
`
;
let
boxShadow
=
'0 0 10px'
;
listData
.
map
((
item
,
index
)
=>
{
carouselStr
+=
`
<
div
class
=
"layui-row layui-col-space10"
style
=
"background: transparent;position: relative;"
>
carouselStr
+=
item
;
/* 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>`
;
</div>`;
*/
})
carouselStr
+=
`
<
/
div
></
div
>
`
;
carouselStr
+=
`
<
/
marquee
></
div
>
`
;
$
(
'.layui-layer-title #title-shutdown'
).
append
(
carouselStr
);
//轮播切换
$
(
"#marqueeDiv"
).
mouseenter
(
function
(){
this
.
stop
();
})
$
(
"#marqueeDiv"
).
mouseout
(
function
(){
this
.
start
();
})
/*//轮播切换
let options={
width: '630px'
, height:'30px'
...
...
@@ -3386,7 +3393,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele
elem: '#shutdown-carousel'
});
//重置轮播
ins
.
reload
(
options
);
ins.reload(options);
*/
//end lsq 2022-05-24
}
}
...
...
Please
register
or
login
to post a comment