feat: [bpm][antd] bpmn 设计器问题修复

pull/289/head
jason 2025-12-01 12:52:18 +08:00
parent 867ebf2967
commit 0731999e7d
1 changed files with 6 additions and 5 deletions

View File

@ -74,7 +74,6 @@ const assignEmptyUserIdsEl = ref<any>();
const assignEmptyUserIds = ref<any>();
//
// TODO @puhui999label
const buttonsSettingEl = ref<any>();
const { btnDisplayNameEdit, changeBtnDisplayName } = useButtonsSetting();
const btnDisplayNameBlurEvent = (index: number) => {
@ -179,7 +178,7 @@ const resetCustomConfigList = () => {
});
//
buttonsSettingEl.value = elExtensionElements.value.values?.find(
buttonsSettingEl.value = elExtensionElements.value.values?.filter(
(ex: any) => ex.$type === `${prefix}:ButtonsSetting`,
);
if (buttonsSettingEl.value.length === 0) {
@ -196,7 +195,7 @@ const resetCustomConfigList = () => {
//
if (formType.value === BpmModelFormType.NORMAL) {
const fieldsPermissionList = elExtensionElements.value.values?.find(
const fieldsPermissionList = elExtensionElements.value.values?.filter(
(ex: any) => ex.$type === `${prefix}:FieldsPermission`,
);
fieldsPermissionEl.value = [];
@ -373,7 +372,6 @@ function useButtonsSetting() {
}
/** 批量更新权限 */
// TODO @lesan idea fix
const updatePermission = (type: string) => {
fieldsPermissionEl.value.forEach((field: any) => {
if (type === 'READ') {
@ -530,7 +528,10 @@ onMounted(async () => {
</Button>
</div>
<div class="button-setting-item-label">
<Switch v-model:checked="item.enable" @change="updateElementExtensions" />
<Switch
v-model:checked="item.enable"
@change="updateElementExtensions"
/>
</div>
</div>
</div>