From 671d77e17ef8d088befc8267fa5c08abb40128d6 Mon Sep 17 00:00:00 2001 From: "459816669@qq.com" <459816669@qq.com> Date: Tue, 23 Feb 2021 22:11:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=95=B0=E6=8D=AE=E5=A4=A7?= =?UTF-8?q?=E5=B1=8F=E7=9A=84=E6=B5=81=E7=A8=8B=E6=A6=82=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/system/SysIndexController.java | 11 +++- .../main/resources/templates/big_screen.html | 14 ++--- .../resources/templates/flow/deployment.html | 33 ++++++----- .../main/resources/templates/flow/model.html | 10 ++-- .../flowable/domain/DeploymentQueryDTO.java | 12 ++++ .../snow/flowable/domain/DeploymentVO.java | 18 ++++-- .../domain/FlowGeneralSituationVO.java | 50 ++++++++++++++++ .../flowable/service/FlowableTaskService.java | 16 ++++-- .../service/impl/FlowableServiceImpl.java | 16 ++++-- .../service/impl/FlowableTaskServiceImpl.java | 57 +++++++++++++++++-- 10 files changed, 187 insertions(+), 50 deletions(-) create mode 100644 snow-flowable/src/main/java/com/snow/flowable/domain/FlowGeneralSituationVO.java 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