diff --git a/src/components/feed/PigAgeStageTable.vue b/src/components/feed/PigAgeStageTable.vue index 04b66b10..709e6d75 100644 --- a/src/components/feed/PigAgeStageTable.vue +++ b/src/components/feed/PigAgeStageTable.vue @@ -12,7 +12,7 @@ 搜索 - + @@ -95,8 +95,8 @@ export default { pagination.value.total = response.data.pagination.total; } } catch (error) { - console.error('获取猪年龄阶段列表失败:', error); - ElMessage.error('获取猪年龄阶段列表失败'); + console.error('获取年龄阶段列表失败:', error); + ElMessage.error('获取年龄阶段列表失败'); } finally { loading.value = false; } diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index dbf636f7..b3072225 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -94,7 +94,7 @@ - + diff --git a/src/router/index.js b/src/router/index.js index 2043fa00..1d0d2f32 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -40,7 +40,7 @@ const routes = [ {path: '/pms/batch-management', name: 'PigBatchManagement', component: PigBatchManagementView, meta: { requiresAuth: true, title: '猪群管理' }}, {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-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: '用药记录'}}, diff --git a/src/views/feed/PigAgeStageList.vue b/src/views/feed/PigAgeStageList.vue index 4609e25f..8d3cc7ed 100644 --- a/src/views/feed/PigAgeStageList.vue +++ b/src/views/feed/PigAgeStageList.vue @@ -4,7 +4,7 @@