Browse Source

UI优化,任务列表和日志列表数据表格宽度比例调整,避免数据换行提升体验;

xuxueli 5 years ago
parent
commit
c9b23f336d

+ 1 - 0
doc/XXL-JOB官方文档.md

@@ -1521,6 +1521,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段
 - 10、注册监控线程优化,降低死锁几率;
 - 11、调度组件优化:针对永远不会触发的Cron禁止配置和启动;任务Cron最后一次触发后再也不会触发时,比如一次性任务,主动停止相关任务;
 - 12、任务列表交互优化,支持查看任务所属执行器的注册节点;
+- 13、UI优化,任务列表和日志列表数据表格宽度比例调整,避免数据换行提升体验;
 
 
 ### TODO LIST

+ 2 - 2
xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js

@@ -28,7 +28,7 @@ $(function() {
 	                	"data": 'id',
 						"bSortable": false,
 						"visible" : true,
-						"width":'10%'
+						"width":'7%'
 					},
 	                { 
 	                	"data": 'jobGroup', 
@@ -65,7 +65,7 @@ $(function() {
 					{
 						"data": 'jobCron',
 						"visible" : true,
-						"width":'10%'
+						"width":'13%'
 					},
 	                { 
 	                	"data": 'addTime', 

+ 6 - 6
xxl-job-admin/src/main/resources/static/js/joblog.index.1.js

@@ -114,14 +114,14 @@ $(function() {
 					{ "data": 'jobGroup', "visible" : false},
 					{
 						"data": 'triggerTime',
-                        "width":'16%',
+                        "width":'20%',
 						"render": function ( data, type, row ) {
 							return data?moment(new Date(data)).format("YYYY-MM-DD HH:mm:ss"):"";
 						}
 					},
 					{
 						"data": 'triggerCode',
-                        "width":'12%',
+                        "width":'10%',
 						"render": function ( data, type, row ) {
 							var html = data;
 							if (data == 200) {
@@ -136,21 +136,21 @@ $(function() {
 					},
 					{
 						"data": 'triggerMsg',
-                        "width":'12%',
+                        "width":'10%',
 						"render": function ( data, type, row ) {
 							return data?'<a class="logTips" href="javascript:;" >'+ I18n.system_show +'<span style="display:none;">'+ data +'</span></a>':I18n.system_empty;
 						}
 					},
 	                { 
 	                	"data": 'handleTime',
-                        "width":'16%',
+                        "width":'20%',
 	                	"render": function ( data, type, row ) {
 	                		return data?moment(new Date(data)).format("YYYY-MM-DD HH:mm:ss"):"";
 	                	}
 	                },
 	                {
 						"data": 'handleCode',
-                        "width":'12%',
+                        "width":'10%',
 						"render": function ( data, type, row ) {
                             var html = data;
                             if (data == 200) {
@@ -167,7 +167,7 @@ $(function() {
 	                },
 	                { 
 	                	"data": 'handleMsg',
-                        "width":'12%',
+                        "width":'10%',
 	                	"render": function ( data, type, row ) {
 	                		return data?'<a class="logTips" href="javascript:;" >'+ I18n.system_show +'<span style="display:none;">'+ data +'</span></a>':I18n.system_empty;
 	                	}