From 5d31881f48d0f0a918a6aa275d0fed44ff249f82 Mon Sep 17 00:00:00 2001 From: Lesan <1960681385@qq.com> Date: Wed, 11 Dec 2024 13:56:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E7=94=A8=E6=B4=BB=E5=8A=A8(?= =?UTF-8?q?=E5=AD=90=E4=BB=BB=E5=8A=A1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../designer/plugins/palette/CustomPalette.js | 6 ++++++ .../package/designer/plugins/translate/zh.js | 1 + .../bpmnProcessDesigner/package/penal/task/data.ts | 5 +++++ .../penal/task/task-components/CallActivity.vue | 12 ++++++++++++ 4 files changed, 24 insertions(+) create mode 100644 src/components/bpmnProcessDesigner/package/penal/task/task-components/CallActivity.vue diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/palette/CustomPalette.js b/src/components/bpmnProcessDesigner/package/designer/plugins/palette/CustomPalette.js index c1f40c1b..788e4d16 100644 --- a/src/components/bpmnProcessDesigner/package/designer/plugins/palette/CustomPalette.js +++ b/src/components/bpmnProcessDesigner/package/designer/plugins/palette/CustomPalette.js @@ -165,6 +165,12 @@ F.prototype.getPaletteEntries = function () { 'bpmn-icon-user-task', translate('Create User Task') ), + 'create.call-activity': createAction( + 'bpmn:CallActivity', + 'activity', + 'bpmn-icon-call-activity', + translate('Create Call Activity') + ), 'create.service-task': createAction( 'bpmn:ServiceTask', 'activity', diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/translate/zh.js b/src/components/bpmnProcessDesigner/package/designer/plugins/translate/zh.js index 7e5aa8c6..cb920413 100644 --- a/src/components/bpmnProcessDesigner/package/designer/plugins/translate/zh.js +++ b/src/components/bpmnProcessDesigner/package/designer/plugins/translate/zh.js @@ -56,6 +56,7 @@ export default { 'Create EndEvent': '创建结束事件', 'Create Task': '创建任务', 'Create User Task': '创建用户任务', + 'Create Call Activity': '创建调用活动', 'Create Service Task': '创建服务任务', 'Create Gateway': '创建网关', 'Create DataObjectReference': '创建数据对象', diff --git a/src/components/bpmnProcessDesigner/package/penal/task/data.ts b/src/components/bpmnProcessDesigner/package/penal/task/data.ts index eda7684f..805c9ac5 100644 --- a/src/components/bpmnProcessDesigner/package/penal/task/data.ts +++ b/src/components/bpmnProcessDesigner/package/penal/task/data.ts @@ -2,6 +2,7 @@ import UserTask from './task-components/UserTask.vue' import ServiceTask from './task-components/ServiceTask.vue' import ScriptTask from './task-components/ScriptTask.vue' import ReceiveTask from './task-components/ReceiveTask.vue' +import CallActivity from './task-components/CallActivity.vue' export const installedComponent = { UserTask: { @@ -19,6 +20,10 @@ export const installedComponent = { ReceiveTask: { name: '接收任务', component: ReceiveTask + }, + CallActivity: { + name: '调用活动', + component: CallActivity } } diff --git a/src/components/bpmnProcessDesigner/package/penal/task/task-components/CallActivity.vue b/src/components/bpmnProcessDesigner/package/penal/task/task-components/CallActivity.vue new file mode 100644 index 00000000..8afba3a0 --- /dev/null +++ b/src/components/bpmnProcessDesigner/package/penal/task/task-components/CallActivity.vue @@ -0,0 +1,12 @@ + + + + +