Authored by 王涛

Merge branch 'master-V32-XuHaoJie' into 'master'

杭州-资源视图-通知统计的柱子从60%宽度调整成40%



See merge request !104
@@ -376,7 +376,8 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin', @@ -376,7 +376,8 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin',
376 {field: 'state', title: '资源状态', width: 98, align: 'center', sort: true, templet: '#resStateTpl'}, 376 {field: 'state', title: '资源状态', width: 98, align: 'center', sort: true, templet: '#resStateTpl'},
377 {field: 'health', title: '健康状态', width: 83, align: 'center', sort: true, templet: '#healthTpl'}, 377 {field: 'health', title: '健康状态', width: 83, align: 'center', sort: true, templet: '#healthTpl'},
378 {field: 'lastColTime', title: '最近采集时间', width: 161, align: 'center', sort: true}, 378 {field: 'lastColTime', title: '最近采集时间', width: 161, align: 'center', sort: true},
379 - {field: 'linkState', title: '连接状态', align: 'center', width: 85, templet: '#linkStateTpl', sort: true} 379 + // 2021-11-22 徐毫杰 连接状态无数据改成展示主机状态
  380 + {field: 'hostState', title: '主机状态', align: 'center', minWidth: x_110, templet: '#hostStateTpl', sort: true}
380 ], 381 ],
381 "HUAWEI_CLOUD_VIRTUALHOST": [ 382 "HUAWEI_CLOUD_VIRTUALHOST": [
382 //{type: 'numbers', title: '序号', align: 'center', fixed: 'left'}, 383 //{type: 'numbers', title: '序号', align: 'center', fixed: 'left'},
@@ -197,7 +197,7 @@ layui.define(['common', 'admin', 'echarts', 'common', 'table', 'sessions'], func @@ -197,7 +197,7 @@ layui.define(['common', 'admin', 'echarts', 'common', 'table', 'sessions'], func
197 series: [ 197 series: [
198 { 198 {
199 type: 'bar', 199 type: 'bar',
200 - barWidth: '60%', 200 + barWidth: '40%',
201 data: line, 201 data: line,
202 itemStyle: { 202 itemStyle: {
203 normal: { 203 normal: {
@@ -810,6 +810,10 @@ @@ -810,6 +810,10 @@
810 <button type="button" class="layui-btn layui-bg-red layui-btn-radius layui-btn-xs p-0-15 cant-click"> 810 <button type="button" class="layui-btn layui-bg-red layui-btn-radius layui-btn-xs p-0-15 cant-click">
811 断开连接 811 断开连接
812 </button> 812 </button>
  813 + {{# }else if(d.hostState != null && d.hostState == '正常'){ }}
  814 + <button type="button" class="layui-btn layui-bg-green layui-btn-radius layui-btn-xs p-0-15 cant-click">
  815 + 正常
  816 + </button>
813 {{# }else{ }} 817 {{# }else{ }}
814 <button type="button" 818 <button type="button"
815 class="layui-btn layui-btn-radius layui-bg-gray layui-btn-xs p-0-15 cant-click">{{ 819 class="layui-btn layui-btn-radius layui-bg-gray layui-btn-xs p-0-15 cant-click">{{