diff --git a/src/main/java/com/rebuild/core/service/dashboard/charts/builtin/ApprovalList.java b/src/main/java/com/rebuild/core/service/dashboard/charts/builtin/ApprovalList.java index 4994aae621..ed129ae969 100644 --- a/src/main/java/com/rebuild/core/service/dashboard/charts/builtin/ApprovalList.java +++ b/src/main/java/com/rebuild/core/service/dashboard/charts/builtin/ApprovalList.java @@ -121,6 +121,7 @@ public JSON build() { Map ret = new HashMap<>(); ret.put("data", rearray); ret.put("stats", stats); + ret.put("overLimit", array.length >= 500); return (JSON) JSON.toJSON(ret); } } diff --git a/src/main/resources/web/assets/js/charts/charts.js b/src/main/resources/web/assets/js/charts/charts.js index 163abde834..18d874e1f5 100644 --- a/src/main/resources/web/assets/js/charts/charts.js +++ b/src/main/resources/web/assets/js/charts/charts.js @@ -918,6 +918,11 @@ class ApprovalList extends BaseChart { })} + {data.overLimit && ( +
+ {$L('最多显示最近 500 条记录')} +
+ )} ) diff --git a/src/main/resources/web/entity/approval/approval-view.html b/src/main/resources/web/entity/approval/approval-view.html index d25640d1a7..4fba28e20d 100644 --- a/src/main/resources/web/entity/approval/approval-view.html +++ b/src/main/resources/web/entity/approval/approval-view.html @@ -23,7 +23,6 @@

[[${bundle.L('审批流程')}]]

-