Merge branch 'dev' of https://git.yfgame.vip/r/hangtag into dev

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
This commit is contained in:
yf 2024-12-30 14:23:00 +08:00
commit 7695075607
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'
}
]