Merge branch 'master' of http://113.200.75.45:82/monitor_v3/hg-monitor-web into master-v32-xwx
Showing
1 changed file
with
15 additions
and
8 deletions
@@ -3079,7 +3079,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele | @@ -3079,7 +3079,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele | ||
3079 | return; | 3079 | return; |
3080 | } | 3080 | } |
3081 | //url(/src/style/img/shutdown.png) | 3081 | //url(/src/style/img/shutdown.png) |
3082 | - title +=`<span id="title-shutdown" data-id=${resId} style="padding:0 5px;display: inline-block;position: relative;top: 8px;left:20px;"></span>` | 3082 | + title +=`<span id="title-shutdown" data-id=${resId} style="padding:0 5px;width:600px;display: inline-block;position: relative;top: 0px;left:20px;"></span>` |
3083 | obj.openNewWin(url, title, params, editFlag, fn, cancelfn, type,sign_); | 3083 | obj.openNewWin(url, title, params, editFlag, fn, cancelfn, type,sign_); |
3084 | }, | 3084 | }, |
3085 | error: function () { | 3085 | error: function () { |
@@ -3360,17 +3360,24 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele | @@ -3360,17 +3360,24 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele | ||
3360 | // | 3360 | // |
3361 | let carouselStr=` | 3361 | let carouselStr=` |
3362 | <img src="/src/style/img/shutdown.png" style="position: absolute;top: 0; left: -3px;" alt=""> | 3362 | <img src="/src/style/img/shutdown.png" style="position: absolute;top: 0; left: -3px;" alt=""> |
3363 | - <div class="layui-carousel shutdown-carousel " id="shutdown-carousel" style="background: transparent;"> | ||
3364 | - <div carousel-item>`; | 3363 | + <div style="background: transparent; height: 30px;font-size: 14px; color:#ff0000; display: flex;align-items: center;"> |
3364 | + <marquee id="marqueeDiv" behavior="scroll" direction="left" scrollamount="10" >`; | ||
3365 | let boxShadow='0 0 10px'; | 3365 | let boxShadow='0 0 10px'; |
3366 | listData.map((item,index)=>{ | 3366 | listData.map((item,index)=>{ |
3367 | - carouselStr+=` <div class="layui-row layui-col-space10" style="background: transparent;position: relative;" > | 3367 | + carouselStr+=item; |
3368 | + /* carouselStr+=` <div class="layui-row layui-col-space10" style="background: transparent;position: relative;" > | ||
3368 | <span style="font-size: 14px;color:#ff0000;padding:0 5px; height:30px;width:100%;position: absolute;top:0;left:0;right:0;">`+item+`</span> | 3369 | <span style="font-size: 14px;color:#ff0000;padding:0 5px; height:30px;width:100%;position: absolute;top:0;left:0;right:0;">`+item+`</span> |
3369 | - </div>`; | 3370 | + </div>`;*/ |
3370 | }) | 3371 | }) |
3371 | - carouselStr+=` </div></div>`; | 3372 | + carouselStr+=` </marquee></div>`; |
3372 | $('.layui-layer-title #title-shutdown').append(carouselStr); | 3373 | $('.layui-layer-title #title-shutdown').append(carouselStr); |
3373 | - //轮播切换 | 3374 | + $("#marqueeDiv").mouseenter(function (){ |
3375 | + this.stop(); | ||
3376 | + }) | ||
3377 | + $("#marqueeDiv").mouseout(function (){ | ||
3378 | + this.start(); | ||
3379 | + }) | ||
3380 | + /*//轮播切换 | ||
3374 | let options={ | 3381 | let options={ |
3375 | width: '630px' | 3382 | width: '630px' |
3376 | , height:'30px' | 3383 | , height:'30px' |
@@ -3386,7 +3393,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele | @@ -3386,7 +3393,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele | ||
3386 | elem: '#shutdown-carousel' | 3393 | elem: '#shutdown-carousel' |
3387 | }); | 3394 | }); |
3388 | //重置轮播 | 3395 | //重置轮播 |
3389 | - ins.reload(options); | 3396 | + ins.reload(options);*/ |
3390 | //end lsq 2022-05-24 | 3397 | //end lsq 2022-05-24 |
3391 | } | 3398 | } |
3392 | } | 3399 | } |
-
Please register or login to post a comment