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

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

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