File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/views/bpm/processInstance/detail Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 73
73
</el-col >
74
74
<!-- 情况二:业务表单 -->
75
75
<div v-if =" processInstance?.processDefinition?.formType === 20" >
76
- <autoComponent :id =" processInstance.businessKey" />
76
+ <BusinessFormComponent :id =" processInstance.businessKey" />
77
77
</div >
78
78
</el-card >
79
79
@@ -183,8 +183,9 @@ const getDetail = () => {
183
183
// 2. 获得流程任务列表(审批记录)
184
184
getTaskList ()
185
185
}
186
- const autoComponent = ref ( null ) // 异步组件
186
+
187
187
/** 加载流程实例 */
188
+ const BusinessFormComponent = ref (null ) // 异步组件
188
189
const getProcessInstance = async () => {
189
190
try {
190
191
processInstanceLoading .value = true
@@ -194,7 +195,7 @@ const getProcessInstance = async () => {
194
195
return
195
196
}
196
197
processInstance .value = data
197
- autoComponent . value = registerComponent ( data . processDefinition . formCustomViewPath )
198
+
198
199
// 设置表单信息
199
200
const processDefinition = data .processDefinition
200
201
if (processDefinition .formType === 10 ) {
@@ -209,6 +210,8 @@ const getProcessInstance = async () => {
209
210
fApi .value ?.fapi ?.resetBtn .show (false )
210
211
fApi .value ?.fapi ?.disabled (true )
211
212
})
213
+ } else {
214
+ BusinessFormComponent .value = registerComponent (data .processDefinition .formCustomViewPath )
212
215
}
213
216
214
217
// 加载流程图
You can’t perform that action at this time.
0 commit comments