修改权限项

This commit is contained in:
Mrking 2024-12-16 18:55:46 +08:00
parent 777e817847
commit 9b75e76f6b
1 changed files with 7 additions and 4 deletions

View File

@ -9,6 +9,7 @@
:key="menu.name"
class="h-20 w-20% flex flex-col cursor-pointer items-center justify-center gap-2"
@click="handleMenuClick(menu.routerName)"
v-hasPermi="[menu.hasPermi]"
>
<div
:class="menu.bgColor"
@ -31,19 +32,21 @@ const router = useRouter() // 路由
/** 菜单列表 */
const menuList = [
{ name: '客户管理', icon: 'ep:user-filled', bgColor: 'bg-red-400', routerName: 'Customer' },
{ name: '客户管理', icon: 'ep:user-filled', bgColor: 'bg-red-400', routerName: 'Customer', hasPermi:'oms:customer:query' },
{
name: '产品管理',
icon: 'fluent-mdl2:product',
bgColor: 'bg-orange-400',
routerName: 'ProductInfo'
routerName: 'ProductInfo',
hasPermi:'oms:product-info:query'
},
{ name: '订单管理', icon: 'ep:list', bgColor: 'bg-yellow-500', routerName: 'SaleOrder' },
{ name: '订单管理', icon: 'ep:list', bgColor: 'bg-yellow-500', routerName: 'SaleOrder', hasPermi:'oms:sale-order:query' },
{
name: '生产制单',
icon: 'fa-solid:project-diagram',
bgColor: 'bg-green-600',
routerName: 'ProduceOrder'
routerName: 'ProduceOrder',
hasPermi:'oms:produce-order:query'
}
]