From 9b0ed72466bcb8ed4ad74f9577a001440f0e0991 Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Sat, 26 Mar 2022 19:24:33 +0800 Subject: [PATCH] feat: There is no way the, BUG #52136 --- .../creatProcess/qbrk-product/step10.vue | 8 ++++--- .../creatProcess/qbrk-product/step11.vue | 8 ++++--- .../creatProcess/qbrk-product/step12.vue | 8 ++++--- .../pages/creatProcess/qbrk-product/step4.vue | 8 ++++--- .../pages/creatProcess/qbrk-product/step7.vue | 8 ++++--- .../pages/creatProcess/qbrk-product/step8.vue | 8 ++++--- .../pages/creatProcess/qbrk-product/step9.vue | 8 ++++--- .../pages/creatProcess/qbrk/step10.vue | 8 ++++--- .../pages/creatProcess/qbrk/step11.vue | 8 ++++--- .../pages/creatProcess/qbrk/step4.vue | 8 ++++--- .../pages/creatProcess/qbrk/step7.vue | 23 ++++++++++++++++--- .../pages/creatProcess/qbrk/step8.vue | 8 ++++--- .../pages/creatProcess/qbrk/step9.vue | 8 ++++--- 13 files changed, 80 insertions(+), 39 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step10.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step10.vue index e91d77e4f..c2dad4274 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step10.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step10.vue @@ -1219,19 +1219,21 @@ }) }, checkedRoleTransfer (data) { - this.assigneeNewLoading = true + this.isSubmit = true + this.saveLoading = true changeAssigneeNew({ taskId: this.$route.query.taskIds, // 任务id userId:this.$store.getters.userInfo.userId, // 委托人 assignee: data[0].id, // 被委托人 pId: this.$route.query.prcId, // 流程实例 }).then(res => { - this.assigneeNewLoading = false + this.isSubmit = false + this.saveLoading = false if (res.success) { this.drawerModal = false this.$message.success('调整成功') - this.processNum() this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) + this.processNum() } else { this.$message.warning(res.message) } diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step11.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step11.vue index adae7face..55c112319 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step11.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step11.vue @@ -1219,19 +1219,21 @@ }) }, checkedRoleTransfer (data) { - this.assigneeNewLoading = true + this.isSubmit = true + this.saveLoading = true changeAssigneeNew({ taskId: this.$route.query.taskIds, // 任务id userId:this.$store.getters.userInfo.userId, // 委托人 assignee: data[0].id, // 被委托人 pId: this.$route.query.prcId, // 流程实例 }).then(res => { - this.assigneeNewLoading = false + this.isSubmit = false + this.saveLoading = false if (res.success) { this.drawerModal = false this.$message.success('调整成功') - this.processNum() this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) + this.processNum() } else { this.$message.warning(res.message) } diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step12.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step12.vue index f324ba803..57892b124 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step12.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step12.vue @@ -1219,19 +1219,21 @@ }) }, checkedRoleTransfer (data) { - this.assigneeNewLoading = true + this.isSubmit = true + this.saveLoading = true changeAssigneeNew({ taskId: this.$route.query.taskIds, // 任务id userId:this.$store.getters.userInfo.userId, // 委托人 assignee: data[0].id, // 被委托人 pId: this.$route.query.prcId, // 流程实例 }).then(res => { - this.assigneeNewLoading = false + this.isSubmit = false + this.saveLoading = false if (res.success) { this.drawerModal = false this.$message.success('调整成功') - this.processNum() this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) + this.processNum() } else { this.$message.warning(res.message) } diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step4.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step4.vue index a59798972..eb76b7f79 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step4.vue @@ -1218,19 +1218,21 @@ }) }, checkedRoleTransfer (data) { - this.assigneeNewLoading = true + this.isSubmit = true + this.saveLoading = true changeAssigneeNew({ taskId: this.$route.query.taskIds, // 任务id userId:this.$store.getters.userInfo.userId, // 委托人 assignee: data[0].id, // 被委托人 pId: this.$route.query.prcId, // 流程实例 }).then(res => { - this.assigneeNewLoading = false + this.isSubmit = false + this.saveLoading = false if (res.success) { this.drawerModal = false this.$message.success('调整成功') - this.processNum() this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) + this.processNum() } else { this.$message.warning(res.message) } diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step7.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step7.vue index dbad140ce..33fe91876 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step7.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step7.vue @@ -2283,19 +2283,21 @@ } }, checkedRoleTransfer (data) { - this.assigneeNewLoading = true + this.isSubmit = true + this.saveLoading = true changeAssigneeNew({ taskId: this.$route.query.taskIds, // 任务id userId:this.$store.getters.userInfo.userId, // 委托人 assignee: data[0].id, // 被委托人 pId: this.$route.query.prcId, // 流程实例 }).then(res => { - this.assigneeNewLoading = false + this.isSubmit = false + this.saveLoading = false if (res.success) { this.drawerModal = false this.$message.success('调整成功') - this.processNum() this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) + this.processNum() } else { this.$message.warning(res.message) } diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step8.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step8.vue index 28e966a37..c82f9be88 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step8.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step8.vue @@ -1219,19 +1219,21 @@ }) }, checkedRoleTransfer (data) { - this.assigneeNewLoading = true + this.isSubmit = true + this.saveLoading = true changeAssigneeNew({ taskId: this.$route.query.taskIds, // 任务id userId:this.$store.getters.userInfo.userId, // 委托人 assignee: data[0].id, // 被委托人 pId: this.$route.query.prcId, // 流程实例 }).then(res => { - this.assigneeNewLoading = false + this.isSubmit = false + this.saveLoading = false if (res.success) { this.drawerModal = false this.$message.success('调整成功') - this.processNum() this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) + this.processNum() } else { this.$message.warning(res.message) } diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step9.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step9.vue index 6d5885bba..8e6550331 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step9.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step9.vue @@ -1219,19 +1219,21 @@ }) }, checkedRoleTransfer (data) { - this.assigneeNewLoading = true + this.isSubmit = true + this.saveLoading = true changeAssigneeNew({ taskId: this.$route.query.taskIds, // 任务id userId:this.$store.getters.userInfo.userId, // 委托人 assignee: data[0].id, // 被委托人 pId: this.$route.query.prcId, // 流程实例 }).then(res => { - this.assigneeNewLoading = false + this.isSubmit = false + this.saveLoading = false if (res.success) { this.drawerModal = false this.$message.success('调整成功') - this.processNum() this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) + this.processNum() } else { this.$message.warning(res.message) } diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step10.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step10.vue index dabf401a1..e76696259 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step10.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step10.vue @@ -1218,19 +1218,21 @@ } }, checkedRoleTransfer (data) { - this.assigneeNewLoading = true + this.isSubmit = true + this.saveLoading = true changeAssigneeNew({ taskId: this.$route.query.taskIds, // 任务id userId:this.$store.getters.userInfo.userId, // 委托人 assignee: data[0].id, // 被委托人 pId: this.$route.query.prcId, // 流程实例 }).then(res => { - this.assigneeNewLoading = false + this.isSubmit = false + this.saveLoading = false if (res.success) { this.drawerModal = false this.$message.success('调整成功') - this.processNum() this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) + this.processNum() } else { this.$message.warning(res.message) } diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step11.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step11.vue index 0e15708c4..468e56c7f 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step11.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step11.vue @@ -1217,19 +1217,21 @@ } }, checkedRoleTransfer (data) { - this.assigneeNewLoading = true + this.isSubmit = true + this.saveLoading = true changeAssigneeNew({ taskId: this.$route.query.taskIds, // 任务id userId:this.$store.getters.userInfo.userId, // 委托人 assignee: data[0].id, // 被委托人 pId: this.$route.query.prcId, // 流程实例 }).then(res => { - this.assigneeNewLoading = false + this.isSubmit = false + this.saveLoading = false if (res.success) { this.drawerModal = false this.$message.success('调整成功') - this.processNum() this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) + this.processNum() } else { this.$message.warning(res.message) } diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step4.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step4.vue index 794c359ad..ef6528b4b 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step4.vue @@ -1228,19 +1228,21 @@ }) }, checkedRoleTransfer (data) { - this.assigneeNewLoading = true + this.isSubmit = true + this.saveLoading = true changeAssigneeNew({ taskId: this.$route.query.taskIds, // 任务id userId:this.$store.getters.userInfo.userId, // 委托人 assignee: data[0].id, // 被委托人 pId: this.$route.query.prcId, // 流程实例 }).then(res => { - this.assigneeNewLoading = false + this.isSubmit = false + this.saveLoading = false if (res.success) { this.drawerModal = false this.$message.success('调整成功') - this.processNum() this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) + this.processNum() } else { this.$message.warning(res.message) } diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step7.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step7.vue index bf715ec65..b9ab4570a 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step7.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step7.vue @@ -1425,24 +1425,41 @@ } }, checkedRoleTransfer (data) { - this.assigneeNewLoading = true + this.isSubmit = true + this.saveLoading = true changeAssigneeNew({ taskId: this.$route.query.taskIds, // 任务id userId:this.$store.getters.userInfo.userId, // 委托人 assignee: data[0].id, // 被委托人 pId: this.$route.query.prcId, // 流程实例 }).then(res => { - this.assigneeNewLoading = false + this.isSubmit = false + this.saveLoading = false if (res.success) { this.drawerModal = false this.$message.success('调整成功') - this.processNum() this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) + this.processNum() } else { this.$message.warning(res.message) } }) }, + // 请求转换流程图 + processNum (row) { + axios.request({ + url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(), + responseType: 'blob', + method: 'get', + params: { + prcNum: this.$route.query.prcNum + } + }).then(res => { + // let blob = new Blob([res.data], {type: 'image/jpg'}) + // let url = window.URL.createObjectURL(res.data) + this.processStep = window.URL.createObjectURL(res.data) + }) + }, checkedRole (data) { if (this.type === 0) { this.roleForm.deptUserId = data[0].id diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step8.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step8.vue index 5be5a4a19..f935207a0 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step8.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step8.vue @@ -1246,19 +1246,21 @@ } }, checkedRoleTransfer (data) { - this.assigneeNewLoading = true + this.isSubmit = true + this.saveLoading = true changeAssigneeNew({ taskId: this.$route.query.taskIds, // 任务id userId:this.$store.getters.userInfo.userId, // 委托人 assignee: data[0].id, // 被委托人 pId: this.$route.query.prcId, // 流程实例 }).then(res => { - this.assigneeNewLoading = false + this.isSubmit = false + this.saveLoading = false if (res.success) { this.drawerModal = false this.$message.success('调整成功') - this.processNum() this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) + this.processNum() } else { this.$message.warning(res.message) } diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step9.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step9.vue index 450635450..cc3f9ef01 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step9.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step9.vue @@ -1465,19 +1465,21 @@ } }, checkedRoleTransfer (data) { - this.assigneeNewLoading = true + this.isSubmit = true + this.saveLoading = true changeAssigneeNew({ taskId: this.$route.query.taskIds, // 任务id userId:this.$store.getters.userInfo.userId, // 委托人 assignee: data[0].id, // 被委托人 pId: this.$route.query.prcId, // 流程实例 }).then(res => { - this.assigneeNewLoading = false + this.isSubmit = false + this.saveLoading = false if (res.success) { this.drawerModal = false this.$message.success('调整成功') - this.processNum() this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) + this.processNum() } else { this.$message.warning(res.message) }