fix: 流程发起页面-修复重新发起时表单数据未回显问题

pull/582/head
GoldenZqqq 2024-11-07 13:49:18 +08:00
parent 8b5740d05c
commit 8df5991940
2 changed files with 2 additions and 3 deletions

View File

@ -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
})
//

View File

@ -222,7 +222,6 @@ const handleCreate = async (row?: ProcessInstanceVO) => {
const processDefinitionDetail = await DefinitionApi.getProcessDefinition(
row.processDefinitionId
)
debugger
if (processDefinitionDetail.formType === 20) {
message.error('重新发起流程失败,原因:该流程使用业务表单,不支持重新发起')
return