优化“流程表单:使用异步组件的方式动态加载业务表单指定的查看表单的组件”的命名

This commit is contained in:
YunaiV 2023-04-19 20:04:06 +08:00
parent d87c02b232
commit 730e287d86

View File

@ -73,7 +73,7 @@
</el-col>
<!-- 情况二业务表单 -->
<div v-if="processInstance?.processDefinition?.formType === 20">
<autoComponent :id="processInstance.businessKey" />
<BusinessFormComponent :id="processInstance.businessKey" />
</div>
</el-card>
@ -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)
}
//