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
2743b7d6
Commit
2743b7d6
authored
Oct 22, 2019
by
车宾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(led工位级大屏):时间,轮播功能。功能联调(10%)
parent
4bda7ea6
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
111 additions
and
27 deletions
+111
-27
main.js
src/main.js
+3
-1
index.vue
src/views/CenterControl/index.vue
+14
-3
applyArtificial.vue
src/views/Led/Station/applyArtificial.vue
+23
-3
electrophoresis.vue
src/views/Led/Station/electrophoresis.vue
+50
-10
floatingCoatRobot.vue
src/views/Led/Station/floatingCoatRobot.vue
+4
-2
insulatingAnticorrosive.vue
src/views/Led/Station/insulatingAnticorrosive.vue
+5
-2
putty.vue
src/views/Led/Station/putty.vue
+4
-2
sprayDryingRoom.vue
src/views/Led/Station/sprayDryingRoom.vue
+4
-2
surfaceVarnish.vue
src/views/Led/Station/surfaceVarnish.vue
+4
-2
No files found.
src/main.js
View file @
2743b7d6
...
...
@@ -22,7 +22,8 @@ import formValidator from '@/utils/formValidator/index';
// if (process.env.NODE_ENV === 'development') { require('./mock') } // mock
import
Authority
from
'../src/utils/authority'
;
import
vueSwiper
from
'vue-awesome-swiper'
import
'swiper/dist/css/swiper.css'
//引入样式
Vue
.
prototype
.
_
=
lodash
;
Vue
.
prototype
.
formValidator
=
formValidator
;
Vue
.
config
.
productionTip
=
false
...
...
@@ -40,6 +41,7 @@ new Vue({
router
,
store
,
i18n
,
vueSwiper
,
render
:
h
=>
h
(
App
)
})
src/views/CenterControl/index.vue
View file @
2743b7d6
<
template
>
<div
class=
"page-pack"
>
<div
class=
"container"
>
<div
class=
"container"
:style=
"
{transform: zoom}" style="transform-origin: 0 0"
>
<!-- 设备利用率 -->
<MachineUtilizationRate></MachineUtilizationRate>
<!-- 设备故障率 -->
...
...
@@ -39,7 +39,18 @@
MachineWarning
},
data
()
{
return
{}
return
{
zoom
:
'scale(0)'
,
width
:
0
,
height
:
0
}
},
mounted
()
{
this
.
width
=
document
.
body
.
offsetWidth
this
.
height
=
document
.
body
.
offsetHeight
this
.
zoom
=
`scale(
${
this
.
width
/
2550
}
,
${
this
.
height
/
1140
}
)`
console
.
log
(
this
.
zoom
)
console
.
log
(
this
.
width
)
}
}
</
script
>
...
...
@@ -58,4 +69,4 @@
position
:
relative
;
}
}
</
style
>
\ No newline at end of file
</
style
>
src/views/Led/Station/applyArtificial.vue
View file @
2743b7d6
<
template
>
<div
class=
"page-pack"
>
<div
class=
"page-pack"
:style=
"
{transform: zoom}" style="transform-origin: 0 0"
>
<div
class=
"title-pack"
>
中涂人工
</div>
<div
class=
"table-pack"
>
<div
class=
"tr"
>
...
...
@@ -16,18 +16,37 @@
</div>
<div
class=
"info"
>
设备报警信息:
<div>
</div>
<swiper
:options=
"swiperOption"
ref=
"mySwiper"
@
someSwiperEvent=
"callback"
>
<swiper-slide>
I'mSlide14455555555555 58866666666666666555589
</swiper-slide>
<swiper-slide>
I'55589
</swiper-slide>
<swiper-slide>
I'mSlide144556666666666666555589
</swiper-slide>
</swiper>
</div>
<div
class=
"time"
>
时间:
2019-08-29 09:00:00
</div>
<div
class=
"time"
>
时间:
{{
timeNow
}}
</div>
</div>
</div>
</
template
>
<
script
>
import
{
swiper
,
swiperSlide
}
from
'vue-awesome-swiper'
export
default
{
components
:
{
swiper
,
swiperSlide
},
data
()
{
return
{
width
:
0
,
height
:
0
height
:
0
,
zoom
:
'scale(0)'
,
timeNow
:
''
,
timer
:
''
,
swiperOption
:
{
autoplay
:
{
delay
:
5000
}
}
}
},
methods
:
{},
...
...
@@ -35,6 +54,7 @@
setTimeout
(()
=>
{
this
.
width
=
document
.
body
.
offsetWidth
this
.
height
=
document
.
body
.
offsetHeight
this
.
zoom
=
`scale(
${
this
.
width
/
1710
}
)`
},
3000
)
}
}
...
...
src/views/Led/Station/electrophoresis.vue
View file @
2743b7d6
...
...
@@ -12,37 +12,77 @@
</div>
<div
class=
"info"
>
设备报警信息:
<div>
</div>
<swiper
:options=
"swiperOption"
ref=
"mySwiper"
>
<swiper-slide>
I'mSlide14455555555555 58866666666666666555589
</swiper-slide>
<swiper-slide>
I'55589
</swiper-slide>
<swiper-slide>
I'mSlide144556666666666666555589
</swiper-slide>
</swiper>
</div>
<div
class=
"time"
>
时间:
2019-08-29 09:00:00
</div>
<div
class=
"time"
>
时间:
{{
formatTime
(
timeNow
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</div>
</div>
</div>
</
template
>
<
script
>
import
{
swiper
,
swiperSlide
}
from
'vue-awesome-swiper'
import
Moment
from
'moment'
export
default
{
// components: {
// Empty,
// ProjectList,
// swiper,
// swiperSlide
// },
components
:
{
swiper
,
swiperSlide
},
data
()
{
return
{
width
:
0
,
height
:
0
,
zoom
:
'scale(0)'
zoom
:
'scale(0)'
,
timeNow
:
''
,
timer
:
''
,
// minLength: null,
// minutes: null,
// secondsLength: null,
// seconds: null,
swiperOption
:
{
autoplay
:
{
delay
:
5000
}
}
}
},
methods
:
{
// 时间日期格式化
formatTime
(
time
,
format
)
{
if
(
time
!==
null
&&
time
!==
''
)
{
return
Moment
(
time
).
format
(
format
)
}
else
{
return
'暂无'
}
},
getData
()
{
this
.
$fetch
(
'led-controller/ledInfo-get'
,
{
ledNo
:
'1'
}).
then
(
res
=>
{
console
.
log
(
res
)
})
}
},
methods
:
{},
mounted
()
{
this
.
getData
()
let
vm
=
this
this
.
timer
=
setInterval
(()
=>
{
vm
.
timeNow
=
this
.
formatTime
()
// console.log(this.timeNow)
},
1000
)
setTimeout
(()
=>
{
this
.
width
=
document
.
body
.
offsetWidth
this
.
height
=
document
.
body
.
offsetHeight
this
.
zoom
=
`scale(
${
this
.
width
/
1710
}
)`
console
.
log
(
this
.
zoom
)
},
0
)
},
beforeDestroy
()
{
if
(
this
.
timer
)
{
clearInterval
(
this
.
timer
);
//在Vue实例销毁前,清除定时器
}
}
}
</
script
>
...
...
src/views/Led/Station/floatingCoatRobot.vue
View file @
2743b7d6
<
template
>
<div
class=
"page-pack"
>
<div
class=
"page-pack"
:style=
"
{transform: zoom}" style="transform-origin: 0 0"
>
<div
class=
"title-pack"
>
中涂机器人
</div>
<div
class=
"table-pack"
>
<div
class=
"tr"
>
...
...
@@ -27,7 +27,8 @@
data
()
{
return
{
width
:
0
,
height
:
0
height
:
0
,
zoom
:
'scale(0)'
}
},
methods
:
{},
...
...
@@ -35,6 +36,7 @@
setTimeout
(()
=>
{
this
.
width
=
document
.
body
.
offsetWidth
this
.
height
=
document
.
body
.
offsetHeight
this
.
zoom
=
`scale(
${
this
.
width
/
1710
}
)`
},
3000
)
}
}
...
...
src/views/Led/Station/insulatingAnticorrosive.vue
View file @
2743b7d6
<
template
>
<div
class=
"page-pack"
>
<div
class=
"page-pack"
:style=
"
{transform: zoom}" style="transform-origin: 0 0;"
>
<div
class=
"title-pack"
>
隔热防腐
</div>
<div
class=
"table-pack"
>
<div
class=
"tr"
>
...
...
@@ -23,7 +23,8 @@
data
()
{
return
{
width
:
0
,
height
:
0
height
:
0
,
zoom
:
'scale(0)'
}
},
methods
:
{},
...
...
@@ -31,6 +32,8 @@
setTimeout
(()
=>
{
this
.
width
=
document
.
body
.
offsetWidth
this
.
height
=
document
.
body
.
offsetHeight
this
.
zoom
=
`scale(
${
this
.
width
/
1710
}
)`
console
.
log
(
`scale(
${
this
.
width
/
1710
}
)`
)
},
3000
)
}
}
...
...
src/views/Led/Station/putty.vue
View file @
2743b7d6
<
template
>
<div
class=
"page-pack"
>
<div
class=
"page-pack"
:style=
"
{transform: zoom}" style="transform-origin: 0 0"
>
<div
class=
"title-pack"
>
腻子
</div>
<div
class=
"table-pack"
>
<div
class=
"tr"
>
...
...
@@ -23,7 +23,8 @@
data
()
{
return
{
width
:
0
,
height
:
0
height
:
0
,
zoom
:
'scale(0)'
}
},
methods
:
{},
...
...
@@ -31,6 +32,7 @@
setTimeout
(()
=>
{
this
.
width
=
document
.
body
.
offsetWidth
this
.
height
=
document
.
body
.
offsetHeight
this
.
zoom
=
`scale(
${
this
.
width
/
1710
}
)`
},
3000
)
}
}
...
...
src/views/Led/Station/sprayDryingRoom.vue
View file @
2743b7d6
<
template
>
<div
class=
"page-pack"
>
<div
class=
"page-pack"
:style=
"
{transform: zoom}" style="transform-origin: 0 0"
>
<div
class=
"title-pack"
>
喷漆室、烘干室
</div>
<div
class=
"table-pack"
>
<div
class=
"tr clear-float"
>
...
...
@@ -87,7 +87,8 @@
data
()
{
return
{
width
:
0
,
height
:
0
height
:
0
,
zoom
:
'scale(0)'
}
},
methods
:
{},
...
...
@@ -95,6 +96,7 @@
setTimeout
(()
=>
{
this
.
width
=
document
.
body
.
offsetWidth
this
.
height
=
document
.
body
.
offsetHeight
this
.
zoom
=
`scale(
${
this
.
width
/
1710
}
)`
},
3000
)
}
}
...
...
src/views/Led/Station/surfaceVarnish.vue
View file @
2743b7d6
<
template
>
<div
class=
"page-pack"
>
<div
class=
"page-pack"
:style=
"
{transform: zoom}" style="transform-origin: 0 0"
>
<div
class=
"title-pack"
>
面/清漆
</div>
<div
class=
"table-pack"
>
<div
class=
"tr"
>
...
...
@@ -23,7 +23,8 @@
data
()
{
return
{
width
:
0
,
height
:
0
height
:
0
,
zoom
:
'scale(0)'
}
},
methods
:
{},
...
...
@@ -31,6 +32,7 @@
setTimeout
(()
=>
{
this
.
width
=
document
.
body
.
offsetWidth
this
.
height
=
document
.
body
.
offsetHeight
this
.
zoom
=
`scale(
${
this
.
width
/
1710
}
)`
},
3000
)
}
}
...
...
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