From 176bce90372715643fc9bc1f808c46a2d5387c33 Mon Sep 17 00:00:00 2001 From: BMJ Date: Tue, 22 Nov 2022 23:01:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=B5=8F=E8=A7=88=E5=99=A8?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E6=B5=81=E7=A8=8B=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=B8=8D=E5=B1=95=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/workflow/work/detail.vue | 26 +++++++++++++-------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/ruoyi-ui/src/views/workflow/work/detail.vue b/ruoyi-ui/src/views/workflow/work/detail.vue index b4b9a4c9..18ac4dd3 100644 --- a/ruoyi-ui/src/views/workflow/work/detail.vue +++ b/ruoyi-ui/src/views/workflow/work/detail.vue @@ -302,19 +302,25 @@ export default { userOpen: false }; }, + created() { + this.init(); + }, activated() { - this.taskForm.deployId = this.$route.query && this.$route.query.deployId; - this.taskForm.definitionId = this.$route.query && this.$route.query.definitionId; - this.taskForm.taskId = this.$route.query && this.$route.query.taskId; - this.taskForm.procInsId = this.$route.query && this.$route.query.procInsId; - this.finished = this.$route.query && this.$route.query.finished - // 流程任务重获取变量表单 - if (this.taskForm.taskId) { - this.getProcessDetails(this.taskForm.procInsId, this.taskForm.deployId, this.taskForm.taskId); - } - this.loadIndex = this.taskForm.procInsId; + this.init(); }, methods: { + init() { + this.taskForm.deployId = this.$route.query && this.$route.query.deployId; + this.taskForm.definitionId = this.$route.query && this.$route.query.definitionId; + this.taskForm.taskId = this.$route.query && this.$route.query.taskId; + this.taskForm.procInsId = this.$route.query && this.$route.query.procInsId; + this.finished = this.$route.query && this.$route.query.finished + // 流程任务重获取变量表单 + if (this.taskForm.taskId) { + this.getProcessDetails(this.taskForm.procInsId, this.taskForm.deployId, this.taskForm.taskId); + } + this.loadIndex = this.taskForm.procInsId; + }, /** 查询部门下拉树结构 */ getTreeSelect() { deptTreeSelect().then(response => {