feat: [bpm][antd] bpmn 设计器问题修复
This commit is contained in:
@@ -74,7 +74,6 @@ const assignEmptyUserIdsEl = ref<any>();
|
|||||||
const assignEmptyUserIds = ref<any>();
|
const assignEmptyUserIds = ref<any>();
|
||||||
|
|
||||||
// 操作按钮
|
// 操作按钮
|
||||||
// TODO @puhui999:这块迁移有点问题,按钮不能操作;另外,label 也没展示。
|
|
||||||
const buttonsSettingEl = ref<any>();
|
const buttonsSettingEl = ref<any>();
|
||||||
const { btnDisplayNameEdit, changeBtnDisplayName } = useButtonsSetting();
|
const { btnDisplayNameEdit, changeBtnDisplayName } = useButtonsSetting();
|
||||||
const btnDisplayNameBlurEvent = (index: number) => {
|
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`,
|
(ex: any) => ex.$type === `${prefix}:ButtonsSetting`,
|
||||||
);
|
);
|
||||||
if (buttonsSettingEl.value.length === 0) {
|
if (buttonsSettingEl.value.length === 0) {
|
||||||
@@ -196,7 +195,7 @@ const resetCustomConfigList = () => {
|
|||||||
|
|
||||||
// 字段权限
|
// 字段权限
|
||||||
if (formType.value === BpmModelFormType.NORMAL) {
|
if (formType.value === BpmModelFormType.NORMAL) {
|
||||||
const fieldsPermissionList = elExtensionElements.value.values?.find(
|
const fieldsPermissionList = elExtensionElements.value.values?.filter(
|
||||||
(ex: any) => ex.$type === `${prefix}:FieldsPermission`,
|
(ex: any) => ex.$type === `${prefix}:FieldsPermission`,
|
||||||
);
|
);
|
||||||
fieldsPermissionEl.value = [];
|
fieldsPermissionEl.value = [];
|
||||||
@@ -373,7 +372,6 @@ function useButtonsSetting() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** 批量更新权限 */
|
/** 批量更新权限 */
|
||||||
// TODO @lesan:这个页面,有一些 idea 红色报错,咱要不要 fix 下!
|
|
||||||
const updatePermission = (type: string) => {
|
const updatePermission = (type: string) => {
|
||||||
fieldsPermissionEl.value.forEach((field: any) => {
|
fieldsPermissionEl.value.forEach((field: any) => {
|
||||||
if (type === 'READ') {
|
if (type === 'READ') {
|
||||||
@@ -530,7 +528,10 @@ onMounted(async () => {
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<div class="button-setting-item-label">
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user