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
a739ed31
Commit
a739ed31
authored
Nov 28, 2019
by
李志鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fea(监控大屏): 修改设备运行时间统计图表
parent
4bb8089d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
234 additions
and
165 deletions
+234
-165
center_control_bg.png
src/assets/images/CenterControl/center_control_bg.png
+0
-0
apis.js
src/interface/apis.js
+48
-0
list.vue
src/views/Basic/DeviceBasic/list.vue
+5
-5
MachineFailureTrend.vue
src/views/CenterControl/components/MachineFailureTrend.vue
+1
-2
MachineStateTrend.vue
src/views/CenterControl/components/MachineStateTrend.vue
+147
-144
MachineWarning.vue
src/views/CenterControl/components/MachineWarning.vue
+29
-10
index.vue
src/views/CenterControl/index.vue
+1
-1
stationSix.vue
src/views/Led/Station/stationSix.vue
+2
-2
ProgramIssued.vue
src/views/Workshop/Parts/components/ProgramIssued.vue
+1
-1
No files found.
src/assets/images/CenterControl/center_control_bg.png
View replaced file @
4bb8089d
View file @
a739ed31
155 KB
|
W:
|
H:
159 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/interface/apis.js
View file @
a739ed31
...
@@ -157,6 +157,10 @@
...
@@ -157,6 +157,10 @@
}
}
},
},
"equipment-controller"
:
{
"equipment-controller"
:
{
"data-get"
:
{
"url"
:
"/api/equipment/data"
,
"method"
:
"get"
},
"export-post"
:
{
"export-post"
:
{
"url"
:
"/api/equipment/data/export"
,
"url"
:
"/api/equipment/data/export"
,
"method"
:
"post"
"method"
:
"post"
...
@@ -169,6 +173,10 @@
...
@@ -169,6 +173,10 @@
"url"
:
"/api/equipment/file/upload"
,
"url"
:
"/api/equipment/file/upload"
,
"method"
:
"post"
"method"
:
"post"
},
},
"findByShopCode-get"
:
{
"url"
:
"/api/equipment/findByShopCode"
,
"method"
:
"get"
},
"transfer-post"
:
{
"transfer-post"
:
{
"url"
:
"/api/equipment/program/transfer"
,
"url"
:
"/api/equipment/program/transfer"
,
"method"
:
"post"
"method"
:
"post"
...
@@ -259,6 +267,10 @@
...
@@ -259,6 +267,10 @@
"url"
:
"/api/v1/group"
,
"url"
:
"/api/v1/group"
,
"method"
:
"put"
"method"
:
"put"
},
},
"page-post"
:
{
"url"
:
"/api/v1/group/page"
,
"method"
:
"post"
},
"role-post"
:
{
"role-post"
:
{
"url"
:
"/api/v1/group/role"
,
"url"
:
"/api/v1/group/role"
,
"method"
:
"post"
"method"
:
"post"
...
@@ -275,6 +287,10 @@
...
@@ -275,6 +287,10 @@
"url"
:
"/api/v1/group/tree/user"
,
"url"
:
"/api/v1/group/tree/user"
,
"method"
:
"get"
"method"
:
"get"
},
},
"groupId-get"
:
{
"url"
:
"/api/v1/group/{groupId}"
,
"method"
:
"get"
},
"groupId-delete"
:
{
"groupId-delete"
:
{
"url"
:
"/api/v1/group/{groupId}"
,
"url"
:
"/api/v1/group/{groupId}"
,
"method"
:
"delete"
"method"
:
"delete"
...
@@ -401,6 +417,14 @@
...
@@ -401,6 +417,14 @@
"url"
:
"/api/v1/user/group/users"
,
"url"
:
"/api/v1/user/group/users"
,
"method"
:
"get"
"method"
:
"get"
},
},
"id-get"
:
{
"url"
:
"/api/v1/user/id/{id}"
,
"method"
:
"get"
},
"userId-delete"
:
{
"url"
:
"/api/v1/user/id/{userId}"
,
"method"
:
"delete"
},
"no-get"
:
{
"no-get"
:
{
"url"
:
"/api/v1/user/no/{no}"
,
"url"
:
"/api/v1/user/no/{no}"
,
"method"
:
"get"
"method"
:
"get"
...
@@ -409,6 +433,10 @@
...
@@ -409,6 +433,10 @@
"url"
:
"/api/v1/user/page"
,
"url"
:
"/api/v1/user/page"
,
"method"
:
"get"
"method"
:
"get"
},
},
"page-post"
:
{
"url"
:
"/api/v1/user/page"
,
"method"
:
"post"
},
"list-get"
:
{
"list-get"
:
{
"url"
:
"/api/v1/user/resource/list"
,
"url"
:
"/api/v1/user/resource/list"
,
"method"
:
"get"
"method"
:
"get"
...
@@ -609,6 +637,14 @@
...
@@ -609,6 +637,14 @@
"url"
:
"/api/v2/workStation/delete/{id}"
,
"url"
:
"/api/v2/workStation/delete/{id}"
,
"method"
:
"delete"
"method"
:
"delete"
},
},
"eqpRelation-post"
:
{
"url"
:
"/api/v2/workStation/eqpRelation"
,
"method"
:
"post"
},
"eqpRelation-put"
:
{
"url"
:
"/api/v2/workStation/eqpRelation"
,
"method"
:
"put"
},
"workPositionId-post"
:
{
"workPositionId-post"
:
{
"url"
:
"/api/v2/workStation/equipmentRelation/{workPositionId}"
,
"url"
:
"/api/v2/workStation/equipmentRelation/{workPositionId}"
,
"method"
:
"post"
"method"
:
"post"
...
@@ -633,6 +669,10 @@
...
@@ -633,6 +669,10 @@
"url"
:
"/api/v2/workStation/pageEqpRelation"
,
"url"
:
"/api/v2/workStation/pageEqpRelation"
,
"method"
:
"get"
"method"
:
"get"
},
},
"pageEquip-post"
:
{
"url"
:
"/api/v2/workStation/pageEquip"
,
"method"
:
"post"
},
"username-get"
:
{
"username-get"
:
{
"url"
:
"/api/v2/workStation/pdaUser/{username}"
,
"url"
:
"/api/v2/workStation/pdaUser/{username}"
,
"method"
:
"get"
"method"
:
"get"
...
@@ -702,6 +742,10 @@
...
@@ -702,6 +742,10 @@
"busNo-get"
:
{
"busNo-get"
:
{
"url"
:
"/area/detail/busNo"
,
"url"
:
"/area/detail/busNo"
,
"method"
:
"get"
"method"
:
"get"
},
"test-get"
:
{
"url"
:
"/area/test"
,
"method"
:
"get"
}
}
},
},
"report-controller"
:
{
"report-controller"
:
{
...
@@ -725,6 +769,10 @@
...
@@ -725,6 +769,10 @@
"url"
:
"/area/oeuTrend"
,
"url"
:
"/area/oeuTrend"
,
"method"
:
"get"
"method"
:
"get"
},
},
"runTimeList-get"
:
{
"url"
:
"/area/runTimeList"
,
"method"
:
"get"
},
"stateTrend-get"
:
{
"stateTrend-get"
:
{
"url"
:
"/area/stateTrend"
,
"url"
:
"/area/stateTrend"
,
"method"
:
"get"
"method"
:
"get"
...
...
src/views/Basic/DeviceBasic/list.vue
View file @
a739ed31
...
@@ -226,19 +226,19 @@
...
@@ -226,19 +226,19 @@
},
},
// 获取设备分类数据
// 获取设备分类数据
getSeviceSortSelectData
()
{
getSeviceSortSelectData
()
{
let
queryParams
=
{
dicCode
:
'DEVICE_SORT'
,
hash
:
'dicCode'
}
;
let
queryParams
=
{
dicCode
:
'DEVICE_SORT'
,
hash
:
'dicCode'
}
this
.
$fetch
(
'dict-item-controller/dicCode-get'
,
queryParams
).
then
(
response
=>
{
this
.
$fetch
(
'dict-item-controller/dicCode-get'
,
queryParams
).
then
(
response
=>
{
this
.
equipTypeData
=
_
.
cloneDeep
(
response
)
;
this
.
equipTypeData
=
_
.
cloneDeep
(
response
)
});
});
}
}
},
},
mounted
()
{
mounted
()
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
tableConfig
.
height
=
document
.
querySelector
(
'.page-pack'
).
offsetHeight
-
210
;
this
.
tableConfig
.
height
=
document
.
querySelector
(
'.page-pack'
).
offsetHeight
-
210
// 获取设备分类数据
// 获取设备分类数据
this
.
getSeviceSortSelectData
()
;
this
.
getSeviceSortSelectData
()
// 获取表格数据
// 获取表格数据
this
.
getTableList
()
;
this
.
getTableList
()
},
0
)
},
0
)
}
}
}
}
...
...
src/views/CenterControl/components/MachineFailureTrend.vue
View file @
a739ed31
...
@@ -95,7 +95,6 @@
...
@@ -95,7 +95,6 @@
lineStyle
:
{
lineStyle
:
{
color
:
'#234eb6'
color
:
'#234eb6'
}
}
},
},
axisLine
:
{
axisLine
:
{
lineStyle
:
{
lineStyle
:
{
...
@@ -199,4 +198,4 @@
...
@@ -199,4 +198,4 @@
width
:
607px
;
width
:
607px
;
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/CenterControl/components/MachineStateTrend.vue
View file @
a739ed31
This diff is collapsed.
Click to expand it.
src/views/CenterControl/components/MachineWarning.vue
View file @
a739ed31
...
@@ -21,8 +21,12 @@
...
@@ -21,8 +21,12 @@
<span>
描述
</span>
<span>
描述
</span>
</div>
</div>
</div>
</div>
<div
class=
"table-body"
>
<VueSeamlessScroll
<div
v-if=
"warningList.length > 0"
:data=
"warningList"
:class-option=
"optionSingleHeight"
class=
"table-body"
>
<div
class=
"tr"
class=
"tr"
v-for=
"(item, index) in warningList"
v-for=
"(item, index) in warningList"
:key=
"index"
>
:key=
"index"
>
...
@@ -30,15 +34,19 @@
...
@@ -30,15 +34,19 @@
<div
class=
"th-machine"
>
{{
item
.
equipName
}}
</div>
<div
class=
"th-machine"
>
{{
item
.
equipName
}}
</div>
<div
class=
"th-pencil"
>
{{
item
.
info
}}
</div>
<div
class=
"th-pencil"
>
{{
item
.
info
}}
</div>
</div>
</div>
</
div
>
</
VueSeamlessScroll
>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Moment
from
'moment'
import
Moment
from
'moment'
import
VueSeamlessScroll
from
'vue-seamless-scroll'
export
default
{
export
default
{
components
:
{
VueSeamlessScroll
},
props
:
{
props
:
{
pollingRequestTime
:
{}
pollingRequestTime
:
{}
},
},
...
@@ -50,6 +58,13 @@
...
@@ -50,6 +58,13 @@
this
.
judgeTime
()
this
.
judgeTime
()
}
}
},
},
computed
:
{
optionSingleHeight
()
{
return
{
singleHeight
:
50
}
}
},
data
()
{
data
()
{
return
{
return
{
// 报警信息列表
// 报警信息列表
...
@@ -64,7 +79,7 @@
...
@@ -64,7 +79,7 @@
// 请求设备异常列表
// 请求设备异常列表
getMachineWarningList
()
{
getMachineWarningList
()
{
this
.
$fetch
(
'report-controller/warningList-get'
,
{}).
then
(
response
=>
{
this
.
$fetch
(
'report-controller/warningList-get'
,
{}).
then
(
response
=>
{
this
.
warningList
=
_
.
cloneDeep
(
response
.
slice
(
0
,
17
)
)
this
.
warningList
=
_
.
cloneDeep
(
response
)
})
})
},
},
// 时间处理
// 时间处理
...
@@ -103,16 +118,16 @@
...
@@ -103,16 +118,16 @@
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.machine-warning
{
.machine-warning
{
width
:
534px
;
width
:
534px
;
height
:
881
px
;
height
:
414
px
;
position
:
absolute
;
position
:
absolute
;
top
:
166px
;
top
:
166px
;
right
:
57px
;
right
:
57px
;
overflow
:
hidden
;
overflow
:
hidden
;
/*background-color: rgba(1,1,1,0.5);*/
.time-warning-pack
{
.time-warning-pack
{
width
:
534px
;
width
:
534px
;
height
:
60px
;
height
:
60px
;
// background-color: rgba(1,1,1,0.5);
margin-top
:
27px
;
margin-top
:
27px
;
line-height
:
60px
;
line-height
:
60px
;
.time
{
.time
{
...
@@ -139,9 +154,10 @@
...
@@ -139,9 +154,10 @@
.warning-message-pack
{
.warning-message-pack
{
margin-top
:
10px
;
margin-top
:
10px
;
width
:
474px
;
width
:
474px
;
height
:
76
7px
;
height
:
31
7px
;
padding
:
0
30px
;
padding
:
0
30px
;
// background-color: rgba(1,1,1,0.5);
// background-color: rgba(1,1,1,0.5);
overflow
:
hidden
;
.table-header
{
.table-header
{
height
:
40px
;
height
:
40px
;
color
:
#00b4ff
;
color
:
#00b4ff
;
...
@@ -168,11 +184,14 @@
...
@@ -168,11 +184,14 @@
}
}
}
}
.table-body
{
.table-body
{
height
:
257px
;
overflow
:
hidden
;
.tr
{
.tr
{
overflow
:
hidden
;
div
{
div
{
float
:
left
;
float
:
left
;
height
:
4
0px
;
height
:
5
0px
;
line-height
:
4
0px
;
line-height
:
5
0px
;
font-weight
:
bold
;
font-weight
:
bold
;
font-size
:
18px
;
font-size
:
18px
;
color
:
#3facd9
;
color
:
#3facd9
;
...
@@ -196,4 +215,4 @@
...
@@ -196,4 +215,4 @@
}
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/CenterControl/index.vue
View file @
a739ed31
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<MachineOperatingStatus
<MachineOperatingStatus
:pollingRequestTime=
"pollingRequestTime"
>
:pollingRequestTime=
"pollingRequestTime"
>
</MachineOperatingStatus>
</MachineOperatingStatus>
<!-- 设备
状态趋势图
-->
<!-- 设备
累计运行时间统计
-->
<MachineStateTrend
<MachineStateTrend
:pollingRequestTime=
"pollingRequestTime"
>
:pollingRequestTime=
"pollingRequestTime"
>
</MachineStateTrend>
</MachineStateTrend>
...
...
src/views/Led/Station/stationSix.vue
View file @
a739ed31
...
@@ -130,8 +130,8 @@
...
@@ -130,8 +130,8 @@
//获取工位实时信息
//获取工位实时信息
getData
()
{
getData
()
{
this
.
$fetch
(
'led-controller/ledInfo-get'
,
{
ledNo
:
'6'
}
).
then
(
res
=>
{
this
.
$fetch
(
'led-controller/ledInfo-get'
,
{
ledNo
:
'6'
}
).
then
(
res
=>
{
this
.
timmingData
=
_
.
cloneDeep
(
res
)
;
this
.
timmingData
=
_
.
cloneDeep
(
res
)
this
.
roomInfoList
=
_
.
cloneDeep
(
res
.
roomInfoList
)
;
this
.
roomInfoList
=
_
.
cloneDeep
(
res
.
roomInfoList
)
this
.
warningList
=
_
.
cloneDeep
(
res
.
warningList
)
this
.
warningList
=
_
.
cloneDeep
(
res
.
warningList
)
for
(
let
item
of
this
.
roomInfoList
)
{
for
(
let
item
of
this
.
roomInfoList
)
{
console
.
log
(
'item'
,
item
)
console
.
log
(
'item'
,
item
)
...
...
src/views/Workshop/Parts/components/ProgramIssued.vue
View file @
a739ed31
...
@@ -241,6 +241,6 @@
...
@@ -241,6 +241,6 @@
}
}
</
script
>
</
script
>
<
style
>
<
style
lang=
"scss"
scoped
>
</
style
>
</
style
>
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