Parcourir la source

调度报表优化,支持时间区间筛选;

xuxueli il y a 8 ans
Parent
révision
01f5ed2206

+ 1 - 1
xxl-job-admin/src/main/webapp/WEB-INF/template/index.ftl Voir le fichier

@@ -84,7 +84,7 @@
84 84
                             <div class="progress">
85 85
                                 <div class="progress-bar" style="width: 100%"></div>
86 86
                             </div>
87
-                            <span class="progress-description">调度中心注册发现的执行器机器数量</span>
87
+                            <span class="progress-description">调度中心在线的执行器机器数量</span>
88 88
                         </div>
89 89
                     </div>
90 90
                 </div>

+ 3 - 3
xxl-job-admin/src/main/webapp/static/js/index.js Voir le fichier

@@ -20,10 +20,10 @@ $(function () {
20 20
             //'最近1小时': [moment().subtract(1, 'hours'), moment()],
21 21
             '今日': [moment().startOf('day'), moment().endOf('day')],
22 22
             '昨日': [moment().subtract(1, 'days').startOf('day'), moment().subtract(1, 'days').endOf('day')],
23
-            '最近7日': [moment().subtract(7, 'days'), moment()],
24
-            '最近30日': [moment().subtract(1, 'months'), moment()],
25 23
             '本月': [moment().startOf('month'), moment().endOf('month')],
26
-            '上个月': [moment().subtract(1, 'months').startOf('month'), moment().subtract(1, 'months').endOf('month')]
24
+            '上个月': [moment().subtract(1, 'months').startOf('month'), moment().subtract(1, 'months').endOf('month')],
25
+            '最近1周': [moment().subtract(1, 'weeks'), moment()],
26
+            '最近1月': [moment().subtract(1, 'months'), moment()]
27 27
         },
28 28
         locale : {
29 29
             format: 'YYYY-MM-DD HH:mm:ss',