重构(前端): 产量报表菜单改为el-sub-menu,包含机床产量/员工产量/程序产量三个子项

main
haoliang 1 month ago
parent 71d4947712
commit 5f9176ece0

@ -55,10 +55,21 @@
<el-icon><User /></el-icon>
<template #title>员工管理</template>
</el-menu-item>
<el-menu-item :index="menuPath('/production')">
<el-icon><DataAnalysis /></el-icon>
<template #title>产量报表</template>
</el-menu-item>
<el-sub-menu :index="menuPath('/production')" popper-class="sidebar-submenu-popper">
<template #title>
<el-icon><DataAnalysis /></el-icon>
<span>产量报表</span>
</template>
<el-menu-item :index="menuPath('/production/machine')">
<template #title>机床产量</template>
</el-menu-item>
<el-menu-item :index="menuPath('/production/worker')">
<template #title>员工产量</template>
</el-menu-item>
<el-menu-item :index="menuPath('/production/program')">
<template #title>程序产量</template>
</el-menu-item>
</el-sub-menu>
<el-menu-item :index="menuPath('/alert')">
<el-icon><Bell /></el-icon>
<template #title>告警中心</template>
@ -233,3 +244,21 @@ function handleCommand(command: string) {
}
}
</style>
<!-- 折叠态弹出子菜单样式 scoped popper teleport body -->
<style lang="scss">
.sidebar-submenu-popper {
.el-menu {
background-color: #304156 !important;
}
.el-menu-item {
color: #bfcbd9;
&:hover {
background-color: #263445 !important;
}
&.is-active {
color: #409EFF;
}
}
}
</style>

Loading…
Cancel
Save