fix: assign menu form
This commit is contained in:
@@ -139,7 +139,7 @@ function getNodeClass(node: Recordable<any>) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Modal title="数据权限" class="w-2/5">
|
<Modal title="菜单权限" class="w-2/5">
|
||||||
<Form class="mx-4">
|
<Form class="mx-4">
|
||||||
<template #menuIds="slotProps">
|
<template #menuIds="slotProps">
|
||||||
<Tree
|
<Tree
|
||||||
@@ -152,7 +152,6 @@ function getNodeClass(node: Recordable<any>) {
|
|||||||
v-bind="slotProps"
|
v-bind="slotProps"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
label-field="name"
|
label-field="name"
|
||||||
icon-field="meta.icon"
|
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</Form>
|
</Form>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { Recordable } from '@vben-core/typings';
|
import type { Recordable } from '@vben/types';
|
||||||
|
|
||||||
import type { SystemMenuApi } from '#/api/system/menu';
|
import type { SystemMenuApi } from '#/api/system/menu';
|
||||||
import type { SystemRoleApi } from '#/api/system/role';
|
import type { SystemRoleApi } from '#/api/system/role';
|
||||||
@@ -139,7 +139,7 @@ function getNodeClass(node: Recordable<any>) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Modal title="数据权限" class="w-2/5">
|
<Modal title="菜单权限" class="w-2/5">
|
||||||
<Form class="mx-4">
|
<Form class="mx-4">
|
||||||
<template #menuIds="slotProps">
|
<template #menuIds="slotProps">
|
||||||
<Tree
|
<Tree
|
||||||
@@ -152,7 +152,6 @@ function getNodeClass(node: Recordable<any>) {
|
|||||||
v-bind="slotProps"
|
v-bind="slotProps"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
label-field="name"
|
label-field="name"
|
||||||
icon-field="meta.icon"
|
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</Form>
|
</Form>
|
||||||
|
|||||||
Reference in New Issue
Block a user