commit
This commit is contained in:
@@ -63,14 +63,22 @@ public class ProcessTaskStartEventListener implements ProcessEventListener {
|
|||||||
List<ProcessTaskActor> taskActors = dao.query(ProcessTaskActor.class, Cnd.where(ProcessTaskActor::getProcessTaskId, "=", task.getId()));
|
List<ProcessTaskActor> taskActors = dao.query(ProcessTaskActor.class, Cnd.where(ProcessTaskActor::getProcessTaskId, "=", task.getId()));
|
||||||
|
|
||||||
for (ProcessTaskActor taskActor : taskActors) {
|
for (ProcessTaskActor taskActor : taskActors) {
|
||||||
|
|
||||||
|
JSONObject config = new JSONObject();
|
||||||
|
config.set("pcUrl", Globals.AppDomain + task.getFormKey());
|
||||||
|
|
||||||
// 模拟发送消息
|
// 模拟发送消息
|
||||||
String message = StrUtil.format("您有一条待办任务,实例:{},处理环节:{}", instanceName, taskDisplayName);
|
String message = "";
|
||||||
|
if(StrUtil.isNotBlank(task.getH5FormKey())) {
|
||||||
|
config.set("mobileUrl", Globals.AppDomain + task.getH5FormKey());
|
||||||
|
message = StrUtil.format("您有一条待办任务,实例:{},处理环节:{}。", instanceName, taskDisplayName);
|
||||||
|
} else {
|
||||||
|
config.set("mobileUrl", Globals.AppDomain + "/platform/tooltip/h5");
|
||||||
|
message = StrUtil.format("您有一条待办任务,实例:{},处理环节:{},请到电脑端智慧工会系统审核。", instanceName, taskDisplayName);
|
||||||
|
}
|
||||||
log.info(message);
|
log.info(message);
|
||||||
|
|
||||||
JSONObject config = new JSONObject();
|
globalMessageSendService.sendMessage(taskDisplayName, message, 2, List.of(taskActor.getActorId()), config);
|
||||||
config.set("pcUrl", Globals.AppDomain + task.getFormKey());
|
|
||||||
config.set("mobileUrl", Globals.AppDomain + task.getH5FormKey());
|
|
||||||
globalMessageSendService.sendMessage(taskDisplayName, message, 2, List.of(taskActor.getActorId()), config);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
todoService.saveTask(task);
|
todoService.saveTask(task);
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package com.budwk.app.zhgh.tooltip.controller;
|
||||||
|
|
||||||
|
import cn.dev33.satoken.annotation.SaCheckLogin;
|
||||||
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||||
|
import org.nutz.ioc.loader.annotation.IocBean;
|
||||||
|
import org.nutz.mvc.annotation.At;
|
||||||
|
import org.nutz.mvc.annotation.Ok;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName TooltipCommonController
|
||||||
|
* @Author JyuHsin
|
||||||
|
* @Date 2026/3/10 16:14
|
||||||
|
* @Version 1.0
|
||||||
|
* @Description TODO
|
||||||
|
*/
|
||||||
|
@IocBean
|
||||||
|
@Ok("json:full")
|
||||||
|
@At("/platform/tooltip")
|
||||||
|
public class TooltipCommonController {
|
||||||
|
|
||||||
|
@At("/h5")
|
||||||
|
@Ok("beetl:platform/zhghh5/tooltip/index.html")
|
||||||
|
@SaCheckLogin
|
||||||
|
public void index() {}
|
||||||
|
}
|
||||||
@@ -14,6 +14,7 @@
|
|||||||
<link rel="stylesheet" href="${base!}/assets/platform/fonts/font-awesome.min.css"/>
|
<link rel="stylesheet" href="${base!}/assets/platform/fonts/font-awesome.min.css"/>
|
||||||
<link rel="stylesheet" href="${base!}/assets/platform/css/pdf/pdfh5.css">
|
<link rel="stylesheet" href="${base!}/assets/platform/css/pdf/pdfh5.css">
|
||||||
<link rel="stylesheet" href="https://res.wx.qq.com/open/libs/weui/2.2.0/weui.min.css">
|
<link rel="stylesheet" href="https://res.wx.qq.com/open/libs/weui/2.2.0/weui.min.css">
|
||||||
|
<link rel="stylesheet" href="https://res.wx.qq.com/open/libs/weui/2.2.0/weui.min.css">
|
||||||
|
|
||||||
<script src="${base!}/assets/platform/plugins/vue/vue.js"></script>
|
<script src="${base!}/assets/platform/plugins/vue/vue.js"></script>
|
||||||
<script src="${base!}/assets/platform/plugins/vuex/vuex.js"></script>
|
<script src="${base!}/assets/platform/plugins/vuex/vuex.js"></script>
|
||||||
|
|||||||
@@ -0,0 +1,55 @@
|
|||||||
|
<!--#
|
||||||
|
layout("/layouts/platform_h5.html"){
|
||||||
|
#-->
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
body {
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
.weui-msg {
|
||||||
|
background: white;
|
||||||
|
height: auto;
|
||||||
|
min-height: auto;
|
||||||
|
}
|
||||||
|
.weui-msg__title {
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
.weui-msg__msg {
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<div id="app">
|
||||||
|
<div class="weui-msg">
|
||||||
|
<div class="weui-msg__icon-area">
|
||||||
|
<i class="weui-icon-info weui-icon_msg"></i>
|
||||||
|
</div>
|
||||||
|
<div class="weui-msg__text-area">
|
||||||
|
<div class="weui-msg__title">温馨提醒</div>
|
||||||
|
<div class="weui-msg__msg">请到电脑端智慧工会系统审核</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script nonce="${cspNonce!}">
|
||||||
|
const vue = new Vue({
|
||||||
|
el: "#app",
|
||||||
|
store,
|
||||||
|
components: {},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!--#
|
||||||
|
}
|
||||||
|
#-->
|
||||||
Reference in New Issue
Block a user