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 05847f2f
authored
Sep 04, 2019
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
合并冲突
2 parents
fe04a447
bd581883
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
146 additions
and
92 deletions
src/api/systemMonitor.js
src/router/routes.js
src/views/deviceManagement/index.vue
src/views/maintainManagement/index.vue
src/views/materiaOrderManagement/detailDialog.vue
src/views/materiaOrderManagement/index.vue
src/views/subSysManagement/index.vue
src/views/systemMonitor/index.vue
src/views/trafficManagement/index.vue
src/api/systemMonitor.js
View file @
05847f2
...
...
@@ -11,7 +11,13 @@ function reportApi (data) {
return
request
(
data
)
}
function
exportApi
(
data
)
{
data
.
method
=
`
${
path
}
export`
return
request
(
data
)
}
export
{
getListApi
,
reportApi
reportApi
,
exportApi
}
src/router/routes.js
View file @
05847f2
...
...
@@ -29,9 +29,12 @@ export const home = {
},
component
:
_import
(
'systemMonitor'
),
auth
:
[{
authId
:
'10101'
,
parentId
:
'101'
,
label
:
'导出'
authId
:
'10101'
,
parentId
:
'101'
,
label
:
'导出'
,
type
:
'button'
,
category
:
'Button'
,
handle
:
'exportFile'
}]
}
export
const
sys
=
[
...
...
@@ -142,17 +145,22 @@ export const resources = {
},
component
:
_import
(
'trafficManagement'
),
auth
:
[{
authId
:
'10201'
,
parentId
:
'102'
,
label
:
'编辑'
authId
:
'10201'
,
parentId
:
'102'
,
label
:
'编辑'
,
handle
:
'handleEdit'
},
{
authId
:
'10202'
,
parentId
:
'102'
,
label
:
'删除'
label
:
'删除'
,
handle
:
'handleDelete'
},
{
authId
:
'10203'
,
parentId
:
'102'
,
label
:
'添加车辆'
label
:
'添加车辆'
,
category
:
'Button'
,
type
:
'button'
,
handle
:
'handleEdit'
}]
},
'103'
:
{
...
...
@@ -167,17 +175,22 @@ export const resources = {
},
component
:
_import
(
'subSysManagement'
),
auth
:
[{
authId
:
'10301'
,
parentId
:
'103'
,
label
:
'编辑'
authId
:
'10301'
,
parentId
:
'103'
,
label
:
'编辑'
,
handle
:
'handleEdit'
},
{
authId
:
'10302'
,
parentId
:
'103'
,
label
:
'删除'
label
:
'删除'
,
handle
:
'handleDelete'
},
{
authId
:
'10303'
,
parentId
:
'103'
,
label
:
'添加子系统'
label
:
'添加子系统'
,
category
:
'Button'
,
type
:
'button'
,
handle
:
'handleEdit'
}]
},
'104'
:
{
...
...
@@ -192,21 +205,28 @@ export const resources = {
},
component
:
_import
(
'deviceManagement'
),
auth
:
[{
authId
:
'10401'
,
parentId
:
'104'
,
label
:
'编辑'
authId
:
'10401'
,
parentId
:
'104'
,
label
:
'编辑'
,
handle
:
'handleEdit'
},
{
authId
:
'10402'
,
parentId
:
'104'
,
label
:
'删除'
label
:
'删除'
,
handle
:
'handleDelete'
},
{
authId
:
'10403'
,
parentId
:
'104'
,
label
:
'导入'
label
:
'导出'
,
type
:
'button'
,
category
:
'Button'
,
handle
:
'exportFile'
},
{
authId
:
'10404'
,
parentId
:
'104'
,
label
:
'导出'
label
:
'导入'
,
type
:
'button'
,
category
:
'Button'
}]
},
'105'
:
{
...
...
@@ -245,17 +265,22 @@ export const resources = {
},
component
:
_import
(
'materiaOrderManagement'
),
auth
:
[{
authId
:
'1060101'
,
parentId
:
'10601'
,
label
:
'查看详情'
authId
:
'1060101'
,
parentId
:
'10601'
,
label
:
'查看详情'
,
handle
:
'handleDetail'
},
{
authId
:
'1060102'
,
parentId
:
'10601'
,
label
:
'删除'
label
:
'删除'
,
handle
:
'handleDelete'
},
{
authId
:
'1060103'
,
parentId
:
'10601'
,
label
:
'订单下载'
label
:
'订单下载'
,
category
:
'Button'
,
type
:
'button'
,
handle
:
'exportFile'
}]
},
'10602'
:
{
...
...
@@ -270,13 +295,17 @@ export const resources = {
},
component
:
_import
(
'maintainManagement'
),
auth
:
[{
authId
:
'1060201'
,
parentId
:
'10602'
,
label
:
'删除'
authId
:
'1060201'
,
parentId
:
'10602'
,
label
:
'删除'
,
handle
:
'handleDelete'
},
{
authId
:
'1060202'
,
parentId
:
'10602'
,
label
:
'导出订单'
label
:
'导出订单'
,
category
:
'Button'
,
type
:
'button'
,
handle
:
'exportOrder'
}]
},
'107'
:
{
...
...
src/views/deviceManagement/index.vue
View file @
05847f2
...
...
@@ -27,11 +27,9 @@
</el-form>
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-col
:span=
"12"
>
物料列表
</el-col>
<el-col
:span=
"12"
style=
"text-align: right"
>
<auth-button
label=
"导入"
class=
"import-button"
type=
""
<el-col
:span=
"12"
style=
"text-align: right; position: relative;"
>
<auth-button
category=
"Button"
>
<input
type=
"file"
...
...
@@ -39,7 +37,7 @@
accept=
".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
@
change=
"importFile($event)"
/>
</auth-button>
<
auth-button
label=
"导出"
type=
""
></auth-button
>
<
!--
<auth-button
label=
"导出"
type=
"Button"
@
e-auth-click=
"exportFile"
></auth-button>
--
>
</el-col>
</el-row>
<el-table
...
...
@@ -76,14 +74,15 @@
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
<auth-button
:data=
"scope.row"
></auth-button>
<!--
<el-button
type=
"text"
@
click=
"handleEdit(scope.row, scope.$index)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"handleDelete(scope.$index, scope.row)"
>
删除
</el-button>
>
删除
</el-button>
-->
</
template
>
</el-table-column>
</el-table>
...
...
@@ -229,6 +228,15 @@ export default {
notice
.
errorTips
()
})
},
exportFile
()
{
const
params
=
this
.
getParams
()
exportApi
(
params
).
then
(
res
=>
{
notice
.
okTips
()
}).
catch
(
err
=>
{
notice
.
errorTips
()
})
},
/* 接口请求-end */
// 搜索
handleSearch
()
{
...
...
@@ -262,7 +270,7 @@ export default {
},
// 表格-编辑
handleEdit
(
row
,
index
=
-
1
)
{
handleEdit
(
row
)
{
// console.log(index)
// console.log(row)
console
.
log
(
row
)
...
...
@@ -270,7 +278,7 @@ export default {
this
.
editVisible
=
!
this
.
editVisible
},
handleDelete
(
index
,
row
)
{
handleDelete
(
row
)
{
this
.
$confirm
(
'确认删除?'
,
'删除'
,
{
comfirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
...
...
@@ -294,15 +302,15 @@ export default {
</
script
>
<
style
scoped
>
.import-button
{
/*
.import-button {
overflow: hidden;
position: relative;
cursor: pointer;
}
}
*/
.import-input
{
opacity
:
0
;
position
:
absolute
;
lef
t
:
0
;
righ
t
:
0
;
top
:
0
;
width
:
70px
;
height
:
100%
;
...
...
src/views/maintainManagement/index.vue
View file @
05847f2
...
...
@@ -44,7 +44,8 @@
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-col
:span=
"12"
>
作业单列表
</el-col>
<el-col
:span=
"12"
style=
"text-align: right"
>
<auth-button
label=
"导出订单"
type=
""
@
e-auth-click=
"exportOrder"
></auth-button>
<auth-button
category=
"Button"
></auth-button>
<!--
<auth-button
label=
"导出订单"
type=
""
@
e-auth-click=
"exportOrder"
></auth-button>
-->
</el-col>
</el-row>
<el-table
...
...
@@ -82,9 +83,12 @@
>
<
template
slot-scope=
"scope"
>
<auth-button
:data=
"scope.row"
></auth-button>
<!--
<auth-button
label=
"删除"
@
e-auth-click=
"handleDelete(scope.$index, scope.row)"
></auth-button>
></auth-button>
-->
</
template
>
</el-table-column>
</el-table>
...
...
@@ -306,7 +310,7 @@ export default {
this
.
loadingGetList
()
},
handleDelete
(
index
,
row
)
{
handleDelete
(
row
)
{
this
.
$confirm
(
'确认删除?'
,
'删除'
,
{
comfirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
...
...
src/views/materiaOrderManagement/detailDialog.vue
View file @
05847f2
...
...
@@ -3,10 +3,13 @@
<div
class=
"detailDialog"
>
<el-dialog
:visible
.
sync=
"isVisible"
:title=
"title"
:before-close=
"handleClose"
width=
"800px"
>
<!--
<embed
src=
"file:///D:/project需求/高铁/物料申请单_20190830150550.pdf"
width=
"100%"
height=
"800px"
></embed>
-->
<iframe
width=
"100%"
height=
"800px"
scrolling=
"yes"
frameborder=
"0"
src=
"https://web.stanford.edu/~xgzhou/zhou_book2017.pdf"
></iframe>
<!--
<iframe
width=
"100%"
height=
"550px"
scrolling=
"yes"
frameborder=
"0"
src=
"https://pan.baidu.com/s/1Juauwf2c5nkNZuj6rc0W0Q"
></iframe>
-->
<!--
<embed
width=
"100%"
height=
"800px"
src=
"https://web.stanford.edu/~xgzhou/zhou_book2017.pdf"
>
-->
</el-dialog>
</div>
...
...
@@ -24,7 +27,8 @@ export default {
isVisible
:
{
type
:
Boolean
,
default
:
false
}
},
title
:
''
},
mounted
()
{},
...
...
@@ -37,10 +41,8 @@ export default {
}
</
script
>
<
style
scoped
>
.header-title
{
text-align
:
center
;
font-size
:
18px
;
font-weight
:
bold
;
<
style
>
.detailDialog
.el-dialog__body
{
padding
:
0
20px
;
}
</
style
>
src/views/materiaOrderManagement/index.vue
View file @
05847f2
...
...
@@ -34,7 +34,8 @@
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-col
:span=
"12"
>
订单列表
</el-col>
<el-col
:span=
"12"
style=
"text-align: right"
>
<auth-button
label=
"订单下载"
type=
""
></auth-button>
<auth-button
category=
"Button"
></auth-button>
<!--
<auth-button
label=
"订单下载"
type=
""
@
e-auth-click=
"exportFile"
></auth-button>
-->
</el-col>
</el-row>
<el-table
...
...
@@ -71,14 +72,15 @@
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<auth-button
<auth-button
:data=
"scope.row"
></auth-button>
<!--
<el-button
label=
"查看详情"
@
e-auth-
click=
"handleDetail(scope.row, scope.$index)"
></
auth
-button>
@
click=
"handleDetail(scope.row, scope.$index)"
></
el
-button>
<auth-button
label=
"删除"
@
e-auth-click=
"handleDelete(scope.$index, scope.row)"
></auth-button>
></auth-button>
-->
</
template
>
</el-table-column>
</el-table>
...
...
@@ -95,6 +97,7 @@
</el-pagination>
<detail-dialog
:isVisible=
"detailVisible"
:title=
"dialogTitle"
@
closeDialog=
"handleDetailClose"
></detail-dialog>
</d2-container>
...
...
@@ -112,6 +115,7 @@ export default {
data
()
{
return
{
detailVisible
:
false
,
dialogTitle
:
''
,
// 搜索
searchForm
:
{
orderCode
:
''
,
...
...
@@ -195,6 +199,14 @@ export default {
notice
.
errorTips
()
})
},
exportFile
()
{
const
params
=
this
.
getParams
()
downloadApi
(
params
).
then
(
res
=>
{
notice
.
okTips
()
}).
catch
(
err
=>
{
notice
.
errorTips
()
})
},
/* 接口请求-end */
// 搜索
handleSearch
()
{
...
...
@@ -217,43 +229,22 @@ export default {
this
.
loadingGetList
()
},
// resetForm (obj) {
// for (var item in obj) {
// if (obj[item] instanceof Array) {
// obj[item] = []
// } else {
// obj[item] = ''
// }
// }
// },
handleDetailClose
()
{
this
.
detailVisible
=
!
this
.
detailVisible
},
// handleEditConfirm () {
// console.log(JSON.parse(JSON.stringify(this.editForm)))
// var editParams = JSON.parse(JSON.stringify(this.editForm))
// this.editSubSystem(this.editForm)
// },
// 表格-查看详情
handleDetail
(
row
,
index
=
-
1
)
{
handleDetail
(
row
)
{
this
.
dialogTitle
=
row
.
orderType
this
.
detailVisible
=
!
this
.
detailVisible
},
handleDelete
(
index
,
row
)
{
handleDelete
(
row
)
{
this
.
$confirm
(
'确认删除?'
,
'删除'
,
{
comfirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
// console.log(index)
// console.log(row)
// this.$message({
// type: 'success',
// message: '删除成功'
// })
removeApi
(
row
).
then
(
res
=>
{
notice
.
okTips
()
}).
catch
(
err
=>
{
...
...
src/views/subSysManagement/index.vue
View file @
05847f2
...
...
@@ -28,8 +28,9 @@
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-col
:span=
"12"
>
子系统列表
</el-col>
<el-col
:span=
"12"
style=
"text-align: right"
>
<auth-button
category=
"Button"
:data=
"editFormReset"
></auth-button>
<!--
<el-button
@
click=
"handleEdit(editFormReset)"
>
添加子系统
</el-button>
-->
<
auth-button
label=
"添加子系统"
type=
""
@
e-auth-click=
"handleEdit(editFormReset)"
>
添加子系统
</auth-button
>
<
!--
<auth-button
label=
"添加子系统"
type=
""
@
e-auth-click=
"handleEdit(editFormReset)"
></auth-button>
--
>
</el-col>
</el-row>
<el-table
...
...
@@ -67,13 +68,16 @@
>
<
template
slot-scope=
"scope"
>
<auth-button
:data=
"scope.row"
></auth-button>
<!--
<auth-button
label=
"编辑"
@
e-auth-click=
"handleEdit(scope.row, scope.$index)"
></auth-button>
<auth-button
label=
"删除"
@
e-auth-click=
"handleDelete(scope.$index, scope.row)"
></auth-button>
></auth-button>
-->
</
template
>
</el-table-column>
</el-table>
...
...
@@ -254,12 +258,12 @@ export default {
},
// 表格-编辑
handleEdit
(
row
,
index
=
-
1
)
{
handleEdit
(
row
)
{
this
.
editForm
=
JSON
.
parse
(
JSON
.
stringify
(
row
))
this
.
editVisible
=
!
this
.
editVisible
},
handleDelete
(
index
,
row
)
{
handleDelete
(
row
)
{
this
.
$confirm
(
'确认删除?'
,
'删除'
,
{
comfirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
...
...
src/views/systemMonitor/index.vue
View file @
05847f2
...
...
@@ -60,8 +60,8 @@
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-col
:span=
"12"
>
车辆状态列表
</el-col>
<el-col
:span=
"12"
style=
"text-align: right"
>
<
!--
<el-button>
导出
</el-button>
--
>
<
auth-button
label=
"导出"
type=
"Button"
></auth-button
>
<
auth-button
category=
"Button"
></auth-button
>
<
!--
<auth-button
label=
"导出"
type=
"Button"
@
e-auth-click=
"exportFile"
></auth-button>
--
>
</el-col>
</el-row>
<el-table
...
...
@@ -111,7 +111,7 @@
</template>
<
script
>
import
{
getListApi
,
reportApi
}
from
'@api/systemMonitor'
import
{
getListApi
,
reportApi
,
exportApi
}
from
'@api/systemMonitor'
import
notice
from
'@/common/notice'
require
(
'echarts/lib/chart/pie'
)
require
(
"echarts/lib/component/tooltip"
);
...
...
@@ -281,6 +281,14 @@ export default {
notice
.
errorTips
(
err
)
})
},
exportFile
()
{
const
params
=
this
.
getParams
()
exportApi
(
params
).
then
(
res
=>
{
notice
.
okTips
()
}).
catch
(
err
=>
{
notice
.
errorTips
()
})
},
/* 接口请求-end */
/* onlineNum Int 在网数量
offlineNum int 离网数量
...
...
src/views/trafficManagement/index.vue
View file @
05847f2
...
...
@@ -31,8 +31,9 @@
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-col
:span=
"12"
>
车辆列表
</el-col>
<el-col
:span=
"12"
style=
"text-align: right"
>
<auth-button
category=
"Button"
:data=
"editFormReset"
></auth-button>
<!--
<el-button
@
click=
"handleEdit(editFormReset)"
>
添加车辆
</el-button>
-->
<
auth-button
label=
"添加车辆"
type=
""
@
e-auth-click=
"handleEdit(editFormReset)"
></auth-button
>
<
!--
<auth-button
label=
"添加车辆"
type=
""
@
e-auth-click=
"handleEdit(editFormReset)"
></auth-button>
--
>
</el-col>
</el-row>
<el-table
...
...
@@ -69,14 +70,15 @@
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<auth-button
<auth-button
:data=
"scope.row"
></auth-button>
<!--
<auth-button
label=
"编辑"
@
e-auth-click=
"handleEdit(scope.row, scope.$index)"
></auth-button>
<auth-button
label=
"删除"
@
e-auth-click=
"handleDelete(scope.$index, scope.row)"
></auth-button>
></auth-button>
-->
</
template
>
</el-table-column>
</el-table>
...
...
@@ -248,14 +250,14 @@ export default {
},
// 表格-编辑
handleEdit
(
row
,
index
=
-
1
)
{
handleEdit
(
row
)
{
// console.log(index)
// console.log(row)
this
.
editForm
=
JSON
.
parse
(
JSON
.
stringify
(
row
))
this
.
editVisible
=
!
this
.
editVisible
},
handleDelete
(
index
,
row
)
{
handleDelete
(
row
)
{
this
.
$confirm
(
'确认删除?'
,
'删除'
,
{
comfirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
...
...
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