From 47aed608a6ed2fda063459fc4744f99e21b49224 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: Sun, 25 Feb 2024 11:06:26 +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 --- yanzhu-ui/src/layout/components/Navbar.vue | 2 +- yanzhu-ui/src/layout/index.vue | 2 +- yanzhu-ui/src/store/modules/flowtask.js | 12 +- .../views/flowable/task/finished/index.vue | 2 +- .../task/myProcess/editTaskDrawer.vue | 2 +- .../task/todo/detail/approveDrawer.vue | 626 ++++++++++++++++++ .../src/views/flowable/task/todo/index.vue | 2 +- yanzhu-ui/vue.config.js | 4 +- 8 files changed, 636 insertions(+), 16 deletions(-) create mode 100644 yanzhu-ui/src/views/flowable/task/todo/detail/approveDrawer.vue 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 @@ + + + + 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]: ''