Commit 9aa7e4f9 authored by 李志鸣's avatar 李志鸣

opt(权限地址): 页面权限地址优化

parent e5d27aac
......@@ -16,7 +16,7 @@ module.exports = {
// target: 'http://10.100.172.150:9108', // 设置你调用的接口域名和端口号 别忘了加http
// target: 'http://192.168.43.244:8888', // 东伟服务器地址
// target: 'http://192.168.43.153:8080', // 训浩服务器
target: 'http://10.100.172.216:8082', // 本地服务器
target: 'http://10.100.172.23:8082', // 本地服务器
changeOrigin: true,
pathRewrite: {
'^/host': ''//这里理解成用‘/host’代替target里面的地址,后面组件中我们掉接口时直接用api代替 比如我要调用'http://40.00.100.100:3002/user/add',直接写‘/api/user/add’即可
......
......@@ -184,6 +184,10 @@
"data-post": {
"url": "/api/equipment/realTime/data",
"method": "post"
},
"stationPassInfo-get": {
"url": "/api/equipment/stationPassInfo",
"method": "get"
}
},
"run-record-controller": {
......@@ -207,6 +211,10 @@
}
},
"led-controller": {
"currentTime-get": {
"url": "/api/led/currentTime",
"method": "get"
},
"VOC-get": {
"url": "/api/led/info/VOC",
"method": "get"
......
......@@ -18,13 +18,13 @@ export default {
path: 'deviceBasic',
component: () => import('@/views/Basic/DeviceBasic/list'),
name: 'DeviceBasic',
meta: {title: 'DeviceBasic', icon: 'document', noCache: false, mark: '/Basic/DeviceBasic/list'}
meta: {title: 'DeviceBasic', icon: 'document', noCache: false, mark: '/basic/deviceBasic/list'}
},
{
path: 'laneBasic',
component: () => import('@/views/Basic/LaneBasic/list'),
name: 'LaneBasic',
meta: {title: 'LaneBasic', icon: 'document', noCache: false, mark: '/Basic/LaneBasic/list'}
meta: {title: 'LaneBasic', icon: 'document', noCache: false, mark: '/basic/laneBasic/list'}
}
]
}
......@@ -10,7 +10,7 @@ export default {
path: 'index',
component: () => import('@/views/CenterControl/index'),
name: 'CenterControlIndex',
meta: { title: 'CenterControlIndex', icon: 'template', mark: '/CenterControl/index' }
meta: { title: 'CenterControlIndex', icon: 'template', mark: '/centerControl/index' }
}
]
}
......@@ -12,13 +12,13 @@ export default {
path: 'deviceRunningTime',
component: () => import('@/views/DeviceRunning/DeviceRunningTime/list'),
name: 'DeviceRunningTime',
meta: { title: 'DeviceRunningTime', icon: 'repairApplication', noCache: false, mark: '/DeviceRunning/DeviceRunningTime/list' }
meta: { title: 'DeviceRunningTime', icon: 'repairApplication', noCache: false, mark: '/deviceRunning/deviceRunningTime/list' }
},
{
path: 'deviceFaultRecord',
component: () => import('@/views/DeviceRunning/DeviceFaultRecord/list'),
name: 'DeviceFaultRecord',
meta: { title: 'DeviceFaultRecord', icon: 'repairApplication', noCache: false, mark: '/DeviceRunning/DeviceFaultRecord/list' }
meta: { title: 'DeviceFaultRecord', icon: 'repairApplication', noCache: false, mark: '/deviceRunning/deviceFaultRecord/list' }
}
]
}
......@@ -11,7 +11,7 @@ export default {
path: 'index',
component: () => import('@/views/DryingRoomChart/list'),
name: 'DryingRoomChartIndex',
meta: { title: 'DryingRoomChartIndex', icon: 'reportview', noCache: true }
meta: { title: 'DryingRoomChartIndex', icon: 'reportview', noCache: false, mark: '/dryingRoomChart/index' }
}
]
}
......@@ -9,19 +9,19 @@ export default {
path: 'pickling',
component: () => import('@/views/Laboratory/Pickling/list'),
name: 'Pickling',
meta: { title: 'Pickling', icon: 'template', noCache: false, mark: '/Laboratory/Pickling/list' }
meta: { title: 'Pickling', icon: 'template', noCache: false, mark: '/laboratory/pickling/list' }
},
{
path: 'electrophoresisTank',
component: () => import('@/views/Laboratory/ElectrophoresisTank/list'),
name: 'ElectrophoresisTank',
meta: { title: 'ElectrophoresisTank', icon: 'template', noCache: false, mark: '/Laboratory/ElectrophoresisTank/list' }
meta: { title: 'ElectrophoresisTank', icon: 'template', noCache: false, mark: '/laboratory/electrophoresisTank/list' }
},
{
path: 'pretreatment',
component: () => import('@/views/Laboratory/Pretreatment/list'),
name: 'Pretreatment',
meta: { title: 'Pretreatment', icon: 'template', noCache: false, mark: '/Laboratory/Pretreatment/list' }
meta: { title: 'Pretreatment', icon: 'template', noCache: false, mark: '/laboratory/pretreatment/list' }
}
]
}
......@@ -11,7 +11,7 @@ export default {
path: 'monitorIndex',
component: () => import('@/views/Monitor/index'),
name: 'MonitorIndex',
meta: { title: 'MonitorIndex', icon: 'kanban', mark: '/Monitor/index' }
meta: { title: 'MonitorIndex', icon: 'kanban', mark: '/monitor/index' }
},
{
path: 'monitorPutty',
......
......@@ -8,7 +8,7 @@ export default {
path: 'index',
component: () => import('@/views/ProductionPlan/index'),
name: 'ProductionPlanIndex',
meta: { title: 'ProductionPlanIndex', icon: 'edit', noCache: true }
meta: { title: 'ProductionPlanIndex', icon: 'edit', noCache: false, mark: '/productionPlan/index' }
}
]
}
......@@ -12,49 +12,49 @@ export default {
path: 'parts',
component: () => import('@/views/Workshop/Parts/list'),
name: 'Parts',
meta: { title: 'Parts', icon: 'wareHouse', noCache: false, mark: '/Workshop/Parts/list' }
meta: { title: 'Parts', icon: 'wareHouse', noCache: false, mark: '/workshop/parts/list' }
},
{
path: 'welding',
component: () => import('@/views/Workshop/Welding/list'),
name: 'Welding',
meta: { title: 'Welding', icon: 'wareHouse', noCache: false, mark: '/Workshop/Welding/list' }
meta: { title: 'Welding', icon: 'wareHouse', noCache: false, mark: '/workshop/welding/list' }
},
{
path: 'painting',
component: () => import('@/views/Workshop/Painting/list'),
name: 'Painting',
meta: { title: 'Painting', icon: 'wareHouse', noCache: false, mark: '/Workshop/Painting/list' }
meta: { title: 'Painting', icon: 'wareHouse', noCache: false, mark: '/workshop/painting/list' }
},
{
path: 'chassis',
component: () => import('@/views/Workshop/Chassis/list'),
name: 'Chassis',
meta: { title: 'Chassis', icon: 'wareHouse', noCache: false, mark: '/Workshop/Chassis/list' }
meta: { title: 'Chassis', icon: 'wareHouse', noCache: false, mark: '/workshop/chassis/list' }
},
{
path: 'final',
component: () => import('@/views/Workshop/Final/list'),
name: 'Final',
meta: { title: 'Final', icon: 'wareHouse', noCache: false, mark: '/Workshop/Final/list' }
meta: { title: 'Final', icon: 'wareHouse', noCache: false, mark: '/workshop/final/list' }
},
{
path: 'trial',
component: () => import('@/views/Workshop/Trial/list'),
name: 'Trial',
meta: { title: 'Trial', icon: 'wareHouse', noCache: false, mark: '/Workshop/Trial/list' }
meta: { title: 'Trial', icon: 'wareHouse', noCache: false, mark: '/workshop/trial/list' }
},
{
path: 'quality',
component: () => import('@/views/WorkShop/Quality/list'),
name: 'Quality',
meta: { title: 'Quality', icon: 'wareHouse', noCache: false, mark: '/Workshop/Quality/list' }
meta: { title: 'Quality', icon: 'wareHouse', noCache: false, mark: '/workshop/quality/list' }
},
{
path: 'other',
component: () => import('@/views/WorkShop/Other/list'),
name: 'Other',
meta: { title: 'Other', icon: 'wareHouse', noCache: false, mark: '/Workshop/Other/list' }
meta: { title: 'Other', icon: 'wareHouse', noCache: false, mark: '/workshop/other/list' }
}
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment