增加原料管理界面
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
:collapse="isCollapse"
|
||||
:collapse-transition="false"
|
||||
router
|
||||
:default-openeds="['/device-management', '/monitor', '/pms', '/alarm']"
|
||||
:default-openeds="['/device-management', '/monitor', '/pms', '/alarm', '/feed']"
|
||||
>
|
||||
<el-menu-item index="/">
|
||||
<el-icon>
|
||||
@@ -70,6 +70,22 @@
|
||||
</el-menu-item>
|
||||
</el-sub-menu>
|
||||
|
||||
<!-- 饲料管理二级菜单 -->
|
||||
<el-sub-menu index="/feed">
|
||||
<template #title>
|
||||
<el-icon>
|
||||
<TakeawayBox />
|
||||
</el-icon>
|
||||
<span>饲料管理</span>
|
||||
</template>
|
||||
<el-menu-item index="/feed/raw-materials">
|
||||
<el-icon>
|
||||
<Tickets/>
|
||||
</el-icon>
|
||||
<template #title>原料管理</template>
|
||||
</el-menu-item>
|
||||
</el-sub-menu>
|
||||
|
||||
<el-menu-item index="/plans">
|
||||
<el-icon>
|
||||
<Calendar/>
|
||||
@@ -280,7 +296,8 @@ import {
|
||||
ScaleToOriginal,
|
||||
OfficeBuilding,
|
||||
Management,
|
||||
Bell
|
||||
Bell,
|
||||
TakeawayBox
|
||||
} from '@element-plus/icons-vue';
|
||||
import { getActiveAlarms } from '../api/alarm'; // 导入告警API
|
||||
|
||||
@@ -312,7 +329,8 @@ export default {
|
||||
ScaleToOriginal,
|
||||
OfficeBuilding,
|
||||
Management,
|
||||
Bell
|
||||
Bell,
|
||||
TakeawayBox
|
||||
},
|
||||
setup() {
|
||||
const route = useRoute();
|
||||
@@ -396,7 +414,7 @@ export default {
|
||||
|
||||
const activeMenu = computed(() => {
|
||||
const path = route.path;
|
||||
if (path.startsWith('/monitor') || path.startsWith('/pms') || path.startsWith('/devices') || path.startsWith('/device-templates') || path.startsWith('/alarms')) {
|
||||
if (path.startsWith('/monitor') || path.startsWith('/pms') || path.startsWith('/devices') || path.startsWith('/device-templates') || path.startsWith('/alarms') || path.startsWith('/feed')) {
|
||||
return path;
|
||||
}
|
||||
return route.path;
|
||||
|
||||
Reference in New Issue
Block a user