fix: 流程发起页面-修复重新发起时表单数据未回显问题
parent
8b5740d05c
commit
8df5991940
|
@ -162,7 +162,7 @@ const getApprovalDetail = async (row: any) => {
|
|||
}
|
||||
}
|
||||
/** 提交按钮 */
|
||||
const submitForm = async (formData: any) => {
|
||||
const submitForm = async () => {
|
||||
if (!fApi.value || !props.selectProcessDefinition) {
|
||||
return
|
||||
}
|
||||
|
@ -182,7 +182,7 @@ const submitForm = async (formData: any) => {
|
|||
try {
|
||||
await ProcessInstanceApi.createProcessInstance({
|
||||
processDefinitionId: props.selectProcessDefinition.id,
|
||||
variables: formData || detailForm.value.value,
|
||||
variables: detailForm.value.value,
|
||||
startUserSelectAssignees: startUserSelectAssignees.value
|
||||
})
|
||||
// 提示
|
||||
|
|
|
@ -222,7 +222,6 @@ const handleCreate = async (row?: ProcessInstanceVO) => {
|
|||
const processDefinitionDetail = await DefinitionApi.getProcessDefinition(
|
||||
row.processDefinitionId
|
||||
)
|
||||
debugger
|
||||
if (processDefinitionDetail.formType === 20) {
|
||||
message.error('重新发起流程失败,原因:该流程使用业务表单,不支持重新发起')
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue