Authored by 鲁尚清

【926】 【资源视图】虚拟化--虚拟化运行状态建议转换为中文,状态栏的宽度调整为260px #1

@@ -1729,7 +1729,18 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin', @@ -1729,7 +1729,18 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin',
1729 templet: '#powerStateTpl', 1729 templet: '#powerStateTpl',
1730 sort: true 1730 sort: true
1731 }, 1731 },
1732 - {field: 'runState', title: '运行状态', minWidth: x_110, align: 'center', sort: true}, 1732 + {field: 'runState', title: '运行状态', minWidth: x_110, align: 'center', sort: true,
  1733 + // lsq 运行状态显示为中文 2022-06-28
  1734 + templet: function (d) {
  1735 + switch (d.runState) {
  1736 + case 'notRunning':
  1737 + return '未运行';
  1738 + case 'running':
  1739 + return '运行';
  1740 + default:
  1741 + return '';
  1742 + }
  1743 + }},
1733 {field: 'ptName', title: '所属平台', minWidth: x_130, align: 'center', sort: true}, 1744 {field: 'ptName', title: '所属平台', minWidth: x_130, align: 'center', sort: true},
1734 {field: 'resourcePool', title: '所属资源池', minWidth: x_140, align: 'center', sort: true}, 1745 {field: 'resourcePool', title: '所属资源池', minWidth: x_140, align: 'center', sort: true},
1735 {field: 'lastColTime', title: '最近采集时间', minWidth: x_160, align: 'center', sort: true}, 1746 {field: 'lastColTime', title: '最近采集时间', minWidth: x_160, align: 'center', sort: true},
@@ -1863,7 +1874,18 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin', @@ -1863,7 +1874,18 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin',
1863 templet: '#powerStateTpl', 1874 templet: '#powerStateTpl',
1864 sort: true 1875 sort: true
1865 }, 1876 },
1866 - {field: 'runState', title: '运行状态', minWidth: x_110, align: 'center', sort: true}, 1877 + {field: 'runState', title: '运行状态', minWidth: x_110, align: 'center', sort: true,
  1878 + // lsq 运行状态显示为中文 2022-06-28
  1879 + templet: function (d) {
  1880 + switch (d.runState) {
  1881 + case 'notRunning':
  1882 + return '未运行';
  1883 + case 'running':
  1884 + return '运行';
  1885 + default:
  1886 + return '';
  1887 + }
  1888 + }},
1867 {field: 'ptName', title: '所属平台', minWidth: x_130, align: 'center', sort: true}, 1889 {field: 'ptName', title: '所属平台', minWidth: x_130, align: 'center', sort: true},
1868 {field: 'resourcePool', title: '所属资源池', minWidth: x_140, align: 'center', sort: true}, 1890 {field: 'resourcePool', title: '所属资源池', minWidth: x_140, align: 'center', sort: true},
1869 {field: 'lastColTime', title: '最近采集时间', minWidth: x_160, align: 'center', sort: true}, 1891 {field: 'lastColTime', title: '最近采集时间', minWidth: x_160, align: 'center', sort: true},
@@ -4091,7 +4113,18 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin', @@ -4091,7 +4113,18 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin',
4091 templet: '#powerStateTpl', 4113 templet: '#powerStateTpl',
4092 sort: true 4114 sort: true
4093 }, 4115 },
4094 - {field: 'runState', title: '运行状态', minWidth: x_120, align: 'center', sort: true}, 4116 + {field: 'runState', title: '运行状态', minWidth: x_120, align: 'center', sort: true,
  4117 + // lsq 运行状态显示为中文 2022-06-28
  4118 + templet: function (d) {
  4119 + switch (d.runState) {
  4120 + case 'notRunning':
  4121 + return '未运行';
  4122 + case 'running':
  4123 + return '运行';
  4124 + default:
  4125 + return '';
  4126 + }
  4127 + }},
4095 {field: 'ptName', title: '所属平台', minWidth: x_120, align: 'center', sort: true}, 4128 {field: 'ptName', title: '所属平台', minWidth: x_120, align: 'center', sort: true},
4096 {field: 'resourcePool', title: '所属资源池', minWidth: x_150, align: 'center', sort: true}, 4129 {field: 'resourcePool', title: '所属资源池', minWidth: x_150, align: 'center', sort: true},
4097 {field: 'resRemark', title: '备注', minWidth: x_200, align: 'center'} 4130 {field: 'resRemark', title: '备注', minWidth: x_200, align: 'center'}
@@ -6057,7 +6057,7 @@ form.form-edit .layui-form-item .layui-input-inline { @@ -6057,7 +6057,7 @@ form.form-edit .layui-form-item .layui-input-inline {
6057 } 6057 }
6058 /*lsq 健康状态样式 2022-06-27*/ 6058 /*lsq 健康状态样式 2022-06-27*/
6059 .info-box-count-res{ 6059 .info-box-count-res{
6060 - width:20%; 6060 + width:260px;
6061 } 6061 }
6062 .info-box-count > label { 6062 .info-box-count > label {
6063 color: #999; 6063 color: #999;
@@ -331,6 +331,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' @@ -331,6 +331,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', '
331 } 331 }
332 } 332 }
333 } 333 }
  334 + debugger
334 if (formWidth + 130 > winWidth) { 335 if (formWidth + 130 > winWidth) {
335 $('.openStow').css('display', 'inline-block') 336 $('.openStow').css('display', 'inline-block')
336 $('.form-item-open-stow').css('height', '50px'); 337 $('.form-item-open-stow').css('height', '50px');