Authored by xwx

人大金仓-【1059】-界面列表列宽调整

@@ -4840,20 +4840,27 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin', @@ -4840,20 +4840,27 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin',
4840 {field: 'state', title: '资源状态', width: 110, align: 'center', sort: true, templet: '#resStateTpl'} 4840 {field: 'state', title: '资源状态', width: 110, align: 'center', sort: true, templet: '#resStateTpl'}
4841 ], 4841 ],
4842 "DATABASE_KINGBASE": [ 4842 "DATABASE_KINGBASE": [
4843 - {field: 'ip', title: 'IP地址', width: 130, align: 'center', sort: true}, 4843 + //{type: 'numbers', title: '序号', align: 'center', fixed: 'left'},
  4844 + {field: 'ip', title: 'IP地址', minWidth: x_130, align: 'center', sort: true},
4844 { 4845 {
4845 - field: 'resName', title: '资源名称', width: resNameWidth, sort: true,  
4846 - templet: '<div><span data-zymc="{{ d.resId }}" data-restype="{{d.resType}}" data-name="{{d.resName}}" data-childrennum="{{d.childrenNum}}" data-ip="{{ d.ip }}" data-resTypeName="{{ d.resTypeName }}" data-admin="{{ d.admin }}" data-adminName="{{ d.adminName }}" data-pingenable="{{d.pingEnable}}" class="layui-table-link">{{ d.resName }}</span></div>' 4846 + field: 'resName', title: '资源名称', minWidth: x_330, sort: true,
  4847 + templet: '#resindex_resName'
4847 }, 4848 },
4848 - // {field: 'shortName', title: '别名', width: 100, align: 'center', sort: true, templet:'#shortNameTpl'},  
4849 - {field: 'resTypeName', title: '资源类型', width: 101, align: 'center'},  
4850 - {field: 'adminName', title: '负责人', width: 123, align: 'center', sort: true},  
4851 - {field: 'adminPhone', title: '负责人电话', width: 118, align: 'center', sort: true},  
4852 - {field: 'state', title: '资源状态', width: 105, align: 'center', sort: true, templet: '#resStateTpl'},  
4853 - {field: 'health', title: '健康状态', width: 100, align: 'center', sort: true, templet: '#healthTpl'},  
4854 - {field: 'lastColTime', title: '最近采集时间', width: 151, align: 'center', sort: true},  
4855 - {field: 'linkState', title: '连接状态', align: 'center', width: 100, templet: '#linkStateTpl', sort: true}  
4856 - ], 4849 + {field: 'resTypeName', title: '资源类型', minWidth: x_120, align: 'center'},
  4850 + {field: 'adminName', title: '负责人', minWidth: x_130, align: 'center', sort: true},
  4851 + {field: 'adminPhone', title: '负责人电话', minWidth: x_140, align: 'center', sort: true},
  4852 + {field: 'state', title: '资源状态', minWidth: x_110, align: 'center', sort: true, templet: '#resStateTpl'},
  4853 + {field: 'health', title: '健康状态', minWidth: x_110, align: 'center', sort: true, templet: '#healthTpl'},
  4854 + {field: 'lastColTime', title: '最近采集时间', minWidth: x_160, align: 'center', sort: true},
  4855 + {
  4856 + field: 'linkState',
  4857 + title: '连接状态',
  4858 + align: 'center',
  4859 + minWidth: x_110,
  4860 + templet: '#linkStateTpl',
  4861 + sort: true
  4862 + }
  4863 + ]
4857 }, 4864 },
4858 /** 4865 /**
4859 * 验证是否跳转详情页 4866 * 验证是否跳转详情页
@@ -178,7 +178,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele @@ -178,7 +178,7 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele
178 var $html = addIconByValue(valueStr); 178 var $html = addIconByValue(valueStr);
179 var resStyle = obj.alarmEleMatchStyle(v.flag, v.id); 179 var resStyle = obj.alarmEleMatchStyle(v.flag, v.id);
180 li += ' <li><span ' + menuId + ' style="text-align:left;width:40%">' + v.name + '</span>' + 180 li += ' <li><span ' + menuId + ' style="text-align:left;width:40%">' + v.name + '</span>' +
181 - '<span title="' + titleStr + '" style="' + fontColor + 'width:60%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;' + resStyle + '">' 181 + '<span title="' + titleStr + '" style="' + fontColor + 'width:60%;overflow: hidden !important;text-overflow: ellipsis;white-space: nowrap !important;' + resStyle + '">'
182 + $html + valueStr + '</span></li>' 182 + $html + valueStr + '</span></li>'
183 }); 183 });
184 $("#" + targetId).html(li); 184 $("#" + targetId).html(li);