diff --git a/src/components/bpmnProcessDesigner/package/penal/custom-config/components/UserTaskCustomConfig.vue b/src/components/bpmnProcessDesigner/package/penal/custom-config/components/UserTaskCustomConfig.vue index 3c748ff6..ac495ff8 100644 --- a/src/components/bpmnProcessDesigner/package/penal/custom-config/components/UserTaskCustomConfig.vue +++ b/src/components/bpmnProcessDesigner/package/penal/custom-config/components/UserTaskCustomConfig.vue @@ -117,7 +117,7 @@ />
@@ -241,7 +241,13 @@ const assignEmptyUserIds = ref() // 操作按钮 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([]) @@ -495,16 +501,10 @@ function useButtonsSetting() { const changeBtnDisplayName = (index: number) => { btnDisplayNameEdit.value[index] = true } - const btnDisplayNameBlurEvent = (index: number) => { - btnDisplayNameEdit.value[index] = false - const buttonItem = buttonsSetting.value![index] - buttonItem.displayName = buttonItem.displayName || OPERATION_BUTTON_NAME.get(buttonItem.id)! - } return { buttonsSetting, btnDisplayNameEdit, - changeBtnDisplayName, - btnDisplayNameBlurEvent + changeBtnDisplayName } }