xuxueli пре 8 година
родитељ
комит
be3fc368cb

+ 0 - 1
xxl-job-admin/src/main/webapp/WEB-INF/template/joblog/joblog.index.ftl Прегледај датотеку

@@ -84,7 +84,6 @@
84 84
 										<#--<th name="executorAddress" >执行器地址</th>
85 85
 										<th name="glueType" >运行模式</th>
86 86
                                       	<th name="executorParam" >任务参数</th>-->
87
-                                        <th name="JobInfo" >任务信息</th>
88 87
                                         <th name="triggerTime" >调度时间</th>
89 88
                                         <th name="triggerCode" >调度结果</th>
90 89
                                         <th name="triggerMsg" >调度备注</th>

+ 18 - 25
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js Прегледај датотеку

@@ -96,7 +96,24 @@ $(function() {
96 96
 						"visible" : true,
97 97
 						"render": function ( data, type, row ) {
98 98
 							var jobKey = row.jobGroup + "_" + row.jobId;
99
-							return jobKey;
99
+
100
+                            var glueTypeTitle = row.glueType;
101
+                            if ('GLUE_GROOVY'==row.glueType) {
102
+                                glueTypeTitle = "GLUE模式(Java)";
103
+                            } else if ('GLUE_SHELL'==row.glueType) {
104
+                                glueTypeTitle = "GLUE模式(Shell)";
105
+                            } else if ('GLUE_PYTHON'==row.glueType) {
106
+                                glueTypeTitle = "GLUE模式(Python)";
107
+                            } else if ('BEAN'==row.glueType) {
108
+                                glueTypeTitle = "BEAN模式:" + row.executorHandler;
109
+                            }
110
+
111
+                            var temp = '';
112
+                            temp += '执行器地址:' + row.executorAddress;
113
+                            temp += '<br>运行模式:' + glueTypeTitle;
114
+                            temp += '<br>任务参数:' + row.executorParam;
115
+
116
+                            return '<a class="logTips" href="javascript:;" >'+ jobKey +'<span style="display:none;">'+ temp +'</span></a>';
100 117
 						}
101 118
 					},
102 119
 					// { "data": 'executorAddress', "visible" : true},
@@ -118,30 +135,6 @@ $(function() {
118 135
 					// },
119 136
 					// { "data": 'executorParam', "visible" : true},
120 137
 					{
121
-						"data": 'JobInfo',
122
-						"visible" : true,
123
-						"render": function ( data, type, row ) {
124
-
125
-							var glueTypeTitle = row.glueType;
126
-							if ('GLUE_GROOVY'==row.glueType) {
127
-								glueTypeTitle = "GLUE模式(Java)";
128
-							} else if ('GLUE_SHELL'==row.glueType) {
129
-								glueTypeTitle = "GLUE模式(Shell)";
130
-							} else if ('GLUE_PYTHON'==row.glueType) {
131
-								glueTypeTitle = "GLUE模式(Python)";
132
-							} else if ('BEAN'==row.glueType) {
133
-								glueTypeTitle = "BEAN模式:" + row.executorHandler;
134
-							}
135
-
136
-							var temp = '';
137
-							temp += '执行器地址:' + row.executorAddress;
138
-							temp += '<br>运行模式:' + glueTypeTitle;
139
-							temp += '<br>任务参数:' + row.executorParam;
140
-
141
-							return temp;
142
-						}
143
-					},
144
-					{
145 138
 						"data": 'triggerTime',
146 139
 						"render": function ( data, type, row ) {
147 140
 							return data?moment(new Date(data)).format("YYYY-MM-DD HH:mm:ss"):"";