| <!DOCTYPE HTML> | 
| <html xmlns:th="http://www.thymeleaf.org"> | 
| <head> | 
| <meta charset="utf-8"> | 
| <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> | 
| <meta name="renderer" content="webkit|ie-comp|ie-stand"> | 
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | 
| <meta name="viewport" | 
|     content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /> | 
| <meta http-equiv="Cache-Control" content="no-siteapp" /> | 
| <!-- 本框架基本脚本和样式 --> | 
| <script type="text/javascript" | 
|     th:src="@{/js/plugin/jquery-2.1.4.min.js}"></script> | 
| <script type="text/javascript" th:src="@{/js/systools/MBase.js}"></script> | 
| </head> | 
| <body class="gray-bg"> | 
|     <div class="wrapper wrapper-content animated fadeInRight"> | 
|         <div class="row"> | 
|             <div class="col-sm-12"> | 
|                 <form class="form-inline" id="serchform"> | 
|                     <input autocomplete="off"   name="jdId" type="hidden" th:value="${jdId}"> | 
|                 </form> | 
|             </div> | 
|         </div> | 
|         <div class="ibox-content radius-5 mt-5 mpanel"> | 
|             <div class="row"> | 
|                 <div class="col-sm-12"> | 
|                     <table id="mgrid"> | 
|                         <thead> | 
|                             <tr> | 
|                                 <th data-checkbox="true"></th> | 
|                                 <th data-formatter="MGrid.indexfn" data-align="center" | 
|                                     data-width="30px">序号</th> | 
|                                 <th data-field="ehStartTime" data-sortable="true" data-formatter="MGrid.getTime">开始时间</th> | 
|                                 <th data-field="ehEndTime" data-sortable="true" data-formatter="MGrid.getTime">结束时间</th> | 
|                                 <th data-field="ehExecueStatus" data-sortable="true" data-formatter="executeStatus">执行状态</th> | 
|                                 <th data-field="ehExceptionDetail" data-sortable="true">异常信息</th> | 
|                                 <th data-align="center" data-width="50px" data-field="ehId" | 
|                                     data-formatter="buidOperate">操作</th> | 
|                             </tr> | 
|                         </thead> | 
|                     </table> | 
|                 </div> | 
|             </div> | 
|         </div> | 
|     </div> | 
|     <script type="text/javascript" th:src="@{/js/systools/MJsBase.js}"></script> | 
|     <script type="text/javascript"> | 
|         var myGrid; | 
|         $(function() { | 
|             myGrid = MGrid.initGrid({ | 
|                 url : basePath + "/developer/quartzExecuteHistory/showList", | 
|             }); | 
|         }); | 
|   | 
|         function buidOperate(value, row, index) { | 
|             var html = []; | 
|             html[0] = '<a  onClick="openEdit(\'' + value | 
|                     + '\')"  title="编辑" class="fa fa-edit option"></a>' | 
|             return html.join(""); | 
|         } | 
|   | 
|         //打开编辑界面 | 
|         function openEdit(id) { | 
|             layer.open({ | 
|                 type : 2, | 
|                 title : "编辑(定时任务主表)", | 
|                 area : [ MUI.SIZE_L, '400px' ], | 
|                 maxmin : true, | 
|                 content : [ basePath | 
|                         + '/developer/quartzJobDefinition/editForm?id=' + id ] | 
|             }); | 
|         } | 
|          | 
|         function executeStatus(value){ | 
|             if(value=='1'){ | 
|                 return '正常'; | 
|             }else{ | 
|                 return '异常'; | 
|             } | 
|         } | 
|     </script> | 
| </body> | 
| </html> |