This commit is contained in:
李远 2026-03-20 18:18:36 +08:00
parent 09b2d83c88
commit 514c153745
1 changed files with 72 additions and 12 deletions

View File

@ -9,7 +9,7 @@
<!-- 菜单区域 -->
<el-menu class="menu" :unique-opened="true" :default-active="activeMenu" router>
<template v-for="menu in staticAgentMenuList" :key="menu.id">
<template v-for="menu in staticMenuList" :key="menu.id">
<!-- 无子菜单 -->
<el-menu-item v-if="!menu.children || menu.children.length === 0" :index="menu.path">
<el-icon>
@ -244,21 +244,81 @@ const staticMenuList = ref<ElMenuItem[]>(
label: '风控管理',
path: '/risk', // index="8"
icon: 'WarningFilled' // 对应 <WarningFilled /> 图标
}
]
)
},
const staticAgentMenuList = <ElMenuItem[]>(
[
//
//
{
id: 1,
label: '首页',
path: 'dashboard', // el-menu-item index="dashboard"
icon: 'HomeFilled' // 对应 <HomeFilled /> 图标
id: 9,
label: '资金管理',
path: 'funding', // index="funding"
icon: 'GoodsFilled', // <GoodsFilled />
children: [
///
//
//
//
//
]
},
//
{
id: 10,
label: '交易统计',
path: 'trade', // index="trade"
icon: 'ChartBarFilled', // <ChartBarFilled />
children: [
//
//
//
]
},
//
{
id: 11,
label: '账户管理',
path: 'account', // index="account"
icon: 'UserFilled', // <UserFilled />
children: [
//
//
]
},
//
{
id: 12,
label: '个性化交易',
path: 'customTrade', // index="customTrade"
icon: 'SettingFilled', // <SettingFilled />
children: [
//
//
//
]
},
//
{
id: 13,
label: '代理管理',
path: 'agent', // index="agent"
icon: 'UserFilled', // <UserFilled />
children: [
//
//
//
//
//
]
},
//
{
id: 14,
label: '通知管理',
path: 'notification', // index="notification"
icon: 'NotificationFilled', // <NotificationFilled />
},
]
);
)
</script>
<style scoped lang="scss">