Commit d08ca234 authored by 李志鸣's avatar 李志鸣

fea(LED权限): 新增LED权限

parents 7fad61e5 5232448a
...@@ -15,7 +15,7 @@ module.exports = { ...@@ -15,7 +15,7 @@ module.exports = {
'/host': { '/host': {
target: 'http://10.100.172.150:9108', //设置你调用的接口域名和端口号 别忘了加http target: 'http://10.100.172.150:9108', //设置你调用的接口域名和端口号 别忘了加http
// target: 'http://192.168.43.244:8888', // 东伟服务器地址 // target: 'http://192.168.43.244:8888', // 东伟服务器地址
// target: 'http://192.168.0.199:8080', // 训浩服务器 // target: 'http://192.168.0.126:8080', // 训浩服务器
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/host': ''//这里理解成用‘/host’代替target里面的地址,后面组件中我们掉接口时直接用api代替 比如我要调用'http://40.00.100.100:3002/user/add',直接写‘/api/user/add’即可 '^/host': ''//这里理解成用‘/host’代替target里面的地址,后面组件中我们掉接口时直接用api代替 比如我要调用'http://40.00.100.100:3002/user/add',直接写‘/api/user/add’即可
......
[0408/142129.522:ERROR:http_transport_win.cc(276)] WinHttpSendRequest: 操作成功完成。 (0x0) [0408/142129.522:ERROR:http_transport_win.cc(276)] WinHttpSendRequest: 操作成功完成。 (0x0)
[0425/144329.683:ERROR:http_transport_win.cc(276)] WinHttpSendRequest: 操作成功完成。 (0x0) [0425/144329.683:ERROR:http_transport_win.cc(276)] WinHttpSendRequest: 操作成功完成。 (0x0)
[0514/182116.443:ERROR:http_transport_win.cc(276)] WinHttpSendRequest: 操作成功完成。 (0x0) [0514/182116.443:ERROR:http_transport_win.cc(276)] WinHttpSendRequest: 操作成功完成。 (0x0)
[1024/194707.205:ERROR:http_transport_win.cc(276)] WinHttpSendRequest: 操作成功完成。 (0x0)
...@@ -45,6 +45,7 @@ export default { ...@@ -45,6 +45,7 @@ export default {
StationFloatingCoatRobot: '中涂机器人', StationFloatingCoatRobot: '中涂机器人',
StationSurfaceVarnish: '面/清漆', StationSurfaceVarnish: '面/清漆',
StationSprayDryingRoom: '喷漆/烘干室', StationSprayDryingRoom: '喷漆/烘干室',
StationPaintingWorkShop: '涂装车间',
// 监控大屏 // 监控大屏
CenterControl: '监控大屏', CenterControl: '监控大屏',
CenterControlIndex: '监控大屏' CenterControlIndex: '监控大屏'
......
...@@ -18,7 +18,9 @@ const whiteList = [ ...@@ -18,7 +18,9 @@ const whiteList = [
'/led/stationApplyArtificial', '/led/stationApplyArtificial',
'/led/stationFloatingCoatRobot', '/led/stationFloatingCoatRobot',
'/led/stationSurfaceVarnish', '/led/stationSurfaceVarnish',
'/led/stationSprayDryingRoom' '/led/stationSprayDryingRoom',
'/led/stationPaintingWorkShop',
'/monitor/monitorIndex'
] ]
NProgress.configure({ NProgress.configure({
......
...@@ -24,7 +24,7 @@ import laboratoryRouter from './modules/laboratory' ...@@ -24,7 +24,7 @@ import laboratoryRouter from './modules/laboratory'
// 涂装生产计划 // 涂装生产计划
import productionPlanRouter from './modules/productionPlan' import productionPlanRouter from './modules/productionPlan'
// AVI大屏 // AVI大屏
import monitorRouter from './modules/monitor' // import monitorRouter from './modules/monitor'
// 监控大屏 // 监控大屏
import centerControl from './modules/centerControll' import centerControl from './modules/centerControll'
// 系统管理 // 系统管理
...@@ -65,7 +65,7 @@ export const constantRouterMap = [{ ...@@ -65,7 +65,7 @@ export const constantRouterMap = [{
{ {
path: 'stationInsulatingAnticorrosive', //隔热防腐 path: 'stationInsulatingAnticorrosive', //隔热防腐
component: () => import('@/views/Led/Station/insulatingAnticorrosive'), component: () => import('@/views/Led/Station/insulatingAnticorrosive'),
name: 'stationInsulatingAnticorrosive', name: 'StationInsulatingAnticorrosive',
meta: { title: 'stationInsulatingAnticorrosive', icon: 'template' } meta: { title: 'stationInsulatingAnticorrosive', icon: 'template' }
}, },
{ {
...@@ -97,6 +97,75 @@ export const constantRouterMap = [{ ...@@ -97,6 +97,75 @@ export const constantRouterMap = [{
component: () => import('@/views/Led/Station/sprayDryingRoom'), component: () => import('@/views/Led/Station/sprayDryingRoom'),
name: 'StationSprayDryingRoom', name: 'StationSprayDryingRoom',
meta: { title: 'StationSprayDryingRoom', icon: 'template' } meta: { title: 'StationSprayDryingRoom', icon: 'template' }
},
{
path: 'stationPaintingWorkShop', //涂装车间
component: () => import('@/views/Led/Station/paintingWorkShop'),
name: 'StationPaintingWorkShop',
meta: { title: 'StationPaintingWorkShop', icon: 'template' }
}
]
},
{
path: '/monitor',
component: () => import('@/views/Layout/lsd'),
redirect: '/monitor/index',
meta: { title: 'Monitor', icon: 'kanban', openNewWindow: true },
children: [
{
path: 'monitorIndex',
component: () => import('@/views/Monitor/index'),
name: 'MonitorIndex',
meta: { title: 'MonitorIndex', icon: 'kanban', mark: '/Monitor/index' }
},
{
path: 'monitorPutty',
component: () => import('@/views/Monitor/components/Putty'),
name: 'MonitorPutty',
meta: { title: 'MonitorPutty', icon: 'kanban' },
hidden: true
},
{
path: 'monitorMiddleCoat',
component: () => import('@/views/Monitor/components/MiddleCoat'),
name: 'MonitorMiddleCoat',
meta: { title: 'MonitorMiddleCoat', icon: 'kanban' },
hidden: true
},
{
path: 'monitorComplexionPaint',
component: () => import('@/views/Monitor/components/ComplexionPaint'),
name: 'MonitorComplexionPaint',
meta: { title: 'MonitorComplexionPaint', icon: 'kanban' },
hidden: true
},
{
path: 'monitorElectrophoresis',
component: () => import('@/views/Monitor/components/Electrophoresis'),
name: 'MonitorElectrophoresis',
meta: { title: 'MonitorElectrophoresis', icon: 'kanban' },
hidden: true
},
{
path: 'monitorFinishedCar',
component: () => import('@/views/Monitor/components/FinishedCar'),
name: 'MonitorFinishedCar',
meta: { title: 'MonitorFinishedCar', icon: 'kanban' },
hidden: true
},
{
path: 'monitorSealedAnticorrosion',
component: () => import('@/views/Monitor/components/SealedAnticorrosion'),
name: 'MonitorSealedAnticorrosion',
meta: { title: 'MonitorSealedAnticorrosion', icon: 'kanban' },
hidden: true
},
{
path: 'monitorSheetMetalCar',
component: () => import('@/views/Monitor/components/SheetMetalCar'),
name: 'MonitorSheetMetalCar',
mate: { title: 'MonitorSheetMetalCar', icon: 'kanban' },
hidden: true
} }
] ]
}] }]
......
...@@ -18,13 +18,13 @@ export default { ...@@ -18,13 +18,13 @@ export default {
path: 'deviceBasic', path: 'deviceBasic',
component: () => import('@/views/Basic/DeviceBasic/list'), component: () => import('@/views/Basic/DeviceBasic/list'),
name: 'DeviceBasic', name: 'DeviceBasic',
meta: {title: 'DeviceBasic', icon: 'document', noCache: false} meta: {title: 'DeviceBasic', icon: 'document', noCache: false, mark: '/Basic/DeviceBasic/list'}
}, },
{ {
path: 'laneBasic', path: 'laneBasic',
component: () => import('@/views/Basic/LaneBasic/list'), component: () => import('@/views/Basic/LaneBasic/list'),
name: 'LaneBasic', name: 'LaneBasic',
meta: {title: 'LaneBasic', icon: 'document', noCache: false} meta: {title: 'LaneBasic', icon: 'document', noCache: false, mark: '/Basic/LaneBasic/list'}
} }
] ]
} }
...@@ -10,7 +10,7 @@ export default { ...@@ -10,7 +10,7 @@ export default {
path: 'index', path: 'index',
component: () => import('@/views/CenterControl/index'), component: () => import('@/views/CenterControl/index'),
name: 'CenterControlIndex', name: 'CenterControlIndex',
meta: { title: 'CenterControlIndex', icon: 'template' } meta: { title: 'CenterControlIndex', icon: 'template', mark: '/CenterControl/index' }
} }
] ]
} }
...@@ -12,13 +12,13 @@ export default { ...@@ -12,13 +12,13 @@ export default {
path: 'deviceRunningTime', path: 'deviceRunningTime',
component: () => import('@/views/DeviceRunning/DeviceRunningTime/list'), component: () => import('@/views/DeviceRunning/DeviceRunningTime/list'),
name: 'DeviceRunningTime', name: 'DeviceRunningTime',
meta: { title: 'DeviceRunningTime', icon: 'repairApplication', noCache: false } meta: { title: 'DeviceRunningTime', icon: 'repairApplication', noCache: false, mark: '/DeviceRunning/DeviceRunningTime/list' }
}, },
{ {
path: 'deviceFaultRecord', path: 'deviceFaultRecord',
component: () => import('@/views/DeviceRunning/DeviceFaultRecord/list'), component: () => import('@/views/DeviceRunning/DeviceFaultRecord/list'),
name: 'DeviceFaultRecord', name: 'DeviceFaultRecord',
meta: { title: 'DeviceFaultRecord', icon: 'repairApplication', noCache: false } meta: { title: 'DeviceFaultRecord', icon: 'repairApplication', noCache: false, mark: '/DeviceRunning/DeviceFaultRecord/list' }
} }
] ]
} }
...@@ -9,19 +9,19 @@ export default { ...@@ -9,19 +9,19 @@ export default {
path: 'pickling', path: 'pickling',
component: () => import('@/views/Laboratory/Pickling/list'), component: () => import('@/views/Laboratory/Pickling/list'),
name: 'Pickling', name: 'Pickling',
meta: { title: 'Pickling', icon: 'deal', noCache: false } meta: { title: 'Pickling', icon: 'template', noCache: false, mark: '/Laboratory/Pickling/list' }
}, },
{ {
path: 'electrophoresisTank', path: 'electrophoresisTank',
component: () => import('@/views/Laboratory/ElectrophoresisTank/list'), component: () => import('@/views/Laboratory/ElectrophoresisTank/list'),
name: 'ElectrophoresisTank', name: 'ElectrophoresisTank',
meta: { title: 'ElectrophoresisTank', icon: 'deal', noCache: false } meta: { title: 'ElectrophoresisTank', icon: 'template', noCache: false, mark: '/Laboratory/ElectrophoresisTank/list' }
}, },
{ {
path: 'pretreatment', path: 'pretreatment',
component: () => import('@/views/Laboratory/Pretreatment/list'), component: () => import('@/views/Laboratory/Pretreatment/list'),
name: 'Pretreatment', name: 'Pretreatment',
meta: { title: 'Pretreatment', icon: 'deal', noCache: false } meta: { title: 'Pretreatment', icon: 'template', noCache: false, mark: '/Laboratory/Pretreatment/list' }
} }
] ]
} }
...@@ -11,7 +11,7 @@ export default { ...@@ -11,7 +11,7 @@ export default {
path: 'monitorIndex', path: 'monitorIndex',
component: () => import('@/views/Monitor/index'), component: () => import('@/views/Monitor/index'),
name: 'MonitorIndex', name: 'MonitorIndex',
meta: { title: 'MonitorIndex', icon: 'kanban' } meta: { title: 'MonitorIndex', icon: 'kanban', mark: '/Monitor/index' }
}, },
{ {
path: 'monitorPutty', path: 'monitorPutty',
......
...@@ -12,37 +12,37 @@ export default { ...@@ -12,37 +12,37 @@ export default {
path: 'parts', path: 'parts',
component: () => import('@/views/Workshop/Parts/list'), component: () => import('@/views/Workshop/Parts/list'),
name: 'Parts', name: 'Parts',
meta: { title: 'Parts', icon: 'wareHouse', noCache: false } meta: { title: 'Parts', icon: 'wareHouse', noCache: false, mark: '/Workshop/Parts/list' }
}, },
{ {
path: 'welding', path: 'welding',
component: () => import('@/views/Workshop/Welding/list'), component: () => import('@/views/Workshop/Welding/list'),
name: 'Welding', name: 'Welding',
meta: { title: 'Welding', icon: 'wareHouse', noCache: false } meta: { title: 'Welding', icon: 'wareHouse', noCache: false, mark: '/Workshop/Welding/list' }
}, },
{ {
path: 'painting', path: 'painting',
component: () => import('@/views/Workshop/Painting/list'), component: () => import('@/views/Workshop/Painting/list'),
name: 'Painting', name: 'Painting',
meta: { title: 'Painting', icon: 'wareHouse', noCache: false } meta: { title: 'Painting', icon: 'wareHouse', noCache: false, mark: '/Workshop/Painting/list' }
}, },
{ {
path: 'chassis', path: 'chassis',
component: () => import('@/views/Workshop/Chassis/list'), component: () => import('@/views/Workshop/Chassis/list'),
name: 'Chassis', name: 'Chassis',
meta: { title: 'Chassis', icon: 'wareHouse', noCache: false } meta: { title: 'Chassis', icon: 'wareHouse', noCache: false, mark: '/Workshop/Chassis/list' }
}, },
{ {
path: 'final', path: 'final',
component: () => import('@/views/Workshop/Final/list'), component: () => import('@/views/Workshop/Final/list'),
name: 'Final', name: 'Final',
meta: { title: 'Final', icon: 'wareHouse', noCache: false } meta: { title: 'Final', icon: 'wareHouse', noCache: false, mark: '/Workshop/Final/list' }
}, },
{ {
path: 'trial', path: 'trial',
component: () => import('@/views/Workshop/Trial/list'), component: () => import('@/views/Workshop/Trial/list'),
name: 'Trial', name: 'Trial',
meta: { title: 'Trial', icon: 'wareHouse', noCache: false } meta: { title: 'Trial', icon: 'wareHouse', noCache: false, mark: '/Workshop/Trial/list' }
} }
] ]
} }
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
import MachineWarning from './components/MachineWarning' import MachineWarning from './components/MachineWarning'
export default { export default {
name: 'CenterControl',
components: { components: {
MachineUtilizationRate, MachineUtilizationRate,
MachineFailureRate, MachineFailureRate,
......
<template> <template>
<div class="page-pack" :style="{transform: zoom}" style="transform-origin: 0 0"> <div class="container">
<div class="page-pack" :style="{transform: zoom}" style="transform-origin: 0 0">
<div class="title-pack">{{timmingData.name}}</div> <div class="title-pack">{{timmingData.name}}</div>
<div class="table-pack"> <div class="table-pack">
<div class="tr"> <div class="tr">
...@@ -17,15 +18,17 @@ ...@@ -17,15 +18,17 @@
<swiper-slide v-for="(item, index) in warningList" :key="index">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{warningList[index].name}}{{warningList[index].info}}</swiper-slide> <swiper-slide v-for="(item, index) in warningList" :key="index">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{warningList[index].name}}{{warningList[index].info}}</swiper-slide>
</swiper> </swiper>
</div> </div>
<div class="time">时间:{{ formatTime(timeNow,'YYYY-MM-DD HH:mm:ss') }}</div> <div class="time">时间:{{ timeNow }}</div>
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
import { swiper, swiperSlide } from 'vue-awesome-swiper' import { swiper, swiperSlide } from 'vue-awesome-swiper'
import Moment from 'moment' import Moment from 'moment'
export default { export default {
name: 'StationApplyArtificial',
components: { components: {
swiper, swiper,
swiperSlide swiperSlide
...@@ -35,7 +38,7 @@ ...@@ -35,7 +38,7 @@
// 实时数据 // 实时数据
timmingData: {}, timmingData: {},
// 报警数据 // 报警数据
warningList: {}, warningList: [],
width: 0, width: 0,
height: 0, height: 0,
zoom: 'scale(0)', zoom: 'scale(0)',
...@@ -54,13 +57,12 @@ ...@@ -54,13 +57,12 @@
} }
}, },
methods: { methods: {
// 时间日期格式化 // 实时时间
formatTime (time, format) { judgeTimeNow () {
if (time !== null && time !== '') { this.timeNow = Moment().format('YYYY-MM-DD HH:mm:ss')
return Moment(time).format(format) this.timer = setInterval(() => {
} else { this.timeNow = Moment().format('YYYY-MM-DD HH:mm:ss')
return '暂无' }, 1000)
}
}, },
//获取工位实时信息 //获取工位实时信息
getData () { getData () {
...@@ -72,20 +74,18 @@ ...@@ -72,20 +74,18 @@
} }
}, },
mounted () { mounted () {
this.getData()
this.dataTimer = setInterval(() => {
this.getData()
}, 60000)
let vm = this
// 模拟时间运作
this.timer = setInterval(() => {
vm.timeNow = vm.formatTime()
}, 1000)
setTimeout(() => { setTimeout(() => {
this.getData()
// 实时时间
this.judgeTimeNow()
this.dataTimer = setInterval(() => {
this.getData()
}, 60000)
this.width = document.body.offsetWidth this.width = document.body.offsetWidth
this.height = document.body.offsetHeight this.height = document.body.offsetHeight
this.zoom = `scale(${this.width / 1710})` this.zoom = `scale(${this.width / 1710})`
}, 3000) console.log(this.zoom)
}, 0)
}, },
beforeDestroy () { beforeDestroy () {
if (this.timer) { if (this.timer) {
...@@ -99,72 +99,81 @@ ...@@ -99,72 +99,81 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.page-pack { .container {
width: 1710px; width: 100%;
height: 860px; height: 100%;
background-color: #111; background-color: #111;
.page-pack {
.title-pack {
width: 1710px; width: 1710px;
height: 100px; height: 860px;
text-align: center; background-color: #111;
color: yellow;
line-height: 100px;
font-weight: bold;
font-size: 60px;
}
.table-pack { .title-pack {
overflow: hidden;
.tr {
width: 1710px; width: 1710px;
height: 102px; height: 100px;
text-align: center;
color: yellow;
line-height: 100px;
font-weight: bold;
font-size: 60px;
}
.th-l { .table-pack {
width: 853px; overflow: hidden;
height: 100px;
.tr {
width: 1710px;
height: 102px;
.th-l {
width: 853px;
height: 100px;
border-top: 2px solid yellow;
border-right: 2px solid yellow;
float: left;
text-align: center;
color: yellow;
line-height: 100px;
font-weight: bold;
font-size: 60px;
}
.th-r {
width: 855px;
height: 100px;
border-top: 2px solid yellow;
float: left;
text-align: center;
color: yellow;
line-height: 100px;
font-weight: bold;
font-size: 60px;
}
}
.info {
width: 1710px;
height: 353px;
border-top: 2px solid yellow; border-top: 2px solid yellow;
border-right: 2px solid yellow;
float: left;
text-align: center;
color: yellow; color: yellow;
line-height: 100px;
font-weight: bold; font-weight: bold;
font-size: 60px; font-size: 60px;
.swiper-slide{
word-wrap: break-word;
word-break: break-all;
}
} }
.th-r { .time {
width: 855px; width: 1710px;
height: 100px; height: 100px;
border-top: 2px solid yellow; border-top: 2px solid yellow;
float: left;
text-align: center;
color: yellow; color: yellow;
line-height: 100px;
font-weight: bold; font-weight: bold;
line-height: 100px;
font-size: 60px; font-size: 60px;
} }
}
.info {
width: 1710px;
height: 353px;
border-top: 2px solid yellow;
color: yellow;
font-weight: bold;
font-size: 60px;
}
.time {
width: 1710px;
height: 100px;
border-top: 2px solid yellow;
color: yellow;
font-weight: bold;
line-height: 100px;
font-size: 60px;
} }
} }
} }
......
<template> <template>
<div class="page-pack" :style="{transform: zoom}" style="transform-origin: 0 0;"> <div class="container">
<div class="page-pack" :style="{transform: zoom}" style="transform-origin: 0 0;">
<div class="title-pack">{{timmingData.name}}</div> <div class="title-pack">{{timmingData.name}}</div>
<div class="table-pack"> <div class="table-pack">
<div class="tr"> <div class="tr">
...@@ -17,15 +18,18 @@ ...@@ -17,15 +18,18 @@
<swiper-slide v-for="(item, index) in warningList" :key="index">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{warningList[index].name}}{{warningList[index].info}}</swiper-slide> <swiper-slide v-for="(item, index) in warningList" :key="index">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{warningList[index].name}}{{warningList[index].info}}</swiper-slide>
</swiper> </swiper>
</div> </div>
<div class="time">时间:{{ formatTime(timeNow,'YYYY-MM-DD HH:mm:ss') }}</div> <div class="time">时间:{{ timeNow }}</div>
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
import { swiper, swiperSlide } from 'vue-awesome-swiper' import { swiper, swiperSlide } from 'vue-awesome-swiper'
import Moment from 'moment' import Moment from 'moment'
export default { export default {
name: 'StationElectrophoresis',
components: { components: {
swiper, swiper,
swiperSlide swiperSlide
...@@ -35,7 +39,7 @@ ...@@ -35,7 +39,7 @@
// 工位实时数据 // 工位实时数据
timmingData: {}, timmingData: {},
// 报警数据 // 报警数据
warningList: {}, warningList: [],
width: 0, width: 0,
height: 0, height: 0,
zoom: 'scale(0)', zoom: 'scale(0)',
...@@ -54,14 +58,6 @@ ...@@ -54,14 +58,6 @@
} }
}, },
methods: { methods: {
// 时间日期格式化
formatTime (time, format) {
if (time !== null && time !== '') {
return Moment(time).format(format)
} else {
return '暂无'
}
},
//获取工位实时信息 //获取工位实时信息
getData () { getData () {
this.$fetch('led-controller/ledInfo-get', {ledNo: '2'}).then(res => { this.$fetch('led-controller/ledInfo-get', {ledNo: '2'}).then(res => {
...@@ -69,19 +65,26 @@ ...@@ -69,19 +65,26 @@
this.warningList = res.warningList; this.warningList = res.warningList;
// console.log(this.warningList) // console.log(this.warningList)
console.log(res) console.log(res)
console.log(this.width)
console.log(this.height)
}) })
},
// 实时时间
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)
} }
}, },
mounted () { mounted () {
this.getData()
this.dataTimer = setInterval(() => {
this.getData()
}, 60000)
// 模拟时间运作
this.timer = setInterval(() => {
this.timeNow = this.formatTime()
}, 1000)
setTimeout(() => { setTimeout(() => {
this.getData()
// 实时时间
this.judgeTimeNow()
this.dataTimer = setInterval(() => {
this.getData()
}, 60000)
this.width = document.body.offsetWidth this.width = document.body.offsetWidth
this.height = document.body.offsetHeight this.height = document.body.offsetHeight
this.zoom = `scale(${this.width / 1710})` this.zoom = `scale(${this.width / 1710})`
...@@ -100,72 +103,81 @@ ...@@ -100,72 +103,81 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.page-pack { .container {
width: 1710px; width: 100%;
height: 860px; height: 100%;
background-color: #111; background-color: #111;
.page-pack {
.title-pack {
width: 1710px; width: 1710px;
height: 100px; height: 860px;
text-align: center; background-color: #111;
color: yellow;
line-height: 100px;
font-weight: bold;
font-size: 60px;
}
.table-pack {
overflow: hidden;
.tr { .title-pack {
width: 1710px; width: 1710px;
height: 102px; height: 100px;
text-align: center;
color: yellow;
line-height: 100px;
font-weight: bold;
font-size: 60px;
}
.th-l { .table-pack {
width: 853px; overflow: hidden;
height: 100px;
.tr {
width: 1710px;
height: 102px;
.th-l {
width: 853px;
height: 100px;
border-top: 2px solid yellow;
border-right: 2px solid yellow;
float: left;
text-align: center;
color: yellow;
line-height: 100px;
font-weight: bold;
font-size: 60px;
}
.th-r {
width: 855px;
height: 100px;
border-top: 2px solid yellow;
float: left;
text-align: center;
color: yellow;
line-height: 100px;
font-weight: bold;
font-size: 60px;
}
}
.info {
width: 1710px;
height: 454px;
border-top: 2px solid yellow; border-top: 2px solid yellow;
border-right: 2px solid yellow;
float: left;
text-align: center;
color: yellow; color: yellow;
line-height: 100px;
font-weight: bold; font-weight: bold;
font-size: 60px; font-size: 60px;
.swiper-slide{
word-wrap: break-word;
word-break: break-all;
}
} }
.th-r { .time {
width: 855px; width: 1710px;
height: 100px; height: 100px;
border-top: 2px solid yellow; border-top: 2px solid yellow;
float: left;
text-align: center;
color: yellow; color: yellow;
line-height: 100px;
font-weight: bold; font-weight: bold;
line-height: 100px;
font-size: 60px; font-size: 60px;
} }
}
.info {
width: 1710px;
height: 454px;
border-top: 2px solid yellow;
color: yellow;
font-weight: bold;
font-size: 60px;
}
.time {
width: 1710px;
height: 100px;
border-top: 2px solid yellow;
color: yellow;
font-weight: bold;
line-height: 100px;
font-size: 60px;
} }
} }
} }
......
<template> <template>
<div class="page-pack" :style="{transform: zoom}" style="transform-origin: 0 0"> <div class="container">
<div class="page-pack" :style="{transform: zoom}" style="transform-origin: 0 0">
<div class="title-pack">{{ timmingData.name }}</div> <div class="title-pack">{{ timmingData.name }}</div>
<div class="table-pack"> <div class="table-pack">
<div class="tr"> <div class="tr">
...@@ -17,15 +18,17 @@ ...@@ -17,15 +18,17 @@
<swiper-slide v-for="(item, index) in warningList" :key="index">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{warningList[index].name}}{{warningList[index].info}}</swiper-slide> <swiper-slide v-for="(item, index) in warningList" :key="index">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{warningList[index].name}}{{warningList[index].info}}</swiper-slide>
</swiper> </swiper>
</div> </div>
<div class="time">时间:{{ formatTime(timeNow,'YYYY-MM-DD HH:mm:ss') }}</div> <div class="time">时间:{{ timeNow }}</div>
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
import { swiper, swiperSlide } from 'vue-awesome-swiper' import { swiper, swiperSlide } from 'vue-awesome-swiper'
import Moment from 'moment' import Moment from 'moment'
export default { export default {
name: 'StationFloatingCoatRobot',
components: { components: {
swiper, swiper,
swiperSlide swiperSlide
...@@ -38,7 +41,7 @@ ...@@ -38,7 +41,7 @@
// 工位实时数据 // 工位实时数据
timmingData: {}, timmingData: {},
// 报警数据 // 报警数据
warningList: {}, warningList: [],
// 屏幕显示当前时间 // 屏幕显示当前时间
timeNow: '', timeNow: '',
// 定时器 // 定时器
...@@ -54,13 +57,12 @@ ...@@ -54,13 +57,12 @@
} }
}, },
methods: { methods: {
// 时间日期格式化 // 实时时间
formatTime (time, format) { judgeTimeNow () {
if (time !== null && time !== '') { this.timeNow = Moment().format('YYYY-MM-DD HH:mm:ss')
return Moment(time).format(format) this.timer = setInterval(() => {
} else { this.timeNow = Moment().format('YYYY-MM-DD HH:mm:ss')
return '暂无' }, 1000)
}
}, },
//获取工位实时信息 //获取工位实时信息
getData () { getData () {
...@@ -72,19 +74,18 @@ ...@@ -72,19 +74,18 @@
} }
}, },
mounted () { mounted () {
this.getData()
this.dataTimer = setInterval(() => {
this.getData()
}, 60000)
this.timer = setInterval(() => {
this.timeNow = this.formatTime()
// console.log(this.timeNow)
}, 1000)
setTimeout(() => { setTimeout(() => {
this.getData()
// 实时时间
this.judgeTimeNow()
this.dataTimer = setInterval(() => {
this.getData()
}, 60000)
this.width = document.body.offsetWidth this.width = document.body.offsetWidth
this.height = document.body.offsetHeight this.height = document.body.offsetHeight
this.zoom = `scale(${this.width / 1710})` this.zoom = `scale(${this.width / 1710})`
}, 3000) console.log(this.zoom)
}, 0)
}, },
beforeDestroy () { beforeDestroy () {
if (this.timer) { if (this.timer) {
...@@ -98,72 +99,82 @@ ...@@ -98,72 +99,82 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.page-pack { .container {
width: 1710px; width: 100%;
height: 860px; height: 100%;
background-color: #111; background-color: #111;
.page-pack {
.title-pack {
width: 1710px; width: 1710px;
height: 100px; height: 860px;
text-align: center; background-color: #111;
color: yellow;
line-height: 100px;
font-weight: bold;
font-size: 60px;
}
.table-pack { .title-pack {
overflow: hidden;
.tr {
width: 1710px; width: 1710px;
height: 102px; height: 100px;
text-align: center;
color: yellow;
line-height: 100px;
font-weight: bold;
font-size: 60px;
}
.th-l { .table-pack {
width: 853px; overflow: hidden;
height: 100px;
.tr {
width: 1710px;
height: 102px;
.th-l {
width: 853px;
height: 100px;
border-top: 2px solid yellow;
border-right: 2px solid yellow;
float: left;
text-align: center;
color: yellow;
line-height: 100px;
font-weight: bold;
font-size: 60px;
}
.th-r {
width: 855px;
height: 100px;
border-top: 2px solid yellow;
float: left;
text-align: center;
color: yellow;
line-height: 100px;
font-weight: bold;
font-size: 60px;
}
}
.info {
width: 1710px;
height: 353px;
border-top: 2px solid yellow; border-top: 2px solid yellow;
border-right: 2px solid yellow;
float: left;
text-align: center;
color: yellow; color: yellow;
line-height: 100px;
font-weight: bold; font-weight: bold;
font-size: 60px; font-size: 60px;
.swiper-slide{
word-wrap: break-word;
word-break: break-all;
}
} }
.th-r { .time {
width: 855px; width: 1710px;
height: 100px; height: 100px;
border-top: 2px solid yellow; border-top: 2px solid yellow;
float: left;
text-align: center;
color: yellow; color: yellow;
line-height: 100px;
font-weight: bold; font-weight: bold;
line-height: 100px;
font-size: 60px; font-size: 60px;
} }
}
.info {
width: 1710px;
height: 353px;
border-top: 2px solid yellow;
color: yellow;
font-weight: bold;
font-size: 60px;
}
.time {
width: 1710px;
height: 100px;
border-top: 2px solid yellow;
color: yellow;
font-weight: bold;
line-height: 100px;
font-size: 60px;
} }
} }
} }
......
<template> <template>
<div class="page-pack" :style="{transform: zoom}" style="transform-origin: 0 0;"> <div class="container">
<div class="page-pack" :style="{transform: zoom}" style="transform-origin: 0 0;">
<div class="title-pack">{{timmingData.name}}</div> <div class="title-pack">{{timmingData.name}}</div>
<div class="table-pack"> <div class="table-pack">
<div class="tr"> <div class="tr">
...@@ -17,15 +18,17 @@ ...@@ -17,15 +18,17 @@
<swiper-slide v-for="(item, index) in warningList" :key="index">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{warningList[index].name}}{{warningList[index].info}}</swiper-slide> <swiper-slide v-for="(item, index) in warningList" :key="index">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{warningList[index].name}}{{warningList[index].info}}</swiper-slide>
</swiper> </swiper>
</div> </div>
<div class="time">时间:{{ formatTime(timeNow,'YYYY-MM-DD HH:mm:ss') }}</div> <div class="time">时间:{{ timeNow }}</div>
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
import { swiper, swiperSlide } from 'vue-awesome-swiper' import { swiper, swiperSlide } from 'vue-awesome-swiper'
import Moment from 'moment' import Moment from 'moment'
export default { export default {
name: 'StationInsulatingAnticorrosive',
components: { components: {
swiper, swiper,
swiperSlide swiperSlide
...@@ -54,13 +57,12 @@ ...@@ -54,13 +57,12 @@
} }
}, },
methods: { methods: {
// 时间日期格式化 // 实时时间
formatTime (time, format) { judgeTimeNow () {
if (time !== null && time !== '') { this.timeNow = Moment().format('YYYY-MM-DD HH:mm:ss')
return Moment(time).format(format) this.timer = setInterval(() => {
} else { this.timeNow = Moment().format('YYYY-MM-DD HH:mm:ss')
return '暂无' }, 1000)
}
}, },
//获取工位实时信息 //获取工位实时信息
getData () { getData () {
...@@ -73,20 +75,18 @@ ...@@ -73,20 +75,18 @@
} }
}, },
mounted () { mounted () {
this.getData()
this.dataTimer = setInterval(() => {
this.getData()
}, 60000)
// 模拟时间运作
this.timer = setInterval(() => {
this.timeNow = this.formatTime()
}, 1000)
setTimeout(() => { setTimeout(() => {
this.getData()
// 实时时间
this.judgeTimeNow()
this.dataTimer = setInterval(() => {
this.getData()
}, 60000)
this.width = document.body.offsetWidth this.width = document.body.offsetWidth
this.height = document.body.offsetHeight this.height = document.body.offsetHeight
this.zoom = `scale(${this.width / 1710})` this.zoom = `scale(${this.width / 1710})`
console.log(`scale(${this.width / 1710})`) console.log(this.zoom)
}, 3000) }, 0)
}, },
beforeDestroy () { beforeDestroy () {
if (this.timer) { if (this.timer) {
...@@ -100,72 +100,81 @@ ...@@ -100,72 +100,81 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.page-pack { .container {
width: 1710px; width: 100%;
height: 860px; height: 100%;
background-color: #111; background-color: #111;
.page-pack {
.title-pack {
width: 1710px; width: 1710px;
height: 100px; height: 860px;
text-align: center; background-color: #111;
color: yellow;
line-height: 100px;
font-weight: bold;
font-size: 60px;
}
.table-pack { .title-pack {
overflow: hidden;
.tr {
width: 1710px; width: 1710px;
height: 102px; height: 100px;
text-align: center;
color: yellow;
line-height: 100px;
font-weight: bold;
font-size: 60px;
}
.th-l { .table-pack {
width: 853px; overflow: hidden;
height: 100px;
.tr {
width: 1710px;
height: 102px;
.th-l {
width: 853px;
height: 100px;
border-top: 2px solid yellow;
border-right: 2px solid yellow;
float: left;
text-align: center;
color: yellow;
line-height: 100px;
font-weight: bold;
font-size: 60px;
}
.th-r {
width: 855px;
height: 100px;
border-top: 2px solid yellow;
float: left;
text-align: center;
color: yellow;
line-height: 100px;
font-weight: bold;
font-size: 60px;
}
}
.info {
width: 1710px;
height: 454px;
border-top: 2px solid yellow; border-top: 2px solid yellow;
border-right: 2px solid yellow;
float: left;
text-align: center;
color: yellow; color: yellow;
line-height: 100px;
font-weight: bold; font-weight: bold;
font-size: 60px; font-size: 60px;
.swiper-slide{
word-wrap: break-word;
word-break: break-all;
}
} }
.th-r { .time {
width: 855px; width: 1710px;
height: 100px; height: 100px;
border-top: 2px solid yellow; border-top: 2px solid yellow;
float: left;
text-align: center;
color: yellow; color: yellow;
line-height: 100px;
font-weight: bold; font-weight: bold;
line-height: 100px;
font-size: 60px; font-size: 60px;
} }
}
.info {
width: 1710px;
height: 454px;
border-top: 2px solid yellow;
color: yellow;
font-weight: bold;
font-size: 60px;
}
.time {
width: 1710px;
height: 100px;
border-top: 2px solid yellow;
color: yellow;
font-weight: bold;
line-height: 100px;
font-size: 60px;
} }
} }
} }
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -552,6 +552,7 @@ ...@@ -552,6 +552,7 @@
*/ */
import Tooltip from './Tooltip'; import Tooltip from './Tooltip';
export default { export default {
name: 'MonitorComplexionPaint',
components: { components: {
Tooltip Tooltip
}, },
......
...@@ -448,6 +448,7 @@ ...@@ -448,6 +448,7 @@
<script> <script>
import Tooltip from './Tooltip'; import Tooltip from './Tooltip';
export default { export default {
name: 'MonitorElectrophoresis',
components: { components: {
Tooltip Tooltip
}, },
......
...@@ -149,6 +149,7 @@ ...@@ -149,6 +149,7 @@
<script> <script>
import Tooltip from './Tooltip'; import Tooltip from './Tooltip';
export default { export default {
name: 'MonitorFinishedCar',
components: { components: {
Tooltip Tooltip
}, },
......
...@@ -198,6 +198,7 @@ ...@@ -198,6 +198,7 @@
*/ */
import Tooltip from './Tooltip'; import Tooltip from './Tooltip';
export default { export default {
name: 'MonitorMiddleCoat',
components: { components: {
Tooltip Tooltip
}, },
......
...@@ -221,6 +221,7 @@ ...@@ -221,6 +221,7 @@
*/ */
import Tooltip from './Tooltip'; import Tooltip from './Tooltip';
export default { export default {
name: 'MonitorPutty',
components: { components: {
Tooltip Tooltip
}, },
......
...@@ -306,6 +306,7 @@ ...@@ -306,6 +306,7 @@
<script> <script>
import Tooltip from './Tooltip'; import Tooltip from './Tooltip';
export default { export default {
name: 'MonitorSealedAnticorrosion',
components: { components: {
Tooltip Tooltip
}, },
......
...@@ -299,6 +299,7 @@ ...@@ -299,6 +299,7 @@
<script> <script>
import Tooltip from './Tooltip'; import Tooltip from './Tooltip';
export default { export default {
name: 'MonitorSheetMetalCar',
components: { components: {
Tooltip Tooltip
}, },
......
...@@ -1562,6 +1562,7 @@ ...@@ -1562,6 +1562,7 @@
<script> <script>
export default { export default {
name: 'MonitorIndex',
data () { data () {
return { return {
// 筛选条件工单号 // 筛选条件工单号
...@@ -1807,10 +1808,28 @@ ...@@ -1807,10 +1808,28 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
html {
position: relative;
}
@keyframes identifier {
0% { transform: translateY(0px);}
20% { transform: translateY(-70px);}
40% { transform: translateY(-140px);}
60% { transform: translateY(-210px);}
80% { transform: translateY(-280px);}
100% { transform: translateY(-350px);}
// 100% {transform: translateY(-450px);}
}
.monitor-pack { .monitor-pack {
overflow-x: hidden;
overflow-y: visible;
height: 1400px;
width: 100%; width: 100%;
background-color: #001927; background-color: #001927;
animation: identifier 10s infinite alternate;
// animation: identifier 8s infinite cubic-bezier(1,0,0.5,0);
.view-pack { .view-pack {
margin: 0 auto; margin: 0 auto;
width: 1600px; width: 1600px;
...@@ -3694,7 +3713,7 @@ ...@@ -3694,7 +3713,7 @@
} }
.no-message { .no-message {
font-size: 12px !important; font-size: 6px !important;
font-weight: 400; font-weight: 400;
} }
...@@ -3775,6 +3794,10 @@ ...@@ -3775,6 +3794,10 @@
} }
} }
::-webkit-scrollbar {
display: none ! important;
}
// 轻客车体样式 // 轻客车体样式
.monitor-car-external { .monitor-car-external {
background: url('../../assets/images/Monitor/monitor_car_external.png') !important; background: url('../../assets/images/Monitor/monitor_car_external.png') !important;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment