From 13040dce8344bd4b6ee189d3d07581e345a3a30a Mon Sep 17 00:00:00 2001 From: huang <1724659546@qq.com> Date: Fri, 21 Nov 2025 18:45:38 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8C=AA=E5=93=81=E7=A7=8D=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/feed/PigBreedForm.vue | 131 +++++++++++++++++ src/components/feed/PigBreedTable.vue | 200 ++++++++++++++++++++++++++ src/layouts/MainLayout.vue | 8 +- src/router/index.js | 2 + src/views/feed/PigBreedList.vue | 184 ++++++++++++++++++++++++ 5 files changed, 524 insertions(+), 1 deletion(-) create mode 100644 src/components/feed/PigBreedForm.vue create mode 100644 src/components/feed/PigBreedTable.vue create mode 100644 src/views/feed/PigBreedList.vue 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 @@ + + + + +