fix:【bpm】bpmn 设计器:工作流节点操作按钮的操作不起作用,对应 https://t.zsxq.com/XtLYq
parent
ce351f6166
commit
9f1c4f2578
|
|
@ -117,7 +117,7 @@
|
||||||
/></el-button>
|
/></el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="button-setting-item-label">
|
<div class="button-setting-item-label">
|
||||||
<el-switch v-model="item.enable" />
|
<el-switch v-model="item.enable" @change="updateElementExtensions" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -241,7 +241,13 @@ const assignEmptyUserIds = ref()
|
||||||
|
|
||||||
// 操作按钮
|
// 操作按钮
|
||||||
const buttonsSettingEl = 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([])
|
const fieldsPermissionEl = ref([])
|
||||||
|
|
@ -495,16 +501,10 @@ function useButtonsSetting() {
|
||||||
const changeBtnDisplayName = (index: number) => {
|
const changeBtnDisplayName = (index: number) => {
|
||||||
btnDisplayNameEdit.value[index] = true
|
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 {
|
return {
|
||||||
buttonsSetting,
|
buttonsSetting,
|
||||||
btnDisplayNameEdit,
|
btnDisplayNameEdit,
|
||||||
changeBtnDisplayName,
|
changeBtnDisplayName
|
||||||
btnDisplayNameBlurEvent
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue