基本完成,修复细节

This commit is contained in:
xuqiuyun
2025-10-29 17:33:32 +08:00
parent 6c86963418
commit d1d0b62184
37 changed files with 5133 additions and 236 deletions

View File

@@ -26,7 +26,7 @@ export const constantRoutes: Array<RouteRecordRaw> = [
},
children: [
{
path: '/entry/details',
path: 'details', // ✅ 修复:使用相对路径
name: 'details',
meta: {
title: '详情',
@@ -35,6 +35,16 @@ export const constantRoutes: Array<RouteRecordRaw> = [
},
component: () => import('~/views/entry/details.vue'),
},
{
path: 'devices', // ✅ 修复:使用相对路径
name: 'devices',
meta: {
title: '设备管理',
keepAlive: true,
requireAuth: true,
},
component: () => import('~/views/entry/devices.vue'),
},
],
},
// 系统管理路由
@@ -48,7 +58,7 @@ export const constantRoutes: Array<RouteRecordRaw> = [
},
children: [
{
path: '/system/post',
path: 'post', // ✅ 修复:使用相对路径
name: 'Post',
meta: {
title: '岗位管理',
@@ -58,7 +68,7 @@ export const constantRoutes: Array<RouteRecordRaw> = [
component: () => import('~/views/system/post.vue'),
},
{
path: '/system/staff',
path: 'staff', // ✅ 修复:使用相对路径
name: 'Staff',
meta: {
title: '员工管理',
@@ -68,7 +78,7 @@ export const constantRoutes: Array<RouteRecordRaw> = [
component: () => import('~/views/system/staff.vue'),
},
{
path: '/system/tenant',
path: 'tenant', // ✅ 修复:使用相对路径
name: 'Tenant',
meta: {
title: '租户管理',
@@ -90,7 +100,7 @@ export const constantRoutes: Array<RouteRecordRaw> = [
},
children: [
{
path: '/permission/menu',
path: 'menu', // ✅ 修复:使用相对路径
name: 'MenuPermission',
meta: {
title: '菜单权限管理',
@@ -100,7 +110,7 @@ export const constantRoutes: Array<RouteRecordRaw> = [
component: () => import('~/views/permission/menuPermission.vue'),
},
{
path: '/permission/operation',
path: 'operation', // ✅ 修复:使用相对路径
name: 'OperationPermission',
meta: {
title: '操作权限管理',
@@ -122,7 +132,7 @@ export const constantRoutes: Array<RouteRecordRaw> = [
},
children: [
{
path: '/hardware/collar',
path: 'collar', // ✅ 修复:使用相对路径
name: 'Collar',
meta: {
title: '智能项圈',
@@ -132,7 +142,7 @@ export const constantRoutes: Array<RouteRecordRaw> = [
component: () => import('~/views/hardware/collar.vue'),
},
{
path: '/hardware/eartag',
path: 'eartag', // ✅ 修复:使用相对路径
name: 'Eartag',
meta: {
title: '智能耳标',
@@ -142,7 +152,7 @@ export const constantRoutes: Array<RouteRecordRaw> = [
component: () => import('~/views/hardware/eartag.vue'),
},
{
path: '/hardware/host',
path: 'host', // ✅ 修复:使用相对路径
name: 'Host',
meta: {
title: '智能主机',
@@ -164,7 +174,7 @@ export const constantRoutes: Array<RouteRecordRaw> = [
},
children: [
{
path: '/userManage/user',
path: 'user', // ✅ 修复:使用相对路径
name: 'UserManage',
meta: {
title: '用户管理',
@@ -174,7 +184,7 @@ export const constantRoutes: Array<RouteRecordRaw> = [
component: () => import('~/views/userManage/user.vue'),
},
{
path: '/userManage/driver',
path: 'driver', // ✅ 修复:使用相对路径
name: 'DriverManage',
meta: {
title: '司机管理',
@@ -184,7 +194,7 @@ export const constantRoutes: Array<RouteRecordRaw> = [
component: () => import('~/views/userManage/driver.vue'),
},
{
path: '/userManage/vehicle',
path: 'vehicle', // ✅ 修复:使用相对路径
name: 'VehicleManage',
meta: {
title: '车辆管理',
@@ -206,7 +216,7 @@ export const constantRoutes: Array<RouteRecordRaw> = [
},
children: [
{
path: '/earlywarning/earlywarninglist',
path: 'earlywarninglist', // ✅ 修复:使用相对路径
name: 'EarlyWarningList',
meta: {
title: '早期预警列表',
@@ -228,7 +238,7 @@ export const constantRoutes: Array<RouteRecordRaw> = [
},
children: [
{
path: '/shipping/loadingOrder',
path: 'loadingOrder', // ✅ 修复:使用相对路径
name: 'LoadingOrder',
meta: {
title: '装车订单',
@@ -240,7 +250,7 @@ export const constantRoutes: Array<RouteRecordRaw> = [
{
path: '/shipping/shippinglist',
path: 'shippinglist', // ✅ 修复:使用相对路径
name: 'ShippingList',
meta: {
title: '运送清单',