diff --git a/src/components/feed/RecipeTable.vue b/src/components/feed/RecipeTable.vue new file mode 100644 index 00000000..43ff3085 --- /dev/null +++ b/src/components/feed/RecipeTable.vue @@ -0,0 +1,40 @@ + + + diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index 1b581ad7..1fdbbb09 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -109,6 +109,12 @@ + + + + + + diff --git a/src/router/index.js b/src/router/index.js index 1d0d2f32..d6a76cb2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -27,6 +27,8 @@ import RawMaterialList from '../views/feed/RawMaterialList.vue'; import NutrientList from '../views/feed/NutrientList.vue'; // 修正拼写错误 import PigAgeStageList from '../views/feed/PigAgeStageList.vue'; // 导入 PigAgeStageList 组件 import PigBreedList from '../views/feed/PigBreedList.vue'; // 导入 PigBreedList 组件 +import RecipeList from '../views/feed/RecipeList.vue'; + const routes = [ {path: '/', component: Home, meta: {requiresAuth: true, title: '系统首页'}}, @@ -42,6 +44,8 @@ const routes = [ {path: '/feed/nutrients', component: NutrientList, meta: {requiresAuth: true, title: '营养管理'}}, {path: '/feed/pig-age-stages', component: PigAgeStageList, meta: {requiresAuth: true, title: '年龄阶段管理'}}, // 添加年龄阶段管理路由 {path: '/feed/pig-breeds', component: PigBreedList, meta: {requiresAuth: true, title: '品种管理'}}, // 添加品种管理路由 + {path: '/feed/recipes', component: RecipeList, 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/RecipeList.vue b/src/views/feed/RecipeList.vue new file mode 100644 index 00000000..1d6fe480 --- /dev/null +++ b/src/views/feed/RecipeList.vue @@ -0,0 +1,166 @@ + + + + +