Skip to content

Commit 8df5991

Browse files
committed
fix: 流程发起页面-修复重新发起时表单数据未回显问题
1 parent 8b5740d commit 8df5991

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/views/bpm/processInstance/create/ProcessDefinitionDetail.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ const getApprovalDetail = async (row: any) => {
162162
}
163163
}
164164
/** 提交按钮 */
165-
const submitForm = async (formData: any) => {
165+
const submitForm = async () => {
166166
if (!fApi.value || !props.selectProcessDefinition) {
167167
return
168168
}
@@ -182,7 +182,7 @@ const submitForm = async (formData: any) => {
182182
try {
183183
await ProcessInstanceApi.createProcessInstance({
184184
processDefinitionId: props.selectProcessDefinition.id,
185-
variables: formData || detailForm.value.value,
185+
variables: detailForm.value.value,
186186
startUserSelectAssignees: startUserSelectAssignees.value
187187
})
188188
// 提示

src/views/bpm/processInstance/index.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ const handleCreate = async (row?: ProcessInstanceVO) => {
222222
const processDefinitionDetail = await DefinitionApi.getProcessDefinition(
223223
row.processDefinitionId
224224
)
225-
debugger
226225
if (processDefinitionDetail.formType === 20) {
227226
message.error('重新发起流程失败,原因:该流程使用业务表单,不支持重新发起')
228227
return

0 commit comments

Comments
 (0)