1. 调整侧边栏菜单的路由标题与图标,交换入口跟踪和物料跟踪的配置 2. 重构Material.vue页面:移除原有计划队列和产线跟踪总图,改为按设备分组的实时参数仪表盘 3. 简化页面脚本逻辑,移除多余的API调用和定时器 4. 统一页面样式类名,调整布局样式
95 lines
2.8 KiB
JavaScript
95 lines
2.8 KiB
JavaScript
import Vue from 'vue'
|
|
import VueRouter from 'vue-router'
|
|
|
|
Vue.use(VueRouter)
|
|
|
|
const routes = [
|
|
{
|
|
path: '/login',
|
|
name: 'Login',
|
|
component: () => import('@/views/Login.vue'),
|
|
meta: { title: '登录' }
|
|
},
|
|
{
|
|
path: '/',
|
|
component: () => import('@/views/Layout.vue'),
|
|
meta: { requiresAuth: true },
|
|
redirect: '/plan',
|
|
children: [
|
|
{
|
|
path: 'material',
|
|
name: 'Material',
|
|
component: () => import('@/views/Material.vue'),
|
|
meta: { title: '实时参数', icon: 'el-icon-s-data', requiresAuth: true }
|
|
},
|
|
{
|
|
path: 'entry-tracking',
|
|
name: 'EntryTracking',
|
|
component: () => import('@/views/EntryTracking.vue'),
|
|
meta: { title: '物料跟踪', icon: 'el-icon-box', requiresAuth: true }
|
|
},
|
|
{
|
|
path: 'production',
|
|
name: 'Production',
|
|
component: () => import('@/views/Production.vue'),
|
|
meta: { title: '实绩管理', icon: 'el-icon-data-analysis', requiresAuth: true }
|
|
},
|
|
{
|
|
path: 'plan',
|
|
name: 'Plan',
|
|
component: () => import('@/views/Plan.vue'),
|
|
meta: { title: '计划管理', icon: 'el-icon-date', requiresAuth: true }
|
|
},
|
|
{
|
|
path: 'downtime',
|
|
name: 'Downtime',
|
|
component: () => import('@/views/Downtime.vue'),
|
|
meta: { title: '停机管理', icon: 'el-icon-warning-outline', requiresAuth: true }
|
|
},
|
|
{
|
|
path: 'process-model',
|
|
name: 'ProcessModel',
|
|
component: () => import('@/views/ProcessModel.vue'),
|
|
meta: { title: '工艺段模型', icon: 'el-icon-cpu', requiresAuth: true }
|
|
},
|
|
{
|
|
path: 'tension-model',
|
|
name: 'TensionModel',
|
|
component: () => import('@/views/TensionModel.vue'),
|
|
meta: { title: '张力模型', icon: 'el-icon-odometer', requiresAuth: true }
|
|
},
|
|
{
|
|
path: 'inspection',
|
|
name: 'Inspection',
|
|
component: () => import('@/views/Inspection.vue'),
|
|
meta: { title: '设备巡检', requiresAuth: true }
|
|
},
|
|
{
|
|
path: 'quality',
|
|
name: 'Quality',
|
|
component: () => import('@/views/Quality.vue'),
|
|
meta: { title: '质量管理', icon: 'el-icon-medal', requiresAuth: true }
|
|
},
|
|
{
|
|
path: 'cost',
|
|
name: 'CostManagement',
|
|
component: () => import('@/views/CostManagement.vue'),
|
|
meta: { title: '成本管理', icon: 'el-icon-coin', requiresAuth: true }
|
|
},
|
|
{
|
|
path: 'logs',
|
|
name: 'LogManagement',
|
|
component: () => import('@/views/LogManagement.vue'),
|
|
meta: { title: '日志管理', icon: 'el-icon-document', requiresAuth: true }
|
|
},
|
|
]
|
|
},
|
|
{ path: '*', redirect: '/' }
|
|
]
|
|
|
|
export default new VueRouter({
|
|
mode: 'history',
|
|
base: process.env.BASE_URL,
|
|
routes
|
|
})
|