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 988d887f
authored
Sep 02, 2019
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
按钮权限,图tooltip
1 parent
c2e97b11
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
151 additions
and
47 deletions
src/router/routes.js
src/views/deviceManagement/index.vue
src/views/maintainManagement/index.vue
src/views/materiaOrderManagement/index.vue
src/views/subSysManagement/index.vue
src/views/systemMonitor/index.vue
src/views/trafficManagement/index.vue
src/router/routes.js
View file @
988d887
...
@@ -26,7 +26,14 @@ export const home = {
...
@@ -26,7 +26,14 @@ export const home = {
id
:
'101'
,
id
:
'101'
,
pid
:
'0'
pid
:
'0'
},
},
component
:
_import
(
'systemMonitor'
)
component
:
_import
(
'systemMonitor'
),
auth
:
{
'action'
:
[{
id
:
'10101'
,
pid
:
'101'
,
label
:
'导出'
}]
}
}
}
export
const
sys
=
[
export
const
sys
=
[
// 系统 前端日志
// 系统 前端日志
...
@@ -140,7 +147,23 @@ export const resources = {
...
@@ -140,7 +147,23 @@ export const resources = {
// id: '102',
// id: '102',
// pid: '0'
// pid: '0'
// },
// },
// component: _import('trafficManagement')
// component: _import('trafficManagement'),
// auth: {
// 'operation': [{
// id: '10201',
// pid: '102',
// label: '编辑'
// }, {
// id: '10202',
// pid: '102',
// label: '删除'
// }],
// 'action': [{
// id: '10203',
// pid: '102',
// label: '添加车辆'
// }]
// }
// },
// },
'103'
:
{
'103'
:
{
path
:
'/subSysManagement'
,
path
:
'/subSysManagement'
,
...
@@ -152,21 +175,70 @@ export const resources = {
...
@@ -152,21 +175,70 @@ export const resources = {
id
:
'103'
,
id
:
'103'
,
pid
:
'0'
pid
:
'0'
},
},
component
:
_import
(
'subSysManagement'
)
component
:
_import
(
'subSysManagement'
),
auth
:
{
'operation'
:
[{
id
:
'10301'
,
pid
:
'103'
,
label
:
'编辑'
},
{
id
:
'10302'
,
pid
:
'103'
,
label
:
'删除'
}],
'action'
:
[{
id
:
'10303'
,
pid
:
'103'
,
label
:
'添加子系统'
}]
}
},
},
'104'
:
{
'104'
:
{
path
:
'/trafficManagement'
,
path
:
'/trafficManagement'
,
icon
:
'train'
,
icon
:
'train'
,
name
:
'
车辆
管理'
,
name
:
'
物料
管理'
,
meta
:
{
meta
:
{
auth
:
true
,
auth
:
true
,
title
:
'物料管理'
,
title
:
'物料管理'
,
id
:
'104'
,
id
:
'104'
,
pid
:
'0'
pid
:
'0'
},
},
component
:
_import
(
'deviceManagement'
)
component
:
_import
(
'deviceManagement'
),
auth
:
{
'operation'
:
[{
id
:
'10401'
,
pid
:
'104'
,
label
:
'编辑'
},
{
id
:
'10402'
,
pid
:
'104'
,
label
:
'删除'
}],
'action'
:
[{
id
:
'10403'
,
pid
:
'104'
,
label
:
'导入'
},
{
id
:
'10404'
,
pid
:
'104'
,
label
:
'导出'
}]
}
},
},
'105'
:
{
'105'
:
{
path
:
'materialList'
,
icon
:
'folder-o'
,
icon
:
'file-text-o'
,
name
:
'物料列表'
,
meta
:
{
auth
:
true
,
title
:
'物料列表'
,
id
:
'105'
,
pid
:
'0'
},
component
:
_import
(
'materialList'
),
},
'106'
:
{
path
:
'/bb'
,
path
:
'/bb'
,
icon
:
'file-text-o'
,
icon
:
'file-text-o'
,
name
:
'单据管理'
,
name
:
'单据管理'
,
...
@@ -187,7 +259,23 @@ export const resources = {
...
@@ -187,7 +259,23 @@ export const resources = {
id
:
'10601'
,
id
:
'10601'
,
pid
:
'106'
pid
:
'106'
},
},
component
:
_import
(
'materiaOrderManagement'
)
component
:
_import
(
'materiaOrderManagement'
),
auth
:
{
'operation'
:
[{
id
:
'1060101'
,
pid
:
'10601'
,
label
:
'查看详情'
},
{
id
:
'1060102'
,
pid
:
'10601'
,
label
:
'删除'
}],
'action'
:
[{
id
:
'1060103'
,
pid
:
'10601'
,
label
:
'订单下载'
}]
}
},
},
'10602'
:
{
'10602'
:
{
path
:
'/maintainManagement'
,
path
:
'/maintainManagement'
,
...
@@ -199,7 +287,19 @@ export const resources = {
...
@@ -199,7 +287,19 @@ export const resources = {
id
:
'10602'
,
id
:
'10602'
,
pid
:
'106'
pid
:
'106'
},
},
component
:
_import
(
'maintainManagement'
)
component
:
_import
(
'maintainManagement'
),
auth
:
{
'operation'
:
[{
id
:
'1060201'
,
pid
:
'10602'
,
label
:
'删除'
}],
'action'
:
[{
id
:
'1060202'
,
pid
:
'10602'
,
label
:
'导出订单'
}]
}
},
},
'107'
:
{
'107'
:
{
path
:
'/user'
,
path
:
'/user'
,
...
...
src/views/deviceManagement/index.vue
View file @
988d887
...
@@ -28,14 +28,14 @@
...
@@ -28,14 +28,14 @@
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-row
style=
"height: 40px; line-height: 40px"
>
<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
class=
"import-button"
style=
""
>
导入
<
auth-button
label=
"导入"
class=
"import-button"
type=
""
>
<input
<input
type=
"file"
type=
"file"
class=
"import-input"
class=
"import-input"
accept=
".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
accept=
".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
@
change=
"importFile($event)"
/>
@
change=
"importFile($event)"
/>
</
el
-button>
</
auth
-button>
<
el-button>
导出
</el
-button>
<
auth-button
label=
"导出"
type=
""
></auth
-button>
</el-col>
</el-col>
</el-row>
</el-row>
<el-table
<el-table
...
@@ -286,8 +286,6 @@ export default {
...
@@ -286,8 +286,6 @@ export default {
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.import-button
{
.import-button
{
width
:
70px
;
height
:
40px
;
overflow
:
hidden
;
overflow
:
hidden
;
position
:
relative
;
position
:
relative
;
cursor
:
pointer
;
cursor
:
pointer
;
...
...
src/views/maintainManagement/index.vue
View file @
988d887
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-row
style=
"height: 40px; line-height: 40px"
>
<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
@
click=
"exportOrder"
>
导出订单
</el
-button>
<
auth-button
label=
"导出订单"
type=
""
@
e-auth-click=
"exportOrder"
></auth
-button>
</el-col>
</el-col>
</el-row>
</el-row>
<el-table
<el-table
...
@@ -81,10 +81,10 @@
...
@@ -81,10 +81,10 @@
label=
"操作"
label=
"操作"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<
el
-button
<
auth
-button
type=
"text
"
label=
"删除
"
@
click=
"handleDelete(scope.$index, scope.row)"
@
e-auth-
click=
"handleDelete(scope.$index, scope.row)"
>
删除
</el
-button>
>
</auth
-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
...
src/views/materiaOrderManagement/index.vue
View file @
988d887
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-row
style=
"height: 40px; line-height: 40px"
>
<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>
<
auth-button
label=
"订单下载"
type=
""
></auth
-button>
</el-col>
</el-col>
</el-row>
</el-row>
<el-table
<el-table
...
@@ -71,14 +71,14 @@
...
@@ -71,14 +71,14 @@
label=
"操作"
label=
"操作"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<
el
-button
<
auth
-button
type=
"text
"
label=
"查看详情
"
@
click=
"handleDetail(scope.row, scope.$index)"
@
e-auth-
click=
"handleDetail(scope.row, scope.$index)"
>
查看详情
</el
-button>
>
</auth
-button>
<
el
-button
<
auth
-button
type=
"text
"
label=
"删除
"
@
click=
"handleDelete(scope.$index, scope.row)"
@
e-auth-
click=
"handleDelete(scope.$index, scope.row)"
>
删除
</el
-button>
>
</auth
-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
...
src/views/subSysManagement/index.vue
View file @
988d887
...
@@ -28,7 +28,8 @@
...
@@ -28,7 +28,8 @@
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-row
style=
"height: 40px; line-height: 40px"
>
<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
@
click=
"handleEdit(editFormReset)"
>
添加子系统
</el-button>
<!--
<el-button
@
click=
"handleEdit(editFormReset)"
>
添加子系统
</el-button>
-->
<auth-button
label=
"添加子系统"
type=
""
@
e-auth-click=
"handleEdit(editFormReset)"
>
添加子系统
</auth-button>
</el-col>
</el-col>
</el-row>
</el-row>
<el-table
<el-table
...
@@ -65,14 +66,14 @@
...
@@ -65,14 +66,14 @@
label=
"操作"
label=
"操作"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<
el
-button
<
auth
-button
type=
"text
"
label=
"编辑
"
@
click=
"handleEdit(scope.row, scope.$index)"
@
e-auth-
click=
"handleEdit(scope.row, scope.$index)"
>
编辑
</el
-button>
>
</auth
-button>
<
el
-button
<
auth
-button
type=
"text
"
label=
"删除
"
@
click=
"handleDelete(scope.$index, scope.row)"
@
e-auth-
click=
"handleDelete(scope.$index, scope.row)"
>
删除
</el
-button>
>
</auth
-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
...
src/views/systemMonitor/index.vue
View file @
988d887
...
@@ -60,7 +60,8 @@
...
@@ -60,7 +60,8 @@
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-row
style=
"height: 40px; line-height: 40px"
>
<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>
</el-col>
</el-col>
</el-row>
</el-row>
<el-table
<el-table
...
@@ -113,6 +114,7 @@
...
@@ -113,6 +114,7 @@
import
{
getListApi
,
reportApi
}
from
'@api/systemMonitor'
import
{
getListApi
,
reportApi
}
from
'@api/systemMonitor'
import
notice
from
'@/common/notice'
import
notice
from
'@/common/notice'
require
(
'echarts/lib/chart/pie'
)
require
(
'echarts/lib/chart/pie'
)
require
(
"echarts/lib/component/tooltip"
);
let
echarts
=
require
(
'echarts/lib/echarts'
)
let
echarts
=
require
(
'echarts/lib/echarts'
)
...
@@ -148,7 +150,8 @@ export default {
...
@@ -148,7 +150,8 @@ export default {
center
:
[
'25%'
,
'50%'
],
center
:
[
'25%'
,
'50%'
],
label
:
{
label
:
{
normal
:
{
normal
:
{
fontSize
:
16
fontSize
:
16
,
formatter
:
'{b}: {c}'
}
}
},
},
data
:
[{
data
:
[{
...
@@ -172,7 +175,8 @@ export default {
...
@@ -172,7 +175,8 @@ export default {
center
:
[
'75%'
,
'50%'
],
center
:
[
'75%'
,
'50%'
],
label
:
{
label
:
{
normal
:
{
normal
:
{
fontSize
:
16
fontSize
:
16
,
formatter
:
'{b}: {c}'
}
}
},
},
data
:
[{
data
:
[{
...
...
src/views/trafficManagement/index.vue
View file @
988d887
...
@@ -31,7 +31,8 @@
...
@@ -31,7 +31,8 @@
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-row
style=
"height: 40px; line-height: 40px"
>
<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
@
click=
"handleEdit(editFormReset)"
>
添加车辆
</el-button>
<!--
<el-button
@
click=
"handleEdit(editFormReset)"
>
添加车辆
</el-button>
-->
<auth-button
label=
"添加车辆"
type=
""
@
e-auth-click=
"handleEdit(editFormReset)"
></auth-button>
</el-col>
</el-col>
</el-row>
</el-row>
<el-table
<el-table
...
@@ -68,14 +69,14 @@
...
@@ -68,14 +69,14 @@
label=
"操作"
label=
"操作"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<
el
-button
<
auth
-button
type=
"text
"
label=
"编辑
"
@
click=
"handleEdit(scope.row, scope.$index)"
@
e-auth-
click=
"handleEdit(scope.row, scope.$index)"
>
编辑
</el
-button>
>
</auth
-button>
<
el
-button
<
auth
-button
type=
"text
"
label=
"删除
"
@
click=
"handleDelete(scope.$index, scope.row)"
@
e-auth-
click=
"handleDelete(scope.$index, scope.row)"
>
删除
</el
-button>
>
</auth
-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</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