diff --git a/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowDefinitionServiceImpl.java b/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowDefinitionServiceImpl.java index 1cc7d6fa..70f6beb2 100644 --- a/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowDefinitionServiceImpl.java +++ b/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowDefinitionServiceImpl.java @@ -20,7 +20,6 @@ import com.ruoyi.system.service.ISysPostService; import com.ruoyi.system.service.ISysUserService; import lombok.extern.slf4j.Slf4j; import org.apache.commons.io.IOUtils; -import org.apache.commons.lang3.StringUtils; import org.flowable.bpmn.model.BpmnModel; import org.flowable.engine.repository.Deployment; import org.flowable.engine.repository.ProcessDefinition; @@ -28,7 +27,6 @@ import org.flowable.engine.repository.ProcessDefinitionQuery; import org.flowable.engine.runtime.ProcessInstance; import org.flowable.image.impl.DefaultProcessDiagramGenerator; import org.flowable.task.api.Task; -import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; diff --git a/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowInstanceServiceImpl.java b/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowInstanceServiceImpl.java index 1b16384a..c011cd38 100644 --- a/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowInstanceServiceImpl.java +++ b/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowInstanceServiceImpl.java @@ -9,12 +9,9 @@ import com.ruoyi.flowable.service.IFlowInstanceService; import lombok.extern.slf4j.Slf4j; import org.flowable.common.engine.api.FlowableObjectNotFoundException; import org.flowable.engine.history.HistoricProcessInstance; -import org.flowable.task.api.Task; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; -import java.util.HashMap; -import java.util.List; import java.util.Map; import java.util.Objects; diff --git a/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowTaskServiceImpl.java b/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowTaskServiceImpl.java index e570a694..1a8fd200 100644 --- a/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowTaskServiceImpl.java +++ b/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowTaskServiceImpl.java @@ -4,12 +4,9 @@ package com.ruoyi.flowable.service.impl; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.util.ObjectUtil; import com.alibaba.fastjson2.JSON; -import com.alibaba.fastjson2.JSONArray; import com.alibaba.fastjson2.JSONObject; import com.alibaba.fastjson2.TypeReference; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.ruoyi.common.core.domain.model.LoginUser; -import com.ruoyi.common.core.text.Convert; import com.ruoyi.flowable.common.constant.ProcessConstants; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.entity.SysRole; @@ -43,13 +40,11 @@ import org.flowable.bpmn.model.Process; import org.flowable.bpmn.model.*; import org.flowable.common.engine.api.FlowableException; import org.flowable.common.engine.api.FlowableObjectNotFoundException; -import org.flowable.common.engine.impl.identity.Authentication; import org.flowable.engine.ProcessEngineConfiguration; import org.flowable.engine.history.HistoricActivityInstance; import org.flowable.engine.history.HistoricProcessInstance; import org.flowable.engine.history.HistoricProcessInstanceQuery; import org.flowable.engine.repository.ProcessDefinition; -import org.flowable.engine.runtime.ActivityInstance; import org.flowable.engine.runtime.Execution; import org.flowable.engine.runtime.ProcessInstance; import org.flowable.engine.task.Comment; diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java index c11b7fca..ed685cfd 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java @@ -362,15 +362,15 @@ public class SysUserServiceImpl implements ISysUserService public int resetPwd(SysUser user) { -// List userIds = userMapper.selectUserByDept(); -// List sysUserRoleList = new ArrayList<>(); -// for(Long id:userIds){ -// SysUserRole sr = new SysUserRole(); -// sr.setUserId(id); -// sr.setRoleId(5L); -// sysUserRoleList.add(sr); -// } -// userRoleMapper.batchUserRole(sysUserRoleList); + List userIds = userMapper.selectUserByDept(); + List sysUserRoleList = new ArrayList<>(); + for(Long id:userIds){ + SysUserRole sr = new SysUserRole(); + sr.setUserId(id); + sr.setRoleId(48L); + sysUserRoleList.add(sr); + } + userRoleMapper.batchUserRole(sysUserRoleList); return userMapper.updateUser(user); } diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml index d486714d..f52fa447 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -215,9 +215,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" diff --git a/ruoyi-ui/src/views/flowable/task/finished/index.vue b/ruoyi-ui/src/views/flowable/task/finished/index.vue index e4e95689..afdf6576 100644 --- a/ruoyi-ui/src/views/flowable/task/finished/index.vue +++ b/ruoyi-ui/src/views/flowable/task/finished/index.vue @@ -306,7 +306,9 @@ export default { this.loading = false; //关闭并刷新列表 this.getList(); - }); + }).catch(() => { + this.loading = false; + });; }).catch(() => { console.log("取消操作"); }); diff --git a/ruoyi-ui/src/views/flowable/task/myProcess/detail/detailDrawer.vue b/ruoyi-ui/src/views/flowable/task/myProcess/detail/detailDrawer.vue index af1bd0d7..cde077a7 100644 --- a/ruoyi-ui/src/views/flowable/task/myProcess/detail/detailDrawer.vue +++ b/ruoyi-ui/src/views/flowable/task/myProcess/detail/detailDrawer.vue @@ -11,9 +11,11 @@
流程详情 【{{ title }}】 - 当前进度【{{ jdtitle }}】 - 当前节点【{{options.taskName}}】
-
-
-
+
+
+
+
+
流程详情 【{{ title }}】 - 当前进度【{{ jdtitle }}】 - 当前节点【{{options.taskName}}】
-
-
-
+
+
+
+
+
+
+ + + +
+
+
+
+ + + + + + + + + + + + {{ deptName }} + + + + {{ title }} + + + + {{ nickName }} + + + + {{ form.date }} + + + + + + + + {{times}} + + + + + + +
+ 提交申请 + 取 消 +
+
+ + +
+ + + + diff --git a/ruoyi-ui/src/views/flowable/task/myProcess/editTaskDrawer.vue b/ruoyi-ui/src/views/flowable/task/myProcess/editTaskDrawer.vue new file mode 100644 index 00000000..e62d7b9d --- /dev/null +++ b/ruoyi-ui/src/views/flowable/task/myProcess/editTaskDrawer.vue @@ -0,0 +1,376 @@ + + + + + \ No newline at end of file diff --git a/ruoyi-ui/src/views/flowable/task/myProcess/index.vue b/ruoyi-ui/src/views/flowable/task/myProcess/index.vue index 728228d3..f1d72185 100644 --- a/ruoyi-ui/src/views/flowable/task/myProcess/index.vue +++ b/ruoyi-ui/src/views/flowable/task/myProcess/index.vue @@ -215,6 +215,8 @@ + +
@@ -233,7 +235,9 @@ import { myProcessList,stopProcess } from "@/api/flowable/process"; import {allList,queryCount} from "@/api/flowable/businessKey"; import {myDefinitionList} from "@/api/flowable/definition"; import initTaskDrawer from "./initTaskDrawer.vue"; -import initLeaveTaskDrawer from './initLeaveTaskDrawer' +import initLeaveTaskDrawer from './initLeaveTaskDrawer.vue' +import editTaskDrawer from "./editTaskDrawer.vue"; +import editLeaveTaskDrawer from './editLeaveTaskDrawer.vue' import detailDrawer from "./detail/detailDrawer.vue"; import detailLeaveDrawer from "./detail/detailLeaveDrawer.vue"; export default { @@ -242,7 +246,9 @@ export default { initTaskDrawer, initLeaveTaskDrawer, detailDrawer, - detailLeaveDrawer + detailLeaveDrawer, + editTaskDrawer, + editLeaveTaskDrawer }, dicts: ["sys_process_category"], data() { @@ -427,9 +433,9 @@ export default { /** 继续办理 */ handleActivate(row){ if(row.procDefKey=="flow_xmglzdl_qjspb"){ - this.$refs.initLeaveTaskDrawer.show(row); + this.$refs.editLeaveTaskDrawer.show(row); }else{ - this.$refs.initTaskDrawer.show(row); + this.$refs.editTaskDrawer.show(row); } }, /** 判断是否继续办理 */ diff --git a/ruoyi-ui/src/views/flowable/task/myProcess/initLeaveTaskDrawer.vue b/ruoyi-ui/src/views/flowable/task/myProcess/initLeaveTaskDrawer.vue index 4e833143..52614161 100644 --- a/ruoyi-ui/src/views/flowable/task/myProcess/initLeaveTaskDrawer.vue +++ b/ruoyi-ui/src/views/flowable/task/myProcess/initLeaveTaskDrawer.vue @@ -19,10 +19,10 @@ label-width="120px" style="padding-right: 35px;" > -
-
-
-
+
+
+
+
@@ -38,12 +38,12 @@ :disabled="disPro" @change="projectChage" > - + @@ -73,7 +73,7 @@ 申请日期 - {{ form.date }} + {{ date }}