Merge branch 'master-500-dev-lushangqing' into 'master-500-dev'
【973】 阿里云和深信服负载均衡详情页优化-深信服负载均衡详情页优化 See merge request !835
Showing
6 changed files
with
74 additions
and
48 deletions
@@ -91,24 +91,27 @@ layui.define(['laypage', 'commonDetail', 'common', 'element', 'admin'], function | @@ -91,24 +91,27 @@ layui.define(['laypage', 'commonDetail', 'common', 'element', 'admin'], function | ||
91 | } | 91 | } |
92 | }) | 92 | }) |
93 | for (let nodeInfo of nodeInfoList) { | 93 | for (let nodeInfo of nodeInfoList) { |
94 | + // lsq 详情页节电池样式修改 2022-08-08 | ||
94 | htmlStr += `<div class="detail-loadbalancing-vs" data-flag="${nodeInfo.flag}"> | 95 | htmlStr += `<div class="detail-loadbalancing-vs" data-flag="${nodeInfo.flag}"> |
95 | <div class="vs-title"> | 96 | <div class="vs-title"> |
96 | <p>${nodeInfo.nodeName}</p> | 97 | <p>${nodeInfo.nodeName}</p> |
97 | </div> | 98 | </div> |
98 | - <div class="vs-icon-div ${nodeInfo.healthStatus == 'normal' ? 'vs-icon-up' : 'vs-icon-down'}"> | ||
99 | - <div class="vs-icon"></div> | 99 | + <div class="vs-flex"> |
100 | + <div class="vs-icon-div ${nodeInfo.healthStatus == 'normal' ? 'vs-icon-up' : 'vs-icon-down'}"> | ||
101 | + <div class="vs-icon"></div> | ||
102 | + </div> | ||
103 | + <ul class="vs-info"> | ||
104 | + <li> | ||
105 | + ${nodeInfo.configStatus == 'enable' ? '<i class="iconfont icon-size good">\ue659</i> 已启用' : '<i class="iconfont icon-size serious">\ue668</i> 未启用'} | ||
106 | + </li> | ||
107 | + <li> | ||
108 | + 当前连接数: ${nodeInfo.currentConnections} | ||
109 | + </li> | ||
110 | + <li> | ||
111 | + 新增连接数: ${nodeInfo.newConnections} | ||
112 | + </li> | ||
113 | + </ul> | ||
100 | </div> | 114 | </div> |
101 | - <ul class="vs-info"> | ||
102 | - <li> | ||
103 | - ${nodeInfo.configStatus == 'enable' ? '<i class="iconfont icon-size good">\ue659</i> 已启用' : '<i class="iconfont icon-size serious">\ue668</i> 未启用'} | ||
104 | - </li> | ||
105 | - <li> | ||
106 | - 当前连接数: ${nodeInfo.currentConnections} | ||
107 | - </li> | ||
108 | - <li> | ||
109 | - 新增连接数: ${nodeInfo.newConnections} | ||
110 | - </li> | ||
111 | - </ul> | ||
112 | </div>` | 115 | </div>` |
113 | } | 116 | } |
114 | $vsDiv.html(htmlStr) | 117 | $vsDiv.html(htmlStr) |
@@ -168,27 +171,30 @@ layui.define(['laypage', 'commonDetail', 'common', 'element', 'admin'], function | @@ -168,27 +171,30 @@ layui.define(['laypage', 'commonDetail', 'common', 'element', 'admin'], function | ||
168 | } | 171 | } |
169 | }) | 172 | }) |
170 | for (let nodeInfo of nodeInfoList) { | 173 | for (let nodeInfo of nodeInfoList) { |
174 | + // lsq 详情页节电池样式修改 2022-08-08 | ||
171 | htmlStr += `<div class="detail-loadbalancing-vs" data-flag="${nodeInfo.flag}"> | 175 | htmlStr += `<div class="detail-loadbalancing-vs" data-flag="${nodeInfo.flag}"> |
172 | <div class="vs-title"> | 176 | <div class="vs-title"> |
173 | <p>${nodeInfo.nodeName}</p> | 177 | <p>${nodeInfo.nodeName}</p> |
174 | </div> | 178 | </div> |
175 | - <div class="node-icon-div ${nodeInfo.healthStatus == 'normal' ? 'vs-icon-up' : 'vs-icon-down'}"> | ||
176 | - <div class="node-icon"></div> | 179 | + <div class="vs-flex"> |
180 | + <div class="node-icon-div ${nodeInfo.healthStatus == 'normal' ? 'vs-icon-up' : 'vs-icon-down'}"> | ||
181 | + <div class="node-icon"></div> | ||
182 | + </div> | ||
183 | + <ul class="vs-info"> | ||
184 | + <li> | ||
185 | + ${nodeInfo.configStatus == 'enable' ? '<i class="iconfont icon-size good">\ue659</i> 已启用' : '<i class="iconfont icon-size serious">\ue668</i> 未启用'} | ||
186 | + </li> | ||
187 | + <li> | ||
188 | + 当前连接数: ${nodeInfo.currentConnections} | ||
189 | + </li> | ||
190 | + <li> | ||
191 | + 新增连接数: ${nodeInfo.newConnections} | ||
192 | + </li> | ||
193 | + <li> | ||
194 | + ${nodeInfo.ipAddr}:${nodeInfo.port} | ||
195 | + </li> | ||
196 | + </ul> | ||
177 | </div> | 197 | </div> |
178 | - <ul class="vs-info"> | ||
179 | - <li> | ||
180 | - ${nodeInfo.configStatus == 'enable' ? '<i class="iconfont icon-size good">\ue659</i> 已启用' : '<i class="iconfont icon-size serious">\ue668</i> 未启用'} | ||
181 | - </li> | ||
182 | - <li> | ||
183 | - 当前连接数: ${nodeInfo.currentConnections} | ||
184 | - </li> | ||
185 | - <li> | ||
186 | - 新增连接数: ${nodeInfo.newConnections} | ||
187 | - </li> | ||
188 | - <li> | ||
189 | - ${nodeInfo.ipAddr}:${nodeInfo.port} | ||
190 | - </li> | ||
191 | - </ul> | ||
192 | </div>` | 198 | </div>` |
193 | } | 199 | } |
194 | $vsDiv.html(htmlStr) | 200 | $vsDiv.html(htmlStr) |
@@ -537,16 +537,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect | @@ -537,16 +537,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect | ||
537 | resType: resType, | 537 | resType: resType, |
538 | isSend: $('#notice_search_isSend').val() | 538 | isSend: $('#notice_search_isSend').val() |
539 | }; | 539 | }; |
540 | - var typeName = new Map(); | ||
541 | - typeName.set("10", "告警通知"); | ||
542 | - typeName.set("11", "告警消除"); | ||
543 | - //2021-10-15 添加合并通知 XuHaoJie | ||
544 | - typeName.set("13", "合并通知"); | ||
545 | - typeName.set("20", "巡检报表通知"); | ||
546 | - typeName.set("30", "系统通知"); | ||
547 | - typeName.set("40", "工单通知"); | ||
548 | - typeName.set("99", "测试通知"); | ||
549 | - typeName.set("0", "测试通知"); | 540 | + //lsq 分类分组统计的x轴标签显示undefined修改 2022-08-08 |
550 | $.ajax({ | 541 | $.ajax({ |
551 | url: `${common.domainName}/api-web/notice/groupByType`, | 542 | url: `${common.domainName}/api-web/notice/groupByType`, |
552 | method: 'GET', | 543 | method: 'GET', |
@@ -556,7 +547,8 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect | @@ -556,7 +547,8 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect | ||
556 | var yData = []; | 547 | var yData = []; |
557 | if (res && res.map) { | 548 | if (res && res.map) { |
558 | $.each(res.map.typeList, function (i, v) { | 549 | $.each(res.map.typeList, function (i, v) { |
559 | - xData.push(typeName.get(v)) | 550 | + //lsq 分类分组统计的x轴标签显示undefined修改 2022-08-08 |
551 | + xData.push(v) | ||
560 | }) | 552 | }) |
561 | yData = res.map.countList; | 553 | yData = res.map.countList; |
562 | } | 554 | } |
@@ -325,7 +325,20 @@ layui.define(['admin', 'form', 'table', 'element', 'sessions', 'common', 'echart | @@ -325,7 +325,20 @@ layui.define(['admin', 'form', 'table', 'element', 'sessions', 'common', 'echart | ||
325 | color: '#333', | 325 | color: '#333', |
326 | show: true, | 326 | show: true, |
327 | interval: 0, | 327 | interval: 0, |
328 | - rotate: 15 | 328 | + rotate: 15, |
329 | + formatter: val => { | ||
330 | + // 一行字数 | ||
331 | + const max = 6 | ||
332 | + // 标签长度 | ||
333 | + const valLength = val.length | ||
334 | + // 换行数 | ||
335 | + const rowNum = valLength / 6 | ||
336 | + if (valLength > 6) { | ||
337 | + return val.slice(0,5) + '...'; | ||
338 | + } else { | ||
339 | + return val | ||
340 | + } | ||
341 | + } | ||
329 | }, | 342 | }, |
330 | axisLine: { | 343 | axisLine: { |
331 | lineStyle: { | 344 | lineStyle: { |
@@ -7992,12 +7992,13 @@ table.table-duty tbody td div.table-duty-td-day .duty-td-div-now { | @@ -7992,12 +7992,13 @@ table.table-duty tbody td div.table-duty-td-day .duty-td-div-now { | ||
7992 | /*通知页面中间统计图布局样式*/ | 7992 | /*通知页面中间统计图布局样式*/ |
7993 | 7993 | ||
7994 | .detail-loadbalancing-vs { | 7994 | .detail-loadbalancing-vs { |
7995 | - width: calc(12.5% - 22px); | 7995 | + /*lsq 详情页节电池样式修改 2022-08-08*/ |
7996 | + width: calc(14% - 0px); | ||
7996 | height: 115px; | 7997 | height: 115px; |
7997 | margin: 5px; | 7998 | margin: 5px; |
7998 | float: left; | 7999 | float: left; |
7999 | border: 1px solid #dcdcdc; | 8000 | border: 1px solid #dcdcdc; |
8000 | - padding: 10px 20px; | 8001 | + padding: 10px; |
8001 | border-radius: 5px; | 8002 | border-radius: 5px; |
8002 | cursor: pointer; | 8003 | cursor: pointer; |
8003 | } | 8004 | } |
@@ -8006,15 +8007,20 @@ table.table-duty tbody td div.table-duty-td-day .duty-td-div-now { | @@ -8006,15 +8007,20 @@ table.table-duty tbody td div.table-duty-td-day .duty-td-div-now { | ||
8006 | font-size: 15px; | 8007 | font-size: 15px; |
8007 | font-weight: bold; | 8008 | font-weight: bold; |
8008 | height: 30px; | 8009 | height: 30px; |
8010 | + word-wrap: break-word; | ||
8009 | } | 8011 | } |
8010 | 8012 | ||
8011 | .detail-loadbalancing-vs .vs-title { | 8013 | .detail-loadbalancing-vs .vs-title { |
8012 | margin-bottom: 10px; | 8014 | margin-bottom: 10px; |
8013 | } | 8015 | } |
8014 | - | 8016 | +/*lsq 详情页节点池样式修改 2022-08-08*/ |
8017 | +.detail-loadbalancing-vs .vs-flex{ | ||
8018 | + display: flex; | ||
8019 | + align-items: center; | ||
8020 | +} | ||
8015 | .detail-loadbalancing-vs div.vs-icon-div { | 8021 | .detail-loadbalancing-vs div.vs-icon-div { |
8016 | - width: 55px; | ||
8017 | - height: 55px; | 8022 | + width: 45px; |
8023 | + height: 45px; | ||
8018 | padding: 4px; | 8024 | padding: 4px; |
8019 | float: left; | 8025 | float: left; |
8020 | border-radius: 10px; | 8026 | border-radius: 10px; |
@@ -8030,8 +8036,8 @@ table.table-duty tbody td div.table-duty-td-day .duty-td-div-now { | @@ -8030,8 +8036,8 @@ table.table-duty tbody td div.table-duty-td-day .duty-td-div-now { | ||
8030 | } | 8036 | } |
8031 | 8037 | ||
8032 | .detail-loadbalancing-vs div.vs-icon { | 8038 | .detail-loadbalancing-vs div.vs-icon { |
8033 | - width: 50px; | ||
8034 | - height: 50px; | 8039 | + width: 40px; |
8040 | + height: 40px; | ||
8035 | background-repeat: no-repeat; | 8041 | background-repeat: no-repeat; |
8036 | background-position: center; | 8042 | background-position: center; |
8037 | background-image: url(/src/style/img/icon-db.png); | 8043 | background-image: url(/src/style/img/icon-db.png); |
@@ -8062,6 +8068,8 @@ table.table-duty tbody td div.table-duty-td-day .duty-td-div-now { | @@ -8062,6 +8068,8 @@ table.table-duty tbody td div.table-duty-td-day .duty-td-div-now { | ||
8062 | width: 61%; | 8068 | width: 61%; |
8063 | float: left; | 8069 | float: left; |
8064 | padding-left: 10px; | 8070 | padding-left: 10px; |
8071 | + /*lsq 详情页节点池样式修改 2022-08-08*/ | ||
8072 | + flex:1; | ||
8065 | } | 8073 | } |
8066 | 8074 | ||
8067 | .detail-loadbalancing-vs .vs-info li { | 8075 | .detail-loadbalancing-vs .vs-info li { |
@@ -8552,3 +8560,6 @@ form.layui-card-header.layuiadmin-card-header-auto { | @@ -8552,3 +8560,6 @@ form.layui-card-header.layuiadmin-card-header-auto { | ||
8552 | .res .layui-card-body{ | 8560 | .res .layui-card-body{ |
8553 | background: #ffffff; | 8561 | background: #ffffff; |
8554 | } | 8562 | } |
8563 | +.layui-layer-tips{ | ||
8564 | + word-break: break-all; | ||
8565 | +} |
@@ -1135,6 +1135,8 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common', | @@ -1135,6 +1135,8 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common', | ||
1135 | }); | 1135 | }); |
1136 | //告警级别 | 1136 | //告警级别 |
1137 | form.on('select(alarmLevelSearch)', function (data) { | 1137 | form.on('select(alarmLevelSearch)', function (data) { |
1138 | + //lsq 切换告警级别时,获取统计告警量接口的参数更改 2022-08-08 | ||
1139 | + alarmLevel = $("#alarmLevelSearchBox").val() | ||
1138 | reloadTable(); | 1140 | reloadTable(); |
1139 | }); | 1141 | }); |
1140 | // 告警确认 | 1142 | // 告警确认 |
@@ -921,6 +921,8 @@ | @@ -921,6 +921,8 @@ | ||
921 | class="layui-btn layui-btn-danger layui-bg-red layui-btn-radius layui-btn-xs p-0-15 cant-click"> | 921 | class="layui-btn layui-btn-danger layui-bg-red layui-btn-radius layui-btn-xs p-0-15 cant-click"> |
922 | 失败 | 922 | 失败 |
923 | </button>`; | 923 | </button>`; |
924 | + /*lsq 连接失败时tips显示连接失败 2022-08-08*/ | ||
925 | + linkStateTips='连接失败'; | ||
924 | } | 926 | } |
925 | } | 927 | } |
926 | }} | 928 | }} |
-
Please register or login to post a comment