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

This commit is contained in:
sinkingsoul
2025-11-05 15:03:01 +08:00
committed by zhanglc
parent be35a27aca
commit aa8b076f8f

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'
}
}
}