File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/views/bpm/processInstance/detail Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ import { formatDate } from '@/utils/formatTime'
128
128
import { DICT_TYPE } from ' @/utils/dict'
129
129
import { BpmModelType } from ' @/utils/constants'
130
130
import { setConfAndFields2 } from ' @/utils/formCreate'
131
+ import { registerComponent } from ' @/utils/routerHelper'
131
132
import type { ApiAttrs } from ' @form-create/element-ui/types/config'
132
133
import * as ProcessInstanceApi from ' @/api/bpm/processInstance'
133
134
import * as UserApi from ' @/api/system/user'
@@ -228,6 +229,9 @@ const getApprovalDetail = async () => {
228
229
})
229
230
}
230
231
})
232
+ } else {
233
+ // 注意:data.processDefinition.formCustomViewPath 是组件的全路径,例如说:/crm/contract/detail/index.vue
234
+ BusinessFormComponent .value = registerComponent (data .processDefinition .formCustomViewPath )
231
235
}
232
236
233
237
// 获取审批节点,显示 Timeline 的数据
You can’t perform that action at this time.
0 commit comments