From 58e6fdef78e4e8a8cb3bd7090ef900e9032cf714 Mon Sep 17 00:00:00 2001 From: gssong <1742057357@qq.com> Date: 星期五, 31 五月 2024 22:11:25 +0800 Subject: [PATCH] update 优化流程实例接口全部按照业务id操作 --- src/components/Process/submitVerify.vue | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/Process/submitVerify.vue b/src/components/Process/submitVerify.vue index b0e4c11..d71b855 100644 --- a/src/components/Process/submitVerify.vue +++ b/src/components/Process/submitVerify.vue @@ -142,8 +142,7 @@ participantVo: undefined, multiInstance: undefined, businessKey: undefined, - wfNodeConfigVo: undefined, - wfDefinitionConfigVo: undefined + wfNodeConfigVo: undefined }); //鍔犵 鍑忕鏍囬 const title = ref(''); @@ -209,10 +208,15 @@ await proxy?.$modal.confirm('鏄惁纭鎻愪氦锛�'); loading.value = true; buttonLoading.value = true; - await completeTask(form.value).finally(() => (loading.value = false)); - dialog.visible = false; - emits('submitCallback'); - proxy?.$modal.msgSuccess('鎿嶄綔鎴愬姛'); + try { + await completeTask(form.value); + dialog.visible = false; + emits('submitCallback'); + proxy?.$modal.msgSuccess('鎿嶄綔鎴愬姛'); + } finally { + loading.value = false + buttonLoading.value = false + } }; /** 椹冲洖寮圭獥鎵撳紑 */ -- Gitblit v1.9.3