From ed355c4a811fd16f571ec66df67c6bb09dd38ef2 Mon Sep 17 00:00:00 2001 From: konbai <1527468660@qq.com> Date: Thu, 12 May 2022 23:08:01 +0800 Subject: [PATCH] =?UTF-8?q?fix=20--=20=E4=BF=AE=E5=A4=8D"=E5=8F=91?= =?UTF-8?q?=E8=B5=B7=E6=B5=81=E7=A8=8B"=E8=A1=A8=E5=8D=95=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=E4=B8=8D=E5=88=B7=E6=96=B0=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/start.vue | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/ruoyi-ui/src/views/workflow/work/start.vue b/ruoyi-ui/src/views/workflow/work/start.vue index dbb99175..dc1e5b4b 100644 --- a/ruoyi-ui/src/views/workflow/work/start.vue +++ b/ruoyi-ui/src/views/workflow/work/start.vue @@ -3,7 +3,6 @@
发起流程 -
@@ -26,19 +25,22 @@ export default { }, data() { return { + definitionId: null, + deployId: null, formOpen: false, - formData: {} + formData: {}, } }, - created() { - this.definitionId = this.$route.query && this.$route.query.definitionId; - this.deployId = this.$route.query && this.$route.query.deployId; - this.getFormData(this.deployId); + beforeRouteEnter(to, from, next) { + next(vm => { + vm.initData() + }) }, methods: { - /** 流程流转记录 */ - getFormData(deployId) { - getFormByDeployId(deployId).then(res => { + initData() { + this.definitionId = this.$route.query && this.$route.query.definitionId; + this.deployId = this.$route.query && this.$route.query.deployId; + getFormByDeployId(this.deployId).then(res => { if (res.data) { this.formData = res.data; this.formOpen = true