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) {
|
if (!fApi.value || !props.selectProcessDefinition) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -182,7 +182,7 @@ const submitForm = async (formData: any) => {
|
||||||
try {
|
try {
|
||||||
await ProcessInstanceApi.createProcessInstance({
|
await ProcessInstanceApi.createProcessInstance({
|
||||||
processDefinitionId: props.selectProcessDefinition.id,
|
processDefinitionId: props.selectProcessDefinition.id,
|
||||||
variables: formData || detailForm.value.value,
|
variables: detailForm.value.value,
|
||||||
startUserSelectAssignees: startUserSelectAssignees.value
|
startUserSelectAssignees: startUserSelectAssignees.value
|
||||||
})
|
})
|
||||||
// 提示
|
// 提示
|
||||||
|
|
|
@ -222,7 +222,6 @@ const handleCreate = async (row?: ProcessInstanceVO) => {
|
||||||
const processDefinitionDetail = await DefinitionApi.getProcessDefinition(
|
const processDefinitionDetail = await DefinitionApi.getProcessDefinition(
|
||||||
row.processDefinitionId
|
row.processDefinitionId
|
||||||
)
|
)
|
||||||
debugger
|
|
||||||
if (processDefinitionDetail.formType === 20) {
|
if (processDefinitionDetail.formType === 20) {
|
||||||
message.error('重新发起流程失败,原因:该流程使用业务表单,不支持重新发起')
|
message.error('重新发起流程失败,原因:该流程使用业务表单,不支持重新发起')
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue