Skip to content

Commit aa8b076

Browse files
sinkingsoulzhanglc0618
authored andcommitted
feat: 保存为http任务的服务任务,默认打开http任务选项和面板
1 parent be35a27 commit aa8b076

File tree

1 file changed

+7
-1
lines changed
  • src/components/bpmnProcessDesigner/package/penal/task/task-components

1 file changed

+7
-1
lines changed

src/components/bpmnProcessDesigner/package/penal/task/task-components/ServiceTask.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ const resetHttpForm = () => {
216216
217217
const resetServiceTaskForm = () => {
218218
const businessObject = bpmnElement.value?.businessObject
219-
const nextForm: Record<string, any> = { ...DEFAULT_TASK_FORM }
219+
const nextForm = { ...DEFAULT_TASK_FORM }
220220
221221
if (businessObject) {
222222
if (businessObject.class) {
@@ -233,6 +233,12 @@ const resetServiceTaskForm = () => {
233233
}
234234
if (businessObject.$attrs?.[flowableTypeKey] === 'http') {
235235
nextForm.executeType = 'http'
236+
} else {
237+
// 兜底:如缺少 flowable:type=http,但扩展里已有 HTTP 的字段,也认为是 HTTP
238+
const { httpFields } = collectHttpExtensionInfo()
239+
if (httpFields.size > 0) {
240+
nextForm.executeType = 'http'
241+
}
236242
}
237243
}
238244

0 commit comments

Comments
 (0)