diff --git a/snow-admin/src/main/java/com/snow/web/controller/system/SysIndexController.java b/snow-admin/src/main/java/com/snow/web/controller/system/SysIndexController.java index 3a9fe24..1a2699e 100644 --- a/snow-admin/src/main/java/com/snow/web/controller/system/SysIndexController.java +++ b/snow-admin/src/main/java/com/snow/web/controller/system/SysIndexController.java @@ -10,6 +10,8 @@ import com.snow.common.utils.CookieUtils; import com.snow.common.utils.DateUtils; import com.snow.common.utils.ServletUtils; import com.snow.common.utils.StringUtils; +import com.snow.flowable.domain.FlowGeneralSituationVO; +import com.snow.flowable.service.FlowableTaskService; import com.snow.framework.shiro.service.SysPasswordService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; @@ -47,6 +49,9 @@ public class SysIndexController extends BaseController @Autowired private SysPasswordService passwordService; + @Autowired + private FlowableTaskService flowableTaskService; + // 系统首页 @GetMapping("/index") public String index(ModelMap mmap) @@ -162,10 +167,14 @@ public class SysIndexController extends BaseController return false; } - // 系统首页 + // 数据大屏 @GetMapping("/system/bigScreen") public String bigScreen(ModelMap mmap) { + SysUser user = ShiroUtils.getSysUser(); + //流程概况 + FlowGeneralSituationVO flowGeneralSituation = flowableTaskService.getFlowGeneralSituation(String.valueOf(user.getUserId())); + mmap.put("flowGeneralSituation",flowGeneralSituation); return "big_screen"; } } diff --git a/snow-admin/src/main/resources/templates/big_screen.html b/snow-admin/src/main/resources/templates/big_screen.html index ff437ab..7928340 100644 --- a/snow-admin/src/main/resources/templates/big_screen.html +++ b/snow-admin/src/main/resources/templates/big_screen.html @@ -59,25 +59,25 @@
页面加载中...
-

Ding-Flow可视化大屏

+

Ding-Flow可视化大屏

多云转小雨2017-12-30