diff --git a/src/components/feed/PigBreedForm.vue b/src/components/feed/PigBreedForm.vue new file mode 100644 index 00000000..3244a8b4 --- /dev/null +++ b/src/components/feed/PigBreedForm.vue @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + 提交 + 取消 + + + + + + + diff --git a/src/components/feed/PigBreedTable.vue b/src/components/feed/PigBreedTable.vue new file mode 100644 index 00000000..2c46d158 --- /dev/null +++ b/src/components/feed/PigBreedTable.vue @@ -0,0 +1,200 @@ + + + + + + 搜索 + + + + + + + + 该品种下的年龄阶段简介 + + + + + + + + + + + + + + + + + + 编辑 + 删除 + + + + + + + + + + + + diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index f06d8b14..1d81713e 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -96,6 +96,12 @@ 猪年龄阶段管理 + + + + + 猪品种管理 + @@ -554,4 +560,4 @@ export default { font-size: 14px; border-top: 1px solid #eee; } - \ No newline at end of file + diff --git a/src/router/index.js b/src/router/index.js index abf747e1..c63bff64 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -26,6 +26,7 @@ import ThresholdAlarmList from '../views/alarm/ThresholdAlarmList.vue'; 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 组件 const routes = [ {path: '/', component: Home, meta: {requiresAuth: true, title: '系统首页'}}, @@ -40,6 +41,7 @@ const routes = [ {path: '/feed/raw-materials', component: RawMaterialList, meta: {requiresAuth: true, title: '原料管理'}}, {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: '/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/PigBreedList.vue b/src/views/feed/PigBreedList.vue new file mode 100644 index 00000000..82a20ab3 --- /dev/null +++ b/src/views/feed/PigBreedList.vue @@ -0,0 +1,184 @@ + + + + + + + 猪品种管理 + + + + + 添加猪品种 + + + + + + + + + + + + + + + +