@@ -230,12 +268,10 @@
countMeCollect();
countCaseUserType();
countCaseSevenDays();
+ countDeptWarningCaseNum();
+ countDeptTimeoutCaseNum();
}
-
-
-
-
$('#LAY-logout').on('click', function() {
top.dialog.confirm('确认退出?', function() {
window.location.href = 'logout';
@@ -387,6 +423,44 @@
/*top.*/dialog.close(loadLayerIndex);
});
}
+
+ /**
+ *
+ * 统计单位预警事件数量
+ */
+ function countDeptWarningCaseNum() {
+ var loadLayerIndex;
+ /*top.*/
+ restAjax.get(/*top.*/restAjax.path('api/warning/count-dept', []), {}, null, function (code, data) {
+ $("#warningNum").html(data.data);
+ }, function (code, data) {
+ /*top.*/
+ dialog.msg(data.msg);
+ }, function () {
+ loadLayerIndex = /*top.*/dialog.msg(/*top.*/dataMessage.loading, {icon: 16, time: 0, shade: 0.3});
+ }, function () {
+ /*top.*/
+ dialog.close(loadLayerIndex);
+ });
+ }
+
+ /**
+ *
+ * 统计单位超时事件数量
+ */
+ function countDeptTimeoutCaseNum(){
+ var loadLayerIndex;
+ /*top.*/restAjax.get(/*top.*/restAjax.path('api/timeout/count-dept', []), {}, null, function(code, data) {
+ $("#timeoutNum").html(data.data);
+ }, function(code, data) {
+ /*top.*/dialog.msg(data.msg);
+ }, function() {
+ loadLayerIndex = /*top.*/dialog.msg(/*top.*/dataMessage.loading, {icon: 16, time: 0, shade: 0.3});
+ }, function() {
+ /*top.*/dialog.close(loadLayerIndex);
+ });
+ }
+
/**
*
* 统计案件数量