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
e5d27aac
Commit
e5d27aac
authored
Dec 20, 2019
by
李志鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fea(led):车间、工位级LED屏幕新增服务器时间校准功能
parent
d36fc393
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
79 additions
and
27 deletions
+79
-27
stationFive.vue
src/views/Led/Station/stationFive.vue
+1
-1
stationFour.vue
src/views/Led/Station/stationFour.vue
+12
-4
stationOne.vue
src/views/Led/Station/stationOne.vue
+12
-4
stationSeven.vue
src/views/Led/Station/stationSeven.vue
+1
-1
stationSix.vue
src/views/Led/Station/stationSix.vue
+1
-1
stationThree.vue
src/views/Led/Station/stationThree.vue
+12
-4
stationTwo.vue
src/views/Led/Station/stationTwo.vue
+12
-4
voc.vue
src/views/Led/Station/voc.vue
+11
-4
paintingWorkShop.vue
src/views/Led/WorkShop/paintingWorkShop.vue
+17
-4
No files found.
src/views/Led/Station/stationFive.vue
View file @
e5d27aac
...
...
@@ -136,7 +136,7 @@
// 实时时间
judgeTimeNow
()
{
this
.
$fetch
(
'led-controller/currentTime-get'
).
then
(
res
=>
{
let
resolveCurrentTime
=
new
Date
(
_
.
cloneDeep
(
res
)
)
let
resolveCurrentTime
=
_
.
cloneDeep
(
res
)
this
.
timeNow
=
Moment
(
resolveCurrentTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
timer
=
setInterval
(()
=>
{
let
resolveStamp
=
new
Date
(
this
.
timeNow
).
getTime
()
+
1000
...
...
src/views/Led/Station/stationFour.vue
View file @
e5d27aac
...
...
@@ -101,10 +101,14 @@
methods
:
{
// 实时时间
judgeTimeNow
()
{
this
.
timeNow
=
Moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
timer
=
setInterval
(()
=>
{
this
.
timeNow
=
Moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
},
1000
)
this
.
$fetch
(
'led-controller/currentTime-get'
).
then
(
res
=>
{
let
resolveCurrentTime
=
_
.
cloneDeep
(
res
)
this
.
timeNow
=
Moment
(
resolveCurrentTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
timer
=
setInterval
(()
=>
{
let
resolveStamp
=
new
Date
(
this
.
timeNow
).
getTime
()
+
1000
this
.
timeNow
=
Moment
(
resolveStamp
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
},
1000
)
})
},
//获取工位实时信息
getData
()
{
...
...
@@ -121,7 +125,11 @@
// 实时时间
this
.
judgeTimeNow
()
this
.
dataTimer
=
setInterval
(()
=>
{
//获取工位实时信息
this
.
getData
()
// 实时时间
this
.
judgeTimeNow
()
clearInterval
(
this
.
timer
)
},
60000
)
this
.
width
=
document
.
body
.
offsetWidth
this
.
height
=
document
.
body
.
offsetHeight
...
...
src/views/Led/Station/stationOne.vue
View file @
e5d27aac
...
...
@@ -100,10 +100,14 @@
methods
:
{
// 实时时间
judgeTimeNow
()
{
this
.
timeNow
=
Moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
timer
=
setInterval
(()
=>
{
this
.
timeNow
=
Moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
},
1000
)
this
.
$fetch
(
'led-controller/currentTime-get'
).
then
(
res
=>
{
let
resolveCurrentTime
=
_
.
cloneDeep
(
res
)
this
.
timeNow
=
Moment
(
resolveCurrentTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
timer
=
setInterval
(()
=>
{
let
resolveStamp
=
new
Date
(
this
.
timeNow
).
getTime
()
+
1000
this
.
timeNow
=
Moment
(
resolveStamp
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
},
1000
)
})
},
//获取工位实时信息
getData
()
{
...
...
@@ -120,7 +124,11 @@
// 实时时间
this
.
judgeTimeNow
()
this
.
dataTimer
=
setInterval
(()
=>
{
//获取工位实时信息
this
.
getData
()
// 实时时间
this
.
judgeTimeNow
()
clearInterval
(
this
.
timer
)
},
60000
)
this
.
width
=
document
.
body
.
offsetWidth
this
.
height
=
document
.
body
.
offsetHeight
...
...
src/views/Led/Station/stationSeven.vue
View file @
e5d27aac
...
...
@@ -136,7 +136,7 @@
// 实时时间
judgeTimeNow
()
{
this
.
$fetch
(
'led-controller/currentTime-get'
).
then
(
res
=>
{
let
resolveCurrentTime
=
new
Date
(
_
.
cloneDeep
(
res
)
)
let
resolveCurrentTime
=
_
.
cloneDeep
(
res
)
this
.
timeNow
=
Moment
(
resolveCurrentTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
timer
=
setInterval
(()
=>
{
let
resolveStamp
=
new
Date
(
this
.
timeNow
).
getTime
()
+
1000
...
...
src/views/Led/Station/stationSix.vue
View file @
e5d27aac
...
...
@@ -136,7 +136,7 @@
// 实时时间
judgeTimeNow
()
{
this
.
$fetch
(
'led-controller/currentTime-get'
).
then
(
res
=>
{
let
resolveCurrentTime
=
new
Date
(
_
.
cloneDeep
(
res
)
)
let
resolveCurrentTime
=
_
.
cloneDeep
(
res
)
this
.
timeNow
=
Moment
(
resolveCurrentTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
timer
=
setInterval
(()
=>
{
let
resolveStamp
=
new
Date
(
this
.
timeNow
).
getTime
()
+
1000
...
...
src/views/Led/Station/stationThree.vue
View file @
e5d27aac
...
...
@@ -100,10 +100,14 @@
methods
:
{
// 实时时间
judgeTimeNow
()
{
this
.
timeNow
=
Moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
timer
=
setInterval
(()
=>
{
this
.
timeNow
=
Moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
},
1000
)
this
.
$fetch
(
'led-controller/currentTime-get'
).
then
(
res
=>
{
let
resolveCurrentTime
=
_
.
cloneDeep
(
res
)
this
.
timeNow
=
Moment
(
resolveCurrentTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
timer
=
setInterval
(()
=>
{
let
resolveStamp
=
new
Date
(
this
.
timeNow
).
getTime
()
+
1000
this
.
timeNow
=
Moment
(
resolveStamp
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
},
1000
)
})
},
//获取工位实时信息
getData
()
{
...
...
@@ -120,7 +124,11 @@
// 实时时间
this
.
judgeTimeNow
()
this
.
dataTimer
=
setInterval
(()
=>
{
//获取工位实时信息
this
.
getData
()
// 实时时间
this
.
judgeTimeNow
()
clearInterval
(
this
.
timer
)
},
60000
)
this
.
width
=
document
.
body
.
offsetWidth
this
.
height
=
document
.
body
.
offsetHeight
...
...
src/views/Led/Station/stationTwo.vue
View file @
e5d27aac
...
...
@@ -108,10 +108,14 @@
},
// 实时时间
judgeTimeNow
()
{
this
.
timeNow
=
Moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
timer
=
setInterval
(()
=>
{
this
.
timeNow
=
Moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
},
1000
)
this
.
$fetch
(
'led-controller/currentTime-get'
).
then
(
res
=>
{
let
resolveCurrentTime
=
_
.
cloneDeep
(
res
)
this
.
timeNow
=
Moment
(
resolveCurrentTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
timer
=
setInterval
(()
=>
{
let
resolveStamp
=
new
Date
(
this
.
timeNow
).
getTime
()
+
1000
this
.
timeNow
=
Moment
(
resolveStamp
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
},
1000
)
})
}
},
mounted
()
{
...
...
@@ -121,7 +125,11 @@
// 实时时间
this
.
judgeTimeNow
()
this
.
dataTimer
=
setInterval
(()
=>
{
//获取工位实时信息
this
.
getData
()
// 实时时间
this
.
judgeTimeNow
()
clearInterval
(
this
.
timer
)
},
60000
)
this
.
width
=
document
.
body
.
offsetWidth
this
.
height
=
document
.
body
.
offsetHeight
...
...
src/views/Led/Station/voc.vue
View file @
e5d27aac
...
...
@@ -50,10 +50,14 @@
methods
:
{
// 计算实时时间
getTimeNow
()
{
this
.
timeNow
=
Moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
nowTimer
=
setInterval
(()
=>
{
this
.
timeNow
=
Moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
},
1000
)
this
.
$fetch
(
'led-controller/currentTime-get'
).
then
(
res
=>
{
let
resolveCurrentTime
=
_
.
cloneDeep
(
res
)
this
.
timeNow
=
Moment
(
resolveCurrentTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
nowTimer
=
setInterval
(()
=>
{
let
resolveStamp
=
new
Date
(
this
.
timeNow
).
getTime
()
+
1000
this
.
timeNow
=
Moment
(
resolveStamp
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
},
1000
)
})
},
// 获取VOC实时数据
getVOCRealData
()
{
...
...
@@ -75,6 +79,9 @@
this
.
dataTimer
=
setInterval
(()
=>
{
// 获取VOC实时数据
this
.
getVOCRealData
()
// 计算实时时间
this
.
getTimeNow
()
clearInterval
(
this
.
nowTimer
)
},
60000
)
},
0
)
},
...
...
src/views/Led/WorkShop/paintingWorkShop.vue
View file @
e5d27aac
...
...
@@ -64,6 +64,8 @@
timeNow
:
null
,
// Data轮询定时器
dataTimer
:
null
,
// 时间定时器
timer
:
null
,
// 当日进车数据
todayDataIN
:
null
,
// 当日出车数据
...
...
@@ -140,10 +142,14 @@
},
methods
:
{
judgeTimeNow
()
{
this
.
timeNow
=
Moment
().
format
(
'YYYY-MM-DD HH-MM-SS'
)
this
.
timer
=
setInterval
(()
=>
{
this
.
timeNow
=
Moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
},
1000
)
this
.
$fetch
(
'led-controller/currentTime-get'
).
then
(
res
=>
{
let
resolveCurrentTime
=
_
.
cloneDeep
(
res
)
this
.
timeNow
=
Moment
(
resolveCurrentTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
timer
=
setInterval
(()
=>
{
let
resolveStamp
=
new
Date
(
this
.
timeNow
).
getTime
()
+
1000
this
.
timeNow
=
Moment
(
resolveStamp
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
},
1000
)
})
},
getData
()
{
this
.
$fetch
(
'area-controller/statistics-get'
,
{}).
then
(
res
=>
{
...
...
@@ -227,11 +233,18 @@
// 每一分钟请求一次数据
this
.
dataTimer
=
setInterval
(()
=>
{
this
.
getData
()
// 实时时间
this
.
judgeTimeNow
()
clearInterval
(
this
.
timer
)
},
60000
)
this
.
width
=
document
.
body
.
offsetWidth
this
.
height
=
document
.
body
.
offsetHeight
// this.zoom = `scale(${this.width / 1710})`
},
0
)
},
beforeDestroy
()
{
clearInterval
(
this
.
timer
)
clearInterval
(
this
.
dataTimer
)
}
}
</
script
>
...
...
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