Merge branch 'master-500-dev-lushangqing' into 'master-500-dev'
【1018】停机管理菜单名称改成停机计划,配置完成后没有跑马灯的效果 See merge request !876
Showing
1 changed file
with
38 additions
and
0 deletions
@@ -3494,6 +3494,9 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele | @@ -3494,6 +3494,9 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele | ||
3494 | layer.alert('该资源只对接TRAP告警信息!', {icon: 0}); | 3494 | layer.alert('该资源只对接TRAP告警信息!', {icon: 0}); |
3495 | return; | 3495 | return; |
3496 | } | 3496 | } |
3497 | + //lsq 停机计划跑马灯 2022-08-19 | ||
3498 | + title +=`<span id="title-shutdown" data-id=${resId} style="padding:0 5px;width:600px;display: inline-block;position: relative;top: 0px;left:20px;"></span>` | ||
3499 | + | ||
3497 | obj.openNewWin(url, title, params, editFlag, fn, cancelfn, type, sign_); | 3500 | obj.openNewWin(url, title, params, editFlag, fn, cancelfn, type, sign_); |
3498 | }, | 3501 | }, |
3499 | error: function () { | 3502 | error: function () { |
@@ -3855,6 +3858,41 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele | @@ -3855,6 +3858,41 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele | ||
3855 | // layer.close(detailTips); | 3858 | // layer.close(detailTips); |
3856 | // } | 3859 | // } |
3857 | // }) | 3860 | // }) |
3861 | + //start lsq 增加停机状态跑马灯效果 2022-05-24 | ||
3862 | + let resId= $('#title-shutdown').data("id"); | ||
3863 | + admin.req({ | ||
3864 | + url: common.domainName + '/api-web/manage/cutover/findByResId' + '?resId=' + resId | ||
3865 | + , async: false | ||
3866 | + , done: function (res) { | ||
3867 | + if(res.data && res.data.length>0){ | ||
3868 | + let listData=res.data; | ||
3869 | + $('#title-shutdown').css("width",'600px') | ||
3870 | + let carouselStr=` | ||
3871 | + <img src="/src/style/img/shutdown.png" style="position: absolute;top: 0; left: -3px;" alt=""> | ||
3872 | + <div style="background: transparent; height: 30px;font-size: 14px; color:#ff0000; display: flex;align-items: center;"> | ||
3873 | + <marquee id="marqueeDiv" behavior="scroll" direction="left" scrollamount="10" >`; | ||
3874 | + let boxShadow='0 0 10px'; | ||
3875 | + listData.map((item,index)=>{ | ||
3876 | + carouselStr+=item; | ||
3877 | + /* carouselStr+=` <div class="layui-row layui-col-space10" style="background: transparent;position: relative;" > | ||
3878 | + <span style="font-size: 14px;color:#ff0000;padding:0 5px; height:30px;width:100%;position: absolute;top:0;left:0;right:0;">`+item+`</span> | ||
3879 | + </div>`;*/ | ||
3880 | + }) | ||
3881 | + carouselStr+=` </marquee></div>`; | ||
3882 | + $('.layui-layer-title #title-shutdown').append(carouselStr); | ||
3883 | + $("#marqueeDiv").mouseenter(function (){ | ||
3884 | + this.stop(); | ||
3885 | + }) | ||
3886 | + $("#marqueeDiv").mouseout(function (){ | ||
3887 | + this.start(); | ||
3888 | + }) | ||
3889 | + | ||
3890 | + //end lsq 2022-05-24 | ||
3891 | + }else{ | ||
3892 | + $('#title-shutdown').css("width",'0px') | ||
3893 | + } | ||
3894 | + } | ||
3895 | + }) | ||
3858 | }, | 3896 | }, |
3859 | yes: function (index) { | 3897 | yes: function (index) { |
3860 | layer.close(index); | 3898 | layer.close(index); |
-
Please register or login to post a comment