diff --git a/yanzhu-ui/src/layout/components/Navbar.vue b/yanzhu-ui/src/layout/components/Navbar.vue index dec31e2..7d16324 100644 --- a/yanzhu-ui/src/layout/components/Navbar.vue +++ b/yanzhu-ui/src/layout/components/Navbar.vue @@ -90,7 +90,7 @@ export default { toggleSideBar() { this.$store.dispatch('app/toggleSideBar'); //查询任务tips - this.$store.dispatch('settingAwaitNum'); + this.$store.dispatch('initMyTaskNum'); }, async logout() { this.$confirm('确定注销并退出系统吗?', '提示', { diff --git a/yanzhu-ui/src/layout/index.vue b/yanzhu-ui/src/layout/index.vue index 7e73f5f..c9119c3 100644 --- a/yanzhu-ui/src/layout/index.vue +++ b/yanzhu-ui/src/layout/index.vue @@ -56,7 +56,7 @@ export default { }, mounted() { //查询任务tips - this.$store.dispatch('settingAwaitNum'); + this.$store.dispatch('initMyTaskNum'); }, methods: { handleClickOutside() { diff --git a/yanzhu-ui/src/store/modules/flowtask.js b/yanzhu-ui/src/store/modules/flowtask.js index 55b4640..eb12c34 100644 --- a/yanzhu-ui/src/store/modules/flowtask.js +++ b/yanzhu-ui/src/store/modules/flowtask.js @@ -1,19 +1,13 @@ import { findMyTask } from "@/api/flowable/businessKey"; const flowtask = { - state: { - awaitTaskNum:0 - }, + state: {}, - mutations: { - SET_AWAIT_TASK: (state, number) => { - state.awaitTaskNum = number - } - }, + mutations: {}, actions: { // 设置代办任务 - settingAwaitNum({ commit }) { + initMyTaskNum({ commit }) { return new Promise((resolve, reject) => { //查询当前登录人的代办任务数量 findMyTask({}).then(response => { diff --git a/yanzhu-ui/src/views/flowable/task/finished/index.vue b/yanzhu-ui/src/views/flowable/task/finished/index.vue index a90a567..25a6f97 100644 --- a/yanzhu-ui/src/views/flowable/task/finished/index.vue +++ b/yanzhu-ui/src/views/flowable/task/finished/index.vue @@ -371,7 +371,7 @@ export default { _this.loading=true; revokeProcess(params).then(res => { //刷新代办任务 - _this.$store.dispatch('settingAwaitNum'); + _this.$store.dispatch('initMyTaskNum'); _this.$modal.msgSuccess("任务撤回成功"); _this.loading = false; //关闭并刷新列表 diff --git a/yanzhu-ui/src/views/flowable/task/myProcess/editTaskDrawer.vue b/yanzhu-ui/src/views/flowable/task/myProcess/editTaskDrawer.vue index f604965..436b642 100644 --- a/yanzhu-ui/src/views/flowable/task/myProcess/editTaskDrawer.vue +++ b/yanzhu-ui/src/views/flowable/task/myProcess/editTaskDrawer.vue @@ -215,7 +215,7 @@ INITIATOR:this.form.INITIATOR } complete(this.form).then(res => { - this.$store.dispatch('settingAwaitNum'); + this.$store.dispatch('initMyTaskNum'); this.$modal.msgSuccess("任务提交成功"); this.loading = false; //关闭并刷新列表 diff --git a/yanzhu-ui/src/views/flowable/task/todo/detail/approveDrawer.vue b/yanzhu-ui/src/views/flowable/task/todo/detail/approveDrawer.vue new file mode 100644 index 0000000..136f9d8 --- /dev/null +++ b/yanzhu-ui/src/views/flowable/task/todo/detail/approveDrawer.vue @@ -0,0 +1,626 @@ + + + + + 流程详情 【{{ title }}】 - 当前进度【{{ jdtitle }}】 - 当前节点【{{options.taskName}}】 + + + + + + + + {{ getSort(index) }}{{item.taskName}}{{item.commentResult}} + + + + 办理人 + {{item.assigneeName}} + {{item.deptName}} + + + 候选办理 + {{item.candidate}} + + + 驳回节点 + {{getDeleteReason(item.deleteReason)}} + + + 接收时间 + {{item.startTime}} + + + 处理时间 + {{item.endTime}} + + + 处理耗时 + {{getDurationDate(item.duration)}} + + + 处理意见 + {{item.message}} + + + + + + + + + + {{ initData.projectName }} + + + {{ options.startDeptName }} + + + {{ options.startUserName }} + + + {{ title }} + + + + {{file.substring(file.lastIndexOf('/')+1)}} + + + + {{initData.remark}} + + + + + + + + + + + + 任务转办 + 审批通过 + 退回任务 + 驳回上级 + + + + “审批通过” 操作后,代表您对当前任务满意,任务进入下一阶段。 + “退回任务” 操作后,代表您对当前任务不满意,任务进入您选择的阶段,或者直接退回给申请人重新申请。 + “驳回上级” 操作后,代表您对当前任务不满意,任务退回到上一阶段继续处理。 + + + + + + + + + diff --git a/yanzhu-ui/src/views/flowable/task/todo/index.vue b/yanzhu-ui/src/views/flowable/task/todo/index.vue index bdfd922..e45d782 100644 --- a/yanzhu-ui/src/views/flowable/task/todo/index.vue +++ b/yanzhu-ui/src/views/flowable/task/todo/index.vue @@ -210,7 +210,7 @@ export default { this.queryParams.params["endDate"] = this.daterangeCheckTime[1]; } //重新刷新代办任务 - this.$store.dispatch('settingAwaitNum'); + this.$store.dispatch('initMyTaskNum'); myAwaitFlowTaskList(this.queryParams).then((response) => { this.todoList = response.data.records; this.total = response.data.total; diff --git a/yanzhu-ui/vue.config.js b/yanzhu-ui/vue.config.js index 09e6073..8a49fb7 100644 --- a/yanzhu-ui/vue.config.js +++ b/yanzhu-ui/vue.config.js @@ -35,8 +35,8 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - //target: `http://localhost:8080${process.env.VUE_APP_BASE_API}`, - target: `http://49.235.181.228${process.env.VUE_APP_BASE_API}`, + target: `http://localhost:8080${process.env.VUE_APP_BASE_API}`, + //target: `http://49.235.181.228${process.env.VUE_APP_BASE_API}`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''
{{ getSort(index) }}{{item.taskName}}{{item.commentResult}}
“审批通过” 操作后,代表您对当前任务满意,任务进入下一阶段。
“退回任务” 操作后,代表您对当前任务不满意,任务进入您选择的阶段,或者直接退回给申请人重新申请。
“驳回上级” 操作后,代表您对当前任务不满意,任务退回到上一阶段继续处理。