Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhongtong-avi-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
中通客车项目
zhongtong-avi-web
Commits
e5e6d35d
Commit
e5e6d35d
authored
Mar 11, 2020
by
李志鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fea(设备状态): 静态开发完成
parent
8417d049
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
175 additions
and
0 deletions
+175
-0
route.js
src/lang/zh/route.js
+1
-0
deviceRunning.js
src/router/modules/deviceRunning.js
+6
-0
list.vue
src/views/DeviceRunning/DeviceStatus/list.vue
+168
-0
No files found.
src/lang/zh/route.js
View file @
e5e6d35d
...
...
@@ -22,6 +22,7 @@ export default {
DeviceRunning
:
'设备运行状况'
,
DeviceRunningTime
:
'设备运行时间'
,
DeviceFaultRecord
:
'设备故障/报警记录'
,
DeviceStatus
:
'设备状态'
,
// 基础数据
Basic
:
'基础数据'
,
WorkshopBasic
:
'车间基础数据'
,
...
...
src/router/modules/deviceRunning.js
View file @
e5e6d35d
...
...
@@ -19,6 +19,12 @@ export default {
component
:
()
=>
import
(
'@/views/DeviceRunning/DeviceFaultRecord/list'
),
name
:
'DeviceFaultRecord'
,
meta
:
{
title
:
'DeviceFaultRecord'
,
icon
:
'repairApplication'
,
noCache
:
false
,
mark
:
'/deviceRunning/deviceFaultRecord/list'
}
},
{
path
:
'deviceStatus'
,
component
:
()
=>
import
(
'@/views/DeviceRunning/DeviceStatus/list'
),
name
:
'DeviceStatus'
,
meta
:
{
title
:
'DeviceStatus'
,
icon
:
'repairApplication'
,
noCache
:
false
}
}
]
}
src/views/DeviceRunning/DeviceStatus/list.vue
0 → 100644
View file @
e5e6d35d
<
template
>
<div
class=
"page-pack"
>
<div
class=
"title-pack clear-float pl-15 pr-15"
>
<div
class=
"float-left"
>
<span
class=
"page-title-text"
>
设备状态
</span>
</div>
<div
class=
"float-right page-refresh"
>
<span
@
click=
"doRefreshClick"
class=
"pointer"
>
<svg-icon
icon-class=
"refresh"
></svg-icon>
<span
class=
"ml-10"
>
刷新
</span>
</span>
</div>
</div>
<div
class=
"tool-pack clear-float pl-15 pr-15"
>
<Search
searchCode=
"PASS_INFO"
@
search=
"doSearchClick"
@
reset=
"doResetClick"
>
</Search>
</div>
<div
class=
"general-list-main-pack pl-15 pr-15 pb-15"
>
<div>
<Table
:tableConfig=
"tableConfig"
@
onPageSizeChange=
"onPageSizeChange"
@
onCurrentPageChange=
"onCurrentPageChange"
>
</Table>
</div>
</div>
</div>
</
template
>
<
script
>
import
Moment
from
'moment'
;
import
Table
from
'@/components/Table/index.vue'
;
import
Search
from
'@/components/Search'
;
export
default
{
components
:
{
Table
,
Search
},
data
()
{
return
{
// 精准搜索关键字列表
searchList
:
{},
// 表格配置项
tableConfig
:
{
height
:
0
,
data
:
[],
fieldList
:
[
{
label
:
'车间'
,
value
:
'vin'
},
{
label
:
'设备名称'
,
value
:
'stationName'
},
{
label
:
'设备编码'
,
value
:
'stationNo'
},
{
label
:
'设备状态'
,
value
:
'passTime'
}
],
paginationToggle
:
true
,
paginationConfig
:
{
total
:
0
,
currentPage
:
1
,
pageSize
:
20
}
}
}
},
methods
:
{
// 点击刷新按钮
doRefreshClick
()
{},
// 点击搜索按钮
doSearchClick
(
searchValue
)
{},
// 点击重置按钮
doResetClick
(
searchValue
)
{},
// 触发表格数量改变事件
onPageSizeChange
(
pageSize
)
{},
// 触发表格分页改变事件
onCurrentPageChange
(
currentPage
)
{}
},
mounted
()
{
setTimeout
(()
=>
{
this
.
tableConfig
.
height
=
document
.
querySelector
(
'.page-pack'
).
offsetHeight
-
178
;
},
0
);
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.page-pack
{
position
:
relative
;
min-height
:
100%
;
width
:
100%
;
border
:
1px
solid
#d2d3d5
;
background-color
:
#fff
;
overflow-y
:
auto
;
.title-pack
{
height
:
38px
;
line-height
:
38px
;
border-bottom
:
1px
solid
#d2d3d5
;
}
.tool-pack
{
padding-top
:
16px
;
padding-bottom
:
16px
;
.tool-tag
{
height
:
32px
;
line-height
:
32px
;
font-size
:
14px
;
}
}
.edit-button
{
color
:
#538FFD
;
}
.status-circle
{
display
:
inline-block
;
width
:
6px
;
height
:
6px
;
border-radius
:
6px
;
margin-right
:
5px
;
vertical-align
:
middle
;
}
.delete-button
{
color
:
#F47476
;
}
.view-span
{
color
:
#1284fa
;
border-bottom
:
1px
solid
#1284fa
;
&
:hover
{
cursor
:
pointer
;
}
}
.el-dialog__body
{
padding
:
30px
30px
10px
20px
!
important
;
.el-row
{
.el-col
{
line-height
:
35px
;
.el-form-item
{
width
:
100%
;
.el-form-item__content
{
width
:
100%
;
.el-input
{
font-size
:
12px
;
height
:
32px
;
}
.el-input__inner
{
height
:
32px
;
}
.el-select
{
width
:
100%
!
important
;
font-size
:
12px
;
height
:
32px
;
}
.el-date-editor
{
width
:
100%
!
important
;
}
}
}
}
}
}
}
</
style
>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment