|
@@ -135,6 +135,7 @@ $(function() {
|
135
|
135
|
' <li><a href="javascript:void(0);" class="job_trigger" >'+ I18n.jobinfo_opt_run +'</a></li>\n' +
|
136
|
136
|
' <li><a href="'+ logHref +'">'+ I18n.jobinfo_opt_log +'</a></li>\n' +
|
137
|
137
|
' <li><a href="javascript:void(0);" class="job_registryinfo" >' + I18n.jobinfo_opt_registryinfo + '</a></li>\n' +
|
|
138
|
+ ' <li><a href="javascript:void(0);" class="job_next_time" >' + I18n.jobinfo_opt_next_time + '</a></li>\n' +
|
138
|
139
|
' <li class="divider"></li>\n' +
|
139
|
140
|
codeBtn +
|
140
|
141
|
start_stop_div +
|
|
@@ -311,7 +312,48 @@ $(function() {
|
311
|
312
|
}
|
312
|
313
|
});
|
313
|
314
|
|
|
315
|
+ });
|
|
316
|
+
|
|
317
|
+ // job_next_time
|
|
318
|
+ $("#job_list").on('click', '.job_next_time',function() {
|
|
319
|
+ var id = $(this).parents('ul').attr("_id");
|
|
320
|
+ var row = tableData['key'+id];
|
|
321
|
+
|
|
322
|
+ var jobCron = row.jobCron;
|
|
323
|
+
|
|
324
|
+ $.ajax({
|
|
325
|
+ type : 'POST',
|
|
326
|
+ url : base_url + "/jobinfo/nextTriggerTime",
|
|
327
|
+ data : {
|
|
328
|
+ "cron" : jobCron
|
|
329
|
+ },
|
|
330
|
+ dataType : "json",
|
|
331
|
+ success : function(data){
|
|
332
|
+
|
|
333
|
+ if (data.code != 200) {
|
|
334
|
+ layer.open({
|
|
335
|
+ title: I18n.jobinfo_opt_next_time ,
|
|
336
|
+ btn: [ I18n.system_ok ],
|
|
337
|
+ content: data.msg
|
|
338
|
+ });
|
|
339
|
+ } else {
|
|
340
|
+ var html = '<center>';
|
|
341
|
+ if (data.code == 200 && data.content) {
|
|
342
|
+ for (var index in data.content) {
|
|
343
|
+ html += '<span>' + data.content[index] + '</span><br>';
|
|
344
|
+ }
|
|
345
|
+ }
|
|
346
|
+ html += '</center>';
|
314
|
347
|
|
|
348
|
+ layer.open({
|
|
349
|
+ title: I18n.jobinfo_opt_next_time ,
|
|
350
|
+ btn: [ I18n.system_ok ],
|
|
351
|
+ content: html
|
|
352
|
+ });
|
|
353
|
+ }
|
|
354
|
+
|
|
355
|
+ }
|
|
356
|
+ });
|
315
|
357
|
|
316
|
358
|
});
|
317
|
359
|
|