commit
This commit is contained in:
@@ -2,6 +2,7 @@ package com.budwk.app.base.sms.impl.jshvc;
|
||||
|
||||
import com.budwk.app.base.sms.SmsService;
|
||||
import com.budwk.app.todo.platform.TodoPlatformConfig;
|
||||
import com.budwk.app.web.commons.base.Globals;
|
||||
import com.wisedu.casp.sdk.api.mc.ReceiverDto;
|
||||
import com.wisedu.casp.sdk.api.mc.SendMsgRequest;
|
||||
import com.wisedu.casp.sdk.api.mc.SendMsgResponse;
|
||||
@@ -128,6 +129,11 @@ public class SmsJshvcServiceImpl implements SmsService {
|
||||
String mobileUrl,
|
||||
String picUrl) {
|
||||
|
||||
if (!Globals.sso) {
|
||||
log.error("【log】开发模式不允许发送企业微信通知");
|
||||
return;
|
||||
}
|
||||
|
||||
if (Lang.isEmpty(receivers)) {
|
||||
log.error("send fail by receivers is null");
|
||||
return;
|
||||
|
||||
@@ -61,6 +61,10 @@ public class TodoServiceImpl implements TodoService {
|
||||
|
||||
@Override
|
||||
public void saveTask(ProcessTask task) {
|
||||
if (!Globals.sso) {
|
||||
log.error("【log】开发模式不允许调用待办接口");
|
||||
return;
|
||||
}
|
||||
log.info("新增待办任务,任务数据:{}", Json.toJson(task));
|
||||
try {
|
||||
// 获取待办实例
|
||||
@@ -131,6 +135,10 @@ public class TodoServiceImpl implements TodoService {
|
||||
|
||||
@Override
|
||||
public void updateTask(ProcessTask task) {
|
||||
if (!Globals.sso) {
|
||||
log.error("【log】开发模式不允许调用待办接口");
|
||||
return;
|
||||
}
|
||||
log.info("更新待办任务,任务数据:{}", Json.toJson(task));
|
||||
try {
|
||||
// 获取待办实例
|
||||
@@ -178,6 +186,10 @@ public class TodoServiceImpl implements TodoService {
|
||||
|
||||
@Override
|
||||
public void modifyInfo(ProcessTask task) {
|
||||
if (!Globals.sso) {
|
||||
log.error("【log】开发模式不允许调用待办接口");
|
||||
return;
|
||||
}
|
||||
log.info("修改待办任务,任务数据:{}", Json.toJson(task));
|
||||
try {
|
||||
// 创建客户端
|
||||
@@ -199,6 +211,10 @@ public class TodoServiceImpl implements TodoService {
|
||||
|
||||
@Override
|
||||
public void deleteTask(String taskId) {
|
||||
if (!Globals.sso) {
|
||||
log.error("【log】开发模式不允许调用待办接口");
|
||||
return;
|
||||
}
|
||||
log.info("删除待办任务,任务ID:{}", taskId);
|
||||
try {
|
||||
// 创建客户端
|
||||
@@ -217,6 +233,10 @@ public class TodoServiceImpl implements TodoService {
|
||||
|
||||
@Override
|
||||
public void deleteProcessInstance(String processInstanceId) {
|
||||
if (!Globals.sso) {
|
||||
log.error("【log】开发模式不允许调用待办接口");
|
||||
return;
|
||||
}
|
||||
log.info("删除待办流程,实例ID:{}", processInstanceId);
|
||||
try {
|
||||
// 创建客户端
|
||||
|
||||
+23
-19
@@ -114,7 +114,7 @@ layout("/layouts/platform.html"){
|
||||
<div class="process-title">
|
||||
{{formData.taskName}}
|
||||
</div>
|
||||
<el-form :model="formData" ref="formRef" :rules="formRules" label-width="0" label-suffix=":"
|
||||
<el-form :model="formData" ref="formRef" label-width="0" label-suffix=":"
|
||||
class="flow-task-form">
|
||||
<el-form-item label="审批意见" prop="tf_opinion"
|
||||
:rules="[{required:true,message:'必填',trigger:['change','blur']}]">
|
||||
@@ -195,24 +195,28 @@ layout("/layouts/platform.html"){
|
||||
},
|
||||
|
||||
handleTaskAction(val) {
|
||||
this.$confirm("您确定要提交吗?", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
}).then(() => {
|
||||
this.$axios.post("/flow/common/executeTask", {
|
||||
data: JSON.stringify({
|
||||
...this.formData,
|
||||
submitType: val
|
||||
})
|
||||
}).then((res) => {
|
||||
if (res.code === 0) {
|
||||
this.$refs.guava.index()
|
||||
this.$message.success(res.msg)
|
||||
this.doSearch()
|
||||
}
|
||||
})
|
||||
})
|
||||
this.$refs.formRef.validate((valid) => {
|
||||
if (valid) {
|
||||
this.$confirm("您确定要提交吗?", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
}).then(() => {
|
||||
this.$axios.post("/flow/common/executeTask", {
|
||||
data: JSON.stringify({
|
||||
...this.formData,
|
||||
submitType: val
|
||||
})
|
||||
}).then((res) => {
|
||||
if (res.code === 0) {
|
||||
this.$refs.guava.index()
|
||||
this.$message.success(res.msg)
|
||||
this.doSearch()
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
onRevoke(row) {
|
||||
|
||||
Reference in New Issue
Block a user