Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
SHR
/
tFIMS
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 31c96fba
authored
Sep 02, 2019
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
603e2cef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
25 deletions
src/router/routes.js
src/store/modules/d2admin/modules/auth.js
src/views/systemMonitor/index.vue
src/router/routes.js
View file @
31c96fb
...
@@ -28,13 +28,11 @@ export const home = {
...
@@ -28,13 +28,11 @@ export const home = {
pid
:
'0'
pid
:
'0'
},
},
component
:
_import
(
'systemMonitor'
),
component
:
_import
(
'systemMonitor'
),
auth
:
{
auth
:
[{
'action'
:
[{
id
:
'10101'
,
id
:
'10101'
,
pid
:
'101'
,
pid
:
'101'
,
label
:
'导出'
label
:
'导出'
}]
}]
}
}
}
export
const
sys
=
[
export
const
sys
=
[
// 系统 前端日志
// 系统 前端日志
...
@@ -171,8 +169,7 @@ export const resources = {
...
@@ -171,8 +169,7 @@ export const resources = {
pid
:
'0'
pid
:
'0'
},
},
component
:
_import
(
'subSysManagement'
),
component
:
_import
(
'subSysManagement'
),
auth
:
{
auth
:
[{
'operation'
:
[{
id
:
'10301'
,
id
:
'10301'
,
pid
:
'103'
,
pid
:
'103'
,
label
:
'编辑'
label
:
'编辑'
...
@@ -180,13 +177,11 @@ export const resources = {
...
@@ -180,13 +177,11 @@ export const resources = {
id
:
'10302'
,
id
:
'10302'
,
pid
:
'103'
,
pid
:
'103'
,
label
:
'删除'
label
:
'删除'
}],
},
{
'action'
:
[{
id
:
'10303'
,
id
:
'10303'
,
pid
:
'103'
,
pid
:
'103'
,
label
:
'添加子系统'
label
:
'添加子系统'
}]
}]
}
},
},
'104'
:
{
'104'
:
{
path
:
'/trafficManagement'
,
path
:
'/trafficManagement'
,
...
@@ -199,8 +194,7 @@ export const resources = {
...
@@ -199,8 +194,7 @@ export const resources = {
pid
:
'0'
pid
:
'0'
},
},
component
:
_import
(
'deviceManagement'
),
component
:
_import
(
'deviceManagement'
),
auth
:
{
auth
:
[{
'operation'
:
[{
id
:
'10401'
,
id
:
'10401'
,
pid
:
'104'
,
pid
:
'104'
,
label
:
'编辑'
label
:
'编辑'
...
@@ -208,8 +202,7 @@ export const resources = {
...
@@ -208,8 +202,7 @@ export const resources = {
id
:
'10402'
,
id
:
'10402'
,
pid
:
'104'
,
pid
:
'104'
,
label
:
'删除'
label
:
'删除'
}],
},
{
'action'
:
[{
id
:
'10403'
,
id
:
'10403'
,
pid
:
'104'
,
pid
:
'104'
,
label
:
'导入'
label
:
'导入'
...
@@ -218,7 +211,6 @@ export const resources = {
...
@@ -218,7 +211,6 @@ export const resources = {
pid
:
'104'
,
pid
:
'104'
,
label
:
'导出'
label
:
'导出'
}]
}]
}
},
},
'105'
:
{
'105'
:
{
path
:
'materialList'
,
path
:
'materialList'
,
...
@@ -255,8 +247,7 @@ export const resources = {
...
@@ -255,8 +247,7 @@ export const resources = {
pid
:
'106'
pid
:
'106'
},
},
component
:
_import
(
'materiaOrderManagement'
),
component
:
_import
(
'materiaOrderManagement'
),
auth
:
{
auth
:
[{
'operation'
:
[{
id
:
'1060101'
,
id
:
'1060101'
,
pid
:
'10601'
,
pid
:
'10601'
,
label
:
'查看详情'
label
:
'查看详情'
...
@@ -264,13 +255,11 @@ export const resources = {
...
@@ -264,13 +255,11 @@ export const resources = {
id
:
'1060102'
,
id
:
'1060102'
,
pid
:
'10601'
,
pid
:
'10601'
,
label
:
'删除'
label
:
'删除'
}],
},
{
'action'
:
[{
id
:
'1060103'
,
id
:
'1060103'
,
pid
:
'10601'
,
pid
:
'10601'
,
label
:
'订单下载'
label
:
'订单下载'
}]
}]
}
},
},
'10602'
:
{
'10602'
:
{
path
:
'/maintainManagement'
,
path
:
'/maintainManagement'
,
...
@@ -283,18 +272,15 @@ export const resources = {
...
@@ -283,18 +272,15 @@ export const resources = {
pid
:
'106'
pid
:
'106'
},
},
component
:
_import
(
'maintainManagement'
),
component
:
_import
(
'maintainManagement'
),
auth
:
{
auth
:
[{
'operation'
:
[{
id
:
'1060201'
,
id
:
'1060201'
,
pid
:
'10602'
,
pid
:
'10602'
,
label
:
'删除'
label
:
'删除'
}],
},
{
'action'
:
[{
id
:
'1060202'
,
id
:
'1060202'
,
pid
:
'10602'
,
pid
:
'10602'
,
label
:
'导出订单'
label
:
'导出订单'
}]
}]
}
},
},
'107'
:
{
'107'
:
{
path
:
'/userManager'
,
path
:
'/userManager'
,
...
...
src/store/modules/d2admin/modules/auth.js
View file @
31c96fb
...
@@ -118,7 +118,7 @@ export default {
...
@@ -118,7 +118,7 @@ export default {
// 获取权限资源点
// 获取权限资源点
const
__source
=
await
dispatch
(
'load'
)
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
]
frameInRoutes
[
0
].
children
=
[
home
,
...
route
,
...
sys
]
router
.
addRoutes
(
frameInRoutes
)
router
.
addRoutes
(
frameInRoutes
)
state
.
btns
=
btn
state
.
btns
=
btn
...
...
src/views/systemMonitor/index.vue
View file @
31c96fb
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
<el-col
:span=
"12"
>
车辆状态列表
</el-col>
<el-col
:span=
"12"
>
车辆状态列表
</el-col>
<el-col
:span=
"12"
style=
"text-align: right"
>
<el-col
:span=
"12"
style=
"text-align: right"
>
<!--
<el-button>
导出
</el-button>
-->
<!--
<el-button>
导出
</el-button>
-->
<auth-button
label=
"导出"
></auth-button>
<auth-button
label=
"导出"
type=
"Button"
></auth-button>
</el-col>
</el-col>
</el-row>
</el-row>
<el-table
<el-table
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment