diff --git a/src/components/feed/RawMaterialTable.vue b/src/components/feed/RawMaterialTable.vue
new file mode 100644
index 00000000..f272b4f8
--- /dev/null
+++ b/src/components/feed/RawMaterialTable.vue
@@ -0,0 +1,188 @@
+
+
+
+
+
+
+
+
营养成分
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue
index 2e3534da..528e5f5f 100644
--- a/src/layouts/MainLayout.vue
+++ b/src/layouts/MainLayout.vue
@@ -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']"
>
@@ -70,6 +70,22 @@
+
+
+
+
+
+
+ 饲料管理
+
+
+
+
+
+ 原料管理
+
+
+
@@ -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;
diff --git a/src/router/index.js b/src/router/index.js
index 322e33cd..ef13815d 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -23,6 +23,7 @@ import WeighingBatchesView from '../views/monitor/WeighingBatchesView.vue';
import WeighingRecordsView from '../views/monitor/WeighingRecordsView.vue';
import AlarmList from '../views/alarm/AlarmList.vue';
import ThresholdAlarmList from '../views/alarm/ThresholdAlarmList.vue';
+import RawMaterialList from '../views/feed/RawMaterialList.vue';
const routes = [
{path: '/', component: Home, meta: {requiresAuth: true, title: '系统首页'}},
@@ -34,6 +35,7 @@ const routes = [
{path: '/login', component: LoginForm},
{path: '/pms/farm-management', name: 'PigFarmManagement', component: PigFarmManagementView, meta: { requiresAuth: true, title: '栏舍管理' }},
{path: '/pms/batch-management', name: 'PigBatchManagement', component: PigBatchManagementView, meta: { requiresAuth: true, title: '猪群管理' }},
+ {path: '/feed/raw-materials', component: RawMaterialList, meta: {requiresAuth: true, title: '原料管理'}},
{path: '/monitor/device-command-logs', component: DeviceCommandLogView, meta: {requiresAuth: true, title: '设备命令日志'}},
{path: '/monitor/medication-logs', component: MedicationLogsView, meta: {requiresAuth: true, title: '用药记录'}},
{path: '/monitor/notifications', component: NotificationLogView, meta: {requiresAuth: true, title: '通知记录'}},
diff --git a/src/views/feed/RawMaterialList.vue b/src/views/feed/RawMaterialList.vue
new file mode 100644
index 00000000..f9f88b0b
--- /dev/null
+++ b/src/views/feed/RawMaterialList.vue
@@ -0,0 +1,102 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file