优化展示

This commit is contained in:
2025-11-22 14:19:42 +08:00
parent c05d0ce2a2
commit f75229fc00
4 changed files with 7 additions and 7 deletions

View File

@@ -12,7 +12,7 @@
<el-button type="primary" @click="handleSearch">搜索</el-button> <el-button type="primary" @click="handleSearch">搜索</el-button>
</div> </div>
<!-- 年龄阶段列表 --> <!-- 年龄阶段列表 -->
<el-table :data="tableData" style="width: 100%" v-loading="loading" row-key="id" <el-table :data="tableData" style="width: 100%" v-loading="loading" row-key="id"
:expand-row-keys="expandRowKeys" @expand-change="handleExpandChange"> :expand-row-keys="expandRowKeys" @expand-change="handleExpandChange">
<el-table-column type="expand"> <el-table-column type="expand">
@@ -95,8 +95,8 @@ export default {
pagination.value.total = response.data.pagination.total; pagination.value.total = response.data.pagination.total;
} }
} catch (error) { } catch (error) {
console.error('获取年龄阶段列表失败:', error); console.error('获取年龄阶段列表失败:', error);
ElMessage.error('获取年龄阶段列表失败'); ElMessage.error('获取年龄阶段列表失败');
} finally { } finally {
loading.value = false; loading.value = false;
} }

View File

@@ -94,7 +94,7 @@
<el-icon> <el-icon>
<Tickets/> <Tickets/>
</el-icon> </el-icon>
<template #title>年龄阶段管理</template> <template #title>年龄阶段管理</template>
</el-menu-item> </el-menu-item>
<el-menu-item index="/feed/pig-breeds"> <el-menu-item index="/feed/pig-breeds">
<el-icon> <el-icon>

View File

@@ -40,7 +40,7 @@ const routes = [
{path: '/pms/batch-management', name: 'PigBatchManagement', component: PigBatchManagementView, 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: '/feed/raw-materials', component: RawMaterialList, meta: {requiresAuth: true, title: '原料管理'}},
{path: '/feed/nutrients', component: NutrientList, 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: '/feed/pig-breeds', component: PigBreedList, meta: {requiresAuth: true, title: '品种管理'}}, // 添加品种管理路由
{path: '/monitor/device-command-logs', component: DeviceCommandLogView, 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/medication-logs', component: MedicationLogsView, meta: {requiresAuth: true, title: '用药记录'}},

View File

@@ -4,7 +4,7 @@
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<div class="title-container"> <div class="title-container">
<h2 class="page-title">年龄阶段管理</h2> <h2 class="page-title">年龄阶段管理</h2>
<el-button type="text" @click="refreshList" class="refresh-btn" title="刷新年龄阶段列表"> <el-button type="text" @click="refreshList" class="refresh-btn" title="刷新年龄阶段列表">
<el-icon :size="20"><Refresh /></el-icon> <el-icon :size="20"><Refresh /></el-icon>
</el-button> </el-button>
@@ -15,7 +15,7 @@
<pig-age-stage-table ref="pigAgeStageTableRef" @edit="handleEdit"></pig-age-stage-table> <pig-age-stage-table ref="pigAgeStageTableRef" @edit="handleEdit"></pig-age-stage-table>
</el-card> </el-card>
<!-- 添加/编辑年龄阶段弹窗 --> <!-- 添加/编辑年龄阶段弹窗 -->
<el-dialog <el-dialog
v-model="showDialog" v-model="showDialog"
:title="formTitle" :title="formTitle"