【#831】 详情页展示停机计划状态-跑马灯更换背景图片
Showing
2 changed files
with
13 additions
and
5 deletions
@@ -3078,7 +3078,8 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele | @@ -3078,7 +3078,8 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele | ||
3078 | layer.alert('该资源只对接TRAP告警信息!',{icon:0}); | 3078 | layer.alert('该资源只对接TRAP告警信息!',{icon:0}); |
3079 | return; | 3079 | return; |
3080 | } | 3080 | } |
3081 | - title +=`<span id="title-shutdown" data-id=${resId} style="display: inline-block; position: relative;top: 8px;left:20px;"></span>` | 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 | obj.openNewWin(url, title, params, editFlag, fn, cancelfn, type,sign_); | 3083 | obj.openNewWin(url, title, params, editFlag, fn, cancelfn, type,sign_); |
3083 | }, | 3084 | }, |
3084 | error: function () { | 3085 | error: function () { |
@@ -3356,11 +3357,18 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele | @@ -3356,11 +3357,18 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele | ||
3356 | , done: function (res) { | 3357 | , done: function (res) { |
3357 | if(res.data && res.data.length>0){ | 3358 | if(res.data && res.data.length>0){ |
3358 | let listData=res.data; | 3359 | let listData=res.data; |
3359 | - let carouselStr=`<div class="layui-carousel shutdown-carousel " id="shutdown-carousel" style="background: #d0ddec;"> | 3360 | + // |
3361 | + let carouselStr=` | ||
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;"> | ||
3360 | <div carousel-item>`; | 3364 | <div carousel-item>`; |
3361 | - listData.map(item=>{ | ||
3362 | - carouselStr+=` <div class="layui-row layui-col-space10" style="background: #d0ddec;font-size: 14px;"> | ||
3363 | - <span>`+item+`</span> | 3365 | + let boxShadow='0 0 10px'; |
3366 | + listData.map((item,index)=>{ | ||
3367 | + if((index+1)%2==0){ | ||
3368 | + // boxShadow='10px 10px 10px'; | ||
3369 | + } | ||
3370 | + carouselStr+=` <div class="layui-row layui-col-space10" style="background: transparent;position: relative;" > | ||
3371 | + <span style="font-size: 14px;color:#ff0000;padding:0 5px; height:30px;width:100%;position: absolute;top:0;left:0;right:0;">`+item+`</span> | ||
3364 | </div>`; | 3372 | </div>`; |
3365 | }) | 3373 | }) |
3366 | carouselStr+=` </div></div>`; | 3374 | carouselStr+=` </div></div>`; |

3.74 KB
-
Please register or login to post a comment