From 730e287d8650a7621801576ee15d33645113b40d Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 19 Apr 2023 20:04:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E2=80=9C=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=EF=BC=9A=E4=BD=BF=E7=94=A8=E5=BC=82=E6=AD=A5?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E7=9A=84=E6=96=B9=E5=BC=8F=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E4=B8=9A=E5=8A=A1=E8=A1=A8=E5=8D=95=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E7=9A=84=E6=9F=A5=E7=9C=8B=E8=A1=A8=E5=8D=95=E7=9A=84?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E2=80=9D=E7=9A=84=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bpm/processInstance/detail/index.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/bpm/processInstance/detail/index.vue b/src/views/bpm/processInstance/detail/index.vue index eb01e6e0..f5b799d5 100644 --- a/src/views/bpm/processInstance/detail/index.vue +++ b/src/views/bpm/processInstance/detail/index.vue @@ -73,7 +73,7 @@
- +
@@ -183,8 +183,9 @@ const getDetail = () => { // 2. 获得流程任务列表(审批记录) getTaskList() } -const autoComponent = ref(null) // 异步组件 + /** 加载流程实例 */ +const BusinessFormComponent = ref(null) // 异步组件 const getProcessInstance = async () => { try { processInstanceLoading.value = true @@ -194,7 +195,7 @@ const getProcessInstance = async () => { return } processInstance.value = data - autoComponent.value = registerComponent(data.processDefinition.formCustomViewPath) + // 设置表单信息 const processDefinition = data.processDefinition if (processDefinition.formType === 10) { @@ -209,6 +210,8 @@ const getProcessInstance = async () => { fApi.value?.fapi?.resetBtn.show(false) fApi.value?.fapi?.disabled(true) }) + } else { + BusinessFormComponent.value = registerComponent(data.processDefinition.formCustomViewPath) } // 加载流程图