优化展示
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<el-button type="primary" @click="handleSearch">搜索</el-button>
|
||||
</div>
|
||||
|
||||
<!-- 猪年龄阶段列表 -->
|
||||
<!-- 年龄阶段列表 -->
|
||||
<el-table :data="tableData" style="width: 100%" v-loading="loading" row-key="id"
|
||||
:expand-row-keys="expandRowKeys" @expand-change="handleExpandChange">
|
||||
<el-table-column type="expand">
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
<el-icon>
|
||||
<Tickets/>
|
||||
</el-icon>
|
||||
<template #title>猪年龄阶段管理</template>
|
||||
<template #title>年龄阶段管理</template>
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/feed/pig-breeds">
|
||||
<el-icon>
|
||||
|
||||
@@ -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: '用药记录'}},
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<template #header>
|
||||
<div class="card-header">
|
||||
<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-icon :size="20"><Refresh /></el-icon>
|
||||
</el-button>
|
||||
@@ -15,7 +15,7 @@
|
||||
<pig-age-stage-table ref="pigAgeStageTableRef" @edit="handleEdit"></pig-age-stage-table>
|
||||
</el-card>
|
||||
|
||||
<!-- 添加/编辑猪年龄阶段弹窗 -->
|
||||
<!-- 添加/编辑年龄阶段弹窗 -->
|
||||
<el-dialog
|
||||
v-model="showDialog"
|
||||
:title="formTitle"
|
||||
|
||||
Reference in New Issue
Block a user