提交 | 用户 | 时间
e7c126 1 <!DOCTYPE html>
H 2 <html>
3 <head>
4       <#import "../common/common.macro.ftl" as netCommon>
5     <@netCommon.commonStyle />
6     <!-- DataTables -->
7       <link rel="stylesheet" href="${request.contextPath}/static/adminlte/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css">
8       <!-- daterangepicker -->
9       <link rel="stylesheet" href="${request.contextPath}/static/adminlte/bower_components/bootstrap-daterangepicker/daterangepicker.css">
10     <title>${I18n.admin_name}</title>
11 </head>
12 <body class="hold-transition skin-blue sidebar-mini <#if cookieMap?exists && cookieMap["xxljob_adminlte_settings"]?exists && "off" == cookieMap["xxljob_adminlte_settings"].value >sidebar-collapse</#if> ">
13 <div class="wrapper">
14     <!-- header -->
15     <@netCommon.commonHeader />
16     <!-- left -->
17     <@netCommon.commonLeft "joblog" />
18     
19     <!-- Content Wrapper. Contains page content -->
20     <div class="content-wrapper">
21         <!-- Content Header (Page header) -->
22         <section class="content-header">
23             <h1>${I18n.joblog_name}</h1>
24         </section>
25         
26         <!-- Main content -->
27         <section class="content">
28             <div class="row">
29                 <div class="col-xs-2">
30                      <div class="input-group">
31                         <span class="input-group-addon">${I18n.jobinfo_field_jobgroup}</span>
32                         <select class="form-control" id="jobGroup"  paramVal="<#if jobInfo?exists>${jobInfo.jobGroup}</#if>" >
33                             <#if Request["XXL_JOB_LOGIN_IDENTITY"].role == 1>
34                                 <option value="0" >${I18n.system_all}</option>  <#-- 仅管理员支持查询全部;普通用户仅支持查询有权限的 jobGroup -->
35                             </#if>
36                             <#list JobGroupList as group>
325d2f 37                                 <option value="${group.id?number?string(',##0')}" >${group.title}</option>
e7c126 38                             </#list>
H 39                           </select>
40                       </div>
41                 </div>
42                 <div class="col-xs-2">
43                       <div class="input-group">
44                         <span class="input-group-addon">${I18n.jobinfo_job}</span>
45                         <select class="form-control" id="jobId" paramVal="<#if jobInfo?exists>${jobInfo.id}</#if>" >
46                             <option value="0" >${I18n.system_all}</option>
47                         </select>
48                       </div>
49                 </div>
50
51                 <div class="col-xs-2">
52                     <div class="input-group">
53                         <span class="input-group-addon">${I18n.joblog_status}</span>
54                         <select class="form-control" id="logStatus" >
55                             <option value="-1" >${I18n.joblog_status_all}</option>
56                             <option value="1" >${I18n.joblog_status_suc}</option>
57                             <option value="2" >${I18n.joblog_status_fail}</option>
58                             <option value="3" >${I18n.joblog_status_running}</option>
59                         </select>
60                     </div>
61                 </div>
62
63                 <div class="col-xs-4">
64                       <div class="input-group">
65                         <span class="input-group-addon">
66                               ${I18n.joblog_field_triggerTime}
67                         </span>
68                         <input type="text" class="form-control" id="filterTime" readonly >
69                       </div>
70                 </div>
71
72                 <div class="col-xs-1">
73                     <button class="btn btn-block btn-info" id="searchBtn">${I18n.system_search}</button>
74                 </div>
75
76                 <div class="col-xs-1">
77                     <button class="btn btn-block btn-default" id="clearLog">${I18n.joblog_clean}</button>
78                 </div>
79               </div>
80             
81             <div class="row">
82                 <div class="col-xs-12">
83                     <div class="box">
84                         <#--<div class="box-header hide"><h3 class="box-title">调度日志</h3></div>-->
85                         <div class="box-body">
86                               <table id="joblog_list" class="table table-bordered table-striped display" width="100%" >
87                                 <thead>
88                                     <tr>
89                                         <th name="jobId" >${I18n.jobinfo_field_id}</th>
90                                         <th name="jobGroup" >jobGroup</th>
91                                         <#--<th name="executorAddress" >执行器地址</th>
92                                         <th name="glueType" >运行模式</th>
93                                           <th name="executorParam" >任务参数</th>-->
94                                         <th name="triggerTime" >${I18n.joblog_field_triggerTime}</th>
95                                         <th name="triggerCode" >${I18n.joblog_field_triggerCode}</th>
96                                         <th name="triggerMsg" >${I18n.joblog_field_triggerMsg}</th>
97                                           <th name="handleTime" >${I18n.joblog_field_handleTime}</th>
98                                           <th name="handleCode" >${I18n.joblog_field_handleCode}</th>
99                                           <th name="handleMsg" >${I18n.joblog_field_handleMsg}</th>
100                                           <th name="handleMsg" >${I18n.system_opt}</th>
101                                     </tr>
102                                 </thead>
103                                 <tbody></tbody>
104                             </table>
105                         </div>
106                     </div>
107                 </div>
108             </div>
109         </section>
110     </div>
111     
112     <!-- footer -->
113     <@netCommon.commonFooter />
114 </div>
115
116 <!-- 日志清理.模态框 -->
117 <div class="modal fade" id="clearLogModal" tabindex="-1" role="dialog"  aria-hidden="true">
118     <div class="modal-dialog">
119         <div class="modal-content">
120             <div class="modal-header">
121                 <h4 class="modal-title" >${I18n.joblog_clean_log}</h4>
122             </div>
123             <div class="modal-body">
124                 <form class="form-horizontal form" role="form" >
125                     <div class="form-group">
126                         <label class="col-sm-3 control-label">${I18n.jobinfo_field_jobgroup}:</label>
127                         <div class="col-sm-9">
128                             <input type="text" class="form-control jobGroupText" readonly >
129                             <input type="hidden" name="jobGroup" >
130                         </div>
131                     </div>
132
133                     <div class="form-group">
134                         <label class="col-sm-3 control-label">${I18n.jobinfo_job}:</label>
135                         <div class="col-sm-9">
136                             <input type="text" class="form-control jobIdText" readonly >
137                             <input type="hidden" name="jobId" >
138                         </div>
139                     </div>
140
141                     <div class="form-group">
142                         <label class="col-sm-3 control-label">${I18n.joblog_clean_type}:</label>
143                         <div class="col-sm-9">
144                             <select class="form-control" name="type" >
145                                 <option value="1" >${I18n.joblog_clean_type_1}</option>
146                                 <option value="2" >${I18n.joblog_clean_type_2}</option>
147                                 <option value="3" >${I18n.joblog_clean_type_3}</option>
148                                 <option value="4" >${I18n.joblog_clean_type_4}</option>
149                                 <option value="5" >${I18n.joblog_clean_type_5}</option>
150                                 <option value="6" >${I18n.joblog_clean_type_6}</option>
151                                 <option value="7" >${I18n.joblog_clean_type_7}</option>
152                                 <option value="8" >${I18n.joblog_clean_type_8}</option>
153                                 <option value="9" >${I18n.joblog_clean_type_9}</option>
154                             </select>
155                         </div>
156                     </div>
157
158                     <hr>
159                     <div class="form-group">
160                         <div class="col-sm-offset-3 col-sm-6">
161                             <button type="button" class="btn btn-primary ok" >${I18n.system_ok}</button>
162                             <button type="button" class="btn btn-default" data-dismiss="modal">${I18n.system_cancel}</button>
163                         </div>
164                     </div>
165                 </form>
166             </div>
167         </div>
168     </div>
169 </div>
170
171 <@netCommon.commonScript />
172 <!-- DataTables -->
173 <script src="${request.contextPath}/static/adminlte/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
174 <script src="${request.contextPath}/static/adminlte/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
175 <!-- daterangepicker -->
176 <script src="${request.contextPath}/static/adminlte/bower_components/moment/moment.min.js"></script>
177 <script src="${request.contextPath}/static/adminlte/bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
178 <script src="${request.contextPath}/static/js/joblog.index.1.js"></script>
179 </body>
180 </html>