@@ -165,12 +146,7 @@
size="500"
>
-
+
@@ -195,9 +171,7 @@
如果只需勾选菜单权限,不需要勾选子菜单或者按钮权限,请关闭父子联动
-
+
@@ -220,9 +194,7 @@
@@ -236,11 +208,7 @@ defineOptions({
inheritAttrs: false,
});
-import RoleAPI, {
- RolePageVO,
- RoleForm,
- RolePageQuery,
-} from "@/api/system/role";
+import RoleAPI, { RolePageVO, RoleForm, RolePageQuery } from "@/api/system/role";
import MenuAPI from "@/api/system/menu";
const queryFormRef = ref(ElForm);
@@ -414,9 +382,7 @@ async function handleOpenAssignPermDialog(row: RolePageVO) {
RoleAPI.getRoleMenuIds(roleId)
.then((data) => {
const checkedMenuIds = data;
- checkedMenuIds.forEach((menuId) =>
- permTreeRef.value!.setChecked(menuId, true, false)
- );
+ checkedMenuIds.forEach((menuId) => permTreeRef.value!.setChecked(menuId, true, false));
})
.finally(() => {
loading.value = false;