Merge branch 'master-v32-lushangqing' into 'master'
活动告警页面表格tip展示优化 See merge request !337
Showing
1 changed file
with
5 additions
and
3 deletions
@@ -637,22 +637,24 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common', | @@ -637,22 +637,24 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common', | ||
637 | field: 'alarmNo', title: '告警编号', align: 'center', width: 140, sort: true, | 637 | field: 'alarmNo', title: '告警编号', align: 'center', width: 140, sort: true, |
638 | } | 638 | } |
639 | , { | 639 | , { |
640 | - field: 'resName', title: '资源名称', width: 230, sort: true, | 640 | + field: 'resName', title: '资源名称', width: 250, sort: true, |
641 | templet:` | 641 | templet:` |
642 | <div> | 642 | <div> |
643 | + <div style="display: flex;align-items: center;"> | ||
643 | {{# if (d.confirmStatus == 0 || d.confirmStatus == null) { }} | 644 | {{# if (d.confirmStatus == 0 || d.confirmStatus == null) { }} |
644 | <i lay-tips="新的告警未确认,告警确认后消失!" class="shake iconfont" style="color: red;font-size: 28px;"></i> | 645 | <i lay-tips="新的告警未确认,告警确认后消失!" class="shake iconfont" style="color: red;font-size: 28px;"></i> |
645 | {{# } }} | 646 | {{# } }} |
646 | {{# if(d.isBus == 'N'){ }} | 647 | {{# if(d.isBus == 'N'){ }} |
647 | - <span data-isBus="{{d.isBus}}" data-resid="{{d.resId}}" data-restype="{{d.resType}}" data-warn-zymc="{{d.id}}" data-ip="{{d.ip}}" | 648 | + <span lay-tips="{{ d.resName }}" style="margin:0 5px;max-width: 160px;overflow: hidden; text-overflow: ellipsis; white-space: nowrap;display: inline-block;" data-isBus="{{d.isBus}}" data-resid="{{d.resId}}" data-restype="{{d.resType}}" data-warn-zymc="{{d.id}}" data-ip="{{d.ip}}" |
648 | data-resname="{{d.resName}}" data-pingenable="{{d.pingEnable}}" class="layui-table-link">{{d.resName}}</span> | 649 | data-resname="{{d.resName}}" data-pingenable="{{d.pingEnable}}" class="layui-table-link">{{d.resName}}</span> |
649 | {{# }else{ }} | 650 | {{# }else{ }} |
650 | - <span data-isBus="{{d.isBus}}" data-resid="{{d.resId}}" data-restype="{{d.resType}}" data-warn-zymc="{{d.id}}" data-ip="{{d.ip}}" | 651 | + <span lay-tips="{{ d.resName }}" style="margin:0 5px;max-width: 160px;overflow: hidden; text-overflow: ellipsis; white-space: nowrap;display: inline-block;" data-isBus="{{d.isBus}}" data-resid="{{d.resId}}" data-restype="{{d.resType}}" data-warn-zymc="{{d.id}}" data-ip="{{d.ip}}" |
651 | data-resname="{{d.resName}}" data-pingenable="{{d.pingEnable}}" >{{d.resName}}</span> | 652 | data-resname="{{d.resName}}" data-pingenable="{{d.pingEnable}}" >{{d.resName}}</span> |
652 | {{# } }} | 653 | {{# } }} |
653 | <a class="layui-icon reslist-view-topo hide" data-resid="{{d.resId}}" lay-tips="查看资源拓扑"><i class="iconfont" style="font-size: 20px; | 654 | <a class="layui-icon reslist-view-topo hide" data-resid="{{d.resId}}" lay-tips="查看资源拓扑"><i class="iconfont" style="font-size: 20px; |
654 | color: #FEB61E;"></i></a> | 655 | color: #FEB61E;"></i></a> |
655 | </div> | 656 | </div> |
657 | + </div> | ||
656 | ` | 658 | ` |
657 | } | 659 | } |
658 | , { | 660 | , { |
-
Please register or login to post a comment