update web/src/views/system/role/components/PermissionComNew/index.vue.

修复按钮权限保存失败bug

Signed-off-by: 木子-李 <1537080775@qq.com>
This commit is contained in:
木子-李
2024-06-30 06:36:50 +00:00
committed by Gitee
parent 9c765c67e1
commit 68d31dc515

View File

@@ -275,10 +275,7 @@ const handleDialogConfirm = () => {
errorNotification('请选择');
return;
}
for (const item of menuData.value) {
for (const iterator of item.children) {
if (iterator.id === menuCurrent.value.id) {
for (const btn of iterator.btns) {
for (const btn of menuCurrent.value?.btns || []) {
if (btn.id === menuBtnCurrent.value) {
const findItem = dataPermissionRange.value.find((i) => i.value === dataPermission.value);
btn.data_range = findItem?.value || 0;
@@ -287,9 +284,6 @@ const handleDialogConfirm = () => {
}
}
}
}
}
}
handleDialogClose();
};
const handleDialogClose = () => {