Commit 31c96fba by cwq0219

修改

1 parent 603e2cef
......@@ -28,13 +28,11 @@ export const home = {
pid: '0'
},
component: _import('systemMonitor'),
auth: {
'action': [{
auth: [{
id: '10101',
pid: '101',
label: '导出'
}]
}
}
export const sys = [
// 系统 前端日志
......@@ -171,8 +169,7 @@ export const resources = {
pid: '0'
},
component: _import('subSysManagement'),
auth: {
'operation': [{
auth: [{
id: '10301',
pid: '103',
label: '编辑'
......@@ -180,13 +177,11 @@ export const resources = {
id: '10302',
pid: '103',
label: '删除'
}],
'action': [{
}, {
id: '10303',
pid: '103',
label: '添加子系统'
}]
}
},
'104': {
path: '/trafficManagement',
......@@ -199,8 +194,7 @@ export const resources = {
pid: '0'
},
component: _import('deviceManagement'),
auth: {
'operation': [{
auth: [{
id: '10401',
pid: '104',
label: '编辑'
......@@ -208,8 +202,7 @@ export const resources = {
id: '10402',
pid: '104',
label: '删除'
}],
'action': [{
}, {
id: '10403',
pid: '104',
label: '导入'
......@@ -218,7 +211,6 @@ export const resources = {
pid: '104',
label: '导出'
}]
}
},
'105': {
path: 'materialList',
......@@ -255,8 +247,7 @@ export const resources = {
pid: '106'
},
component: _import('materiaOrderManagement'),
auth: {
'operation': [{
auth: [{
id: '1060101',
pid: '10601',
label: '查看详情'
......@@ -264,13 +255,11 @@ export const resources = {
id: '1060102',
pid: '10601',
label: '删除'
}],
'action': [{
}, {
id: '1060103',
pid: '10601',
label: '订单下载'
}]
}
},
'10602': {
path: '/maintainManagement',
......@@ -283,18 +272,15 @@ export const resources = {
pid: '106'
},
component: _import('maintainManagement'),
auth: {
'operation': [{
auth: [{
id: '1060201',
pid: '10602',
label: '删除'
}],
'action': [{
}, {
id: '1060202',
pid: '10602',
label: '导出订单'
}]
}
},
'107': {
path: '/userManager',
......
......@@ -118,7 +118,7 @@ export default {
// 获取权限资源点
const __source = await dispatch('load')
// 过滤资源点 并动态添加到路由
const { route, btn } = util.permision.packRoutesBtns({...sources,home}, __source)
const { route, btn } = util.permision.packRoutesBtns({...sources,'101':home}, __source)
frameInRoutes[0].children = [home, ...route, ...sys]
router.addRoutes(frameInRoutes)
state.btns = btn
......
......@@ -61,7 +61,7 @@
<el-col :span="12">车辆状态列表</el-col>
<el-col :span="12" style="text-align: right">
<!-- <el-button>导出</el-button> -->
<auth-button label="导出"></auth-button>
<auth-button label="导出" type="Button"></auth-button>
</el-col>
</el-row>
<el-table
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!