From 750c6eec1dbf69e9cfb3e6e7563ade245f164b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?= <7507756+jiang_yuqi@user.noreply.gitee.com> Date: Tue, 12 Sep 2023 13:02:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/store/modules/flowtask.js | 42 +++++++++++++++++++ .../views/flowable/task/finished/index.vue | 2 + ruoyi-ui/src/views/system/user/index.vue | 18 +++++++- 3 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 ruoyi-ui/src/store/modules/flowtask.js diff --git a/ruoyi-ui/src/store/modules/flowtask.js b/ruoyi-ui/src/store/modules/flowtask.js new file mode 100644 index 00000000..8804f221 --- /dev/null +++ b/ruoyi-ui/src/store/modules/flowtask.js @@ -0,0 +1,42 @@ +import { myAwaitFlowTaskList } from "@/api/flowable/businessKey"; + +const flowtask = { + state: { + awaitTaskNum:0 + }, + + mutations: { + SET_AWAIT_TASK: (state, number) => { + state.awaitTaskNum = number + } + }, + + actions: { + // 设置代办任务 + settingAwaitNum({ commit }) { + return new Promise((resolve, reject) => { + //查询当前登录人的代办任务数量 + let params={ pageNum: 1,pageSize: 1 }; + myAwaitFlowTaskList(params).then(response => { + let els=document.querySelectorAll(".todo_num_tips"); + commit('SET_AWAIT_TASK',response.total) + if(els.length>0){ + els.forEach(el=>{ + el.innerHTML=response.total; + if(response.total>0){ + el.style.display="inline"; + }else{ + el.style.display="none"; + } + }); + } + resolve() + }).catch(error => { + reject(error) + }); + }) + } + } + } + + export default flowtask \ No newline at end of file diff --git a/ruoyi-ui/src/views/flowable/task/finished/index.vue b/ruoyi-ui/src/views/flowable/task/finished/index.vue index 0cbabe43..e4e95689 100644 --- a/ruoyi-ui/src/views/flowable/task/finished/index.vue +++ b/ruoyi-ui/src/views/flowable/task/finished/index.vue @@ -300,6 +300,8 @@ export default { }).then(() => { this.loading=true; revokeProcess(params).then(res => { + //刷新代办任务 + this.$store.dispatch('settingAwaitNum'); this.$modal.msgSuccess("任务撤回成功"); this.loading = false; //关闭并刷新列表 diff --git a/ruoyi-ui/src/views/system/user/index.vue b/ruoyi-ui/src/views/system/user/index.vue index 0eb2e404..1b08bdaf 100644 --- a/ruoyi-ui/src/views/system/user/index.vue +++ b/ruoyi-ui/src/views/system/user/index.vue @@ -313,6 +313,11 @@ +
“总包公司” 有总包公司所有项目权限。
+“总包公司个人” 有项目人员中担任职务项目的权限。
+监理单位,分包单位同上。总包公司权限大于个人权限,请选择角色时以个人角色为主
+