feat: 保存为http任务的服务任务,默认打开http任务选项和面板

pull/837/head
sinkingsoul 2025-11-05 15:03:01 +08:00 committed by zhanglc
parent be35a27aca
commit aa8b076f8f
1 changed files with 7 additions and 1 deletions

View File

@ -216,7 +216,7 @@ const resetHttpForm = () => {
const resetServiceTaskForm = () => {
const businessObject = bpmnElement.value?.businessObject
const nextForm: Record<string, any> = { ...DEFAULT_TASK_FORM }
const nextForm = { ...DEFAULT_TASK_FORM }
if (businessObject) {
if (businessObject.class) {
@ -233,6 +233,12 @@ const resetServiceTaskForm = () => {
}
if (businessObject.$attrs?.[flowableTypeKey] === 'http') {
nextForm.executeType = 'http'
} else {
// flowable:type=http HTTP HTTP
const { httpFields } = collectHttpExtensionInfo()
if (httpFields.size > 0) {
nextForm.executeType = 'http'
}
}
}