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