From 6c9affae762a7775a878dc3b345dafc5ce71d21a Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 29 Nov 2025 18:14:41 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E3=80=90antd=E3=80=91=E3=80=90bpm?= =?UTF-8?q?=E3=80=91bpmn=20=E8=AE=BE=E8=AE=A1=E5=99=A8=EF=BC=9A=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=E8=8A=82=E7=82=B9=E6=93=8D=E4=BD=9C=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E7=9A=84=E6=93=8D=E4=BD=9C=E4=B8=8D=E8=B5=B7=E4=BD=9C?= =?UTF-8?q?=E7=94=A8=EF=BC=8C=E6=9D=A5=E8=87=AA=EF=BC=9Ahttps://gitee.com/?= =?UTF-8?q?yudaocode/yudao-ui-admin-vue3/commit/9f1c4f25784854b685131d0a27?= =?UTF-8?q?d278b9937f79aa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/UserTaskCustomConfig.vue | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/apps/web-antd/src/views/bpm/components/bpmn-process-designer/package/penal/custom-config/components/UserTaskCustomConfig.vue b/apps/web-antd/src/views/bpm/components/bpmn-process-designer/package/penal/custom-config/components/UserTaskCustomConfig.vue index d7730e291..b1c77400b 100644 --- a/apps/web-antd/src/views/bpm/components/bpmn-process-designer/package/penal/custom-config/components/UserTaskCustomConfig.vue +++ b/apps/web-antd/src/views/bpm/components/bpmn-process-designer/package/penal/custom-config/components/UserTaskCustomConfig.vue @@ -74,9 +74,16 @@ const assignEmptyUserIdsEl = ref(); const assignEmptyUserIds = ref(); // 操作按钮 +// TODO @puhui999:这块迁移有点问题,按钮不能操作;另外,label 也没展示。 const buttonsSettingEl = ref(); -const { btnDisplayNameEdit, changeBtnDisplayName, btnDisplayNameBlurEvent } = - useButtonsSetting(); +const { btnDisplayNameEdit, changeBtnDisplayName } = useButtonsSetting(); +const btnDisplayNameBlurEvent = (index: number) => { + btnDisplayNameEdit.value[index] = false; + const buttonItem = buttonsSettingEl.value[index]; + buttonItem.displayName = + buttonItem.displayName || OPERATION_BUTTON_NAME.get(buttonItem.id)!; + updateElementExtensions(); +}; // 字段权限 const fieldsPermissionEl = ref([]); @@ -358,19 +365,10 @@ function useButtonsSetting() { const changeBtnDisplayName = (index: number) => { btnDisplayNameEdit.value[index] = true; }; - const btnDisplayNameBlurEvent = (index: number) => { - btnDisplayNameEdit.value[index] = false; - const buttonItem = buttonsSetting.value?.[index]; - if (buttonItem) { - buttonItem.displayName = - buttonItem.displayName || OPERATION_BUTTON_NAME.get(buttonItem.id)!; - } - }; return { buttonsSetting, btnDisplayNameEdit, changeBtnDisplayName, - btnDisplayNameBlurEvent, }; } @@ -532,7 +530,7 @@ onMounted(async () => {
- +