修改枚举
This commit is contained in:
@@ -189,6 +189,7 @@ import {
|
||||
House, Monitor, Calendar, ArrowDown, Menu, Fold, Expand, Setting, Tickets, DataAnalysis, Document, Food,
|
||||
FirstAidKit, Clock, Files, ShoppingCart, SoldOut, Warning, Switch, List, Shop, Coin, DataLine, Finished, User, ScaleToOriginal, OfficeBuilding, Management, Bell
|
||||
} from '@element-plus/icons-vue';
|
||||
import { routeTitles } from '../routeTitles.js';
|
||||
|
||||
export default {
|
||||
name: 'MainLayout',
|
||||
@@ -227,33 +228,7 @@ export default {
|
||||
});
|
||||
|
||||
const currentPageTitle = computed(() => {
|
||||
const routeMap = {
|
||||
'/': '系统首页',
|
||||
'/devices': '设备管理',
|
||||
'/device-templates': '设备模板管理',
|
||||
'/pms/farm-management': '栏舍管理',
|
||||
'/pms/batch-management': '猪群管理',
|
||||
'/plans': '计划管理',
|
||||
'/monitor/device-command-logs': '设备命令日志',
|
||||
'/monitor/feed-usage-records': '饲料使用记录',
|
||||
'/monitor/medication-logs': '用药记录',
|
||||
'/monitor/notifications': '通知记录',
|
||||
'/monitor/pending-collections': '待采集请求',
|
||||
'/monitor/pig-batch-logs': '猪批次日志',
|
||||
'/monitor/pig-purchases': '猪只采购记录',
|
||||
'/monitor/pig-sales': '猪只售卖记录',
|
||||
'/monitor/pig-sick-logs': '病猪日志',
|
||||
'/monitor/pig-transfer-logs': '猪只迁移日志',
|
||||
'/monitor/plan-execution-logs': '计划执行日志',
|
||||
'/monitor/raw-material-purchases': '原料采购记录',
|
||||
'/monitor/raw-material-stock-logs': '原料库存日志',
|
||||
'/monitor/sensor-data': '传感器数据',
|
||||
'/monitor/task-execution-logs': '任务执行日志',
|
||||
'/monitor/user-action-logs': '用户操作日志',
|
||||
'/monitor/weighing-batches': '批次称重记录',
|
||||
'/monitor/weighing-records': '单次称重记录',
|
||||
};
|
||||
return routeMap[route.path] || '猪场管理系统';
|
||||
return routeTitles[route.path] || '猪场管理系统';
|
||||
});
|
||||
|
||||
const logout = () => {
|
||||
@@ -359,4 +334,4 @@ export default {
|
||||
font-size: 14px;
|
||||
border-top: 1px solid #eee;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
Reference in New Issue
Block a user