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

fix(车间级Led): 修复取值错误的问题

parent 062709c6
......@@ -135,7 +135,6 @@
this.width = document.body.offsetWidth
this.height = document.body.offsetHeight
this.zoom = `scale(${this.width / 1710})`
console.log(this.zoom)
}, 0)
},
beforeDestroy () {
......
......@@ -68,10 +68,8 @@
//获取工位实时信息
getData () {
this.$fetch('led-controller/ledInfo-get', {ledNo: '4'}).then(res => {
console.log(res)
this.timmingData = res;
this.warningList = res.warningList;
console.log(this.warningList)
})
}
},
......@@ -86,7 +84,6 @@
this.width = document.body.offsetWidth
this.height = document.body.offsetHeight
this.zoom = `scale(${this.width / 1710})`
console.log(this.zoom)
}, 0)
},
beforeDestroy () {
......
......@@ -69,7 +69,6 @@
this.$fetch('led-controller/ledInfo-get', {ledNo: '1'}).then(res => {
this.timmingData = res;
this.warningList = res.warningList;
console.log(this.warningList)
})
}
},
......
......@@ -97,11 +97,7 @@
this.timmingData = _.cloneDeep(res);
this.roomInfoList = _.cloneDeep(res.roomInfoList);
this.warningList = _.cloneDeep(res.warningList)
// console.log(this.warningList)
console.log(this.roomInfoList.length)
console.log(res)
for (let item of this.roomInfoList) {
console.log('item', item)
if (item.stationState === 'USE') {
item.stationState = '使用'
}
......
......@@ -97,8 +97,6 @@
this.timmingData = _.cloneDeep(res);
this.roomInfoList = _.cloneDeep(res.roomInfoList);
this.warningList = _.cloneDeep(res.warningList)
console.log(this.roomInfoList.length)
console.log(res)
for (let item of this.roomInfoList) {
console.log('item', item)
if (item.stationState === 'USE') {
......@@ -138,7 +136,6 @@
this.width = document.body.offsetWidth
this.height = document.body.offsetHeight
this.zoom = `scale(${this.width / 1710})`
console.log(this.zoom)
}, 0)
},
beforeDestroy () {
......
......@@ -69,7 +69,6 @@
this.$fetch('led-controller/ledInfo-get', {ledNo: '3'}).then(res => {
this.timmingData = res;
this.warningList = res.warningList;
console.log(this.warningList)
})
}
},
......@@ -84,7 +83,6 @@
this.width = document.body.offsetWidth
this.height = document.body.offsetHeight
this.zoom = `scale(${this.width / 1710})`
console.log(this.zoom)
}, 0)
},
beforeDestroy () {
......
......@@ -63,10 +63,6 @@
this.$fetch('led-controller/ledInfo-get', {ledNo: '2'}).then(res => {
this.timmingData = res;
this.warningList = res.warningList;
// console.log(this.warningList)
console.log(res)
console.log(this.width)
console.log(this.height)
})
},
// 实时时间
......@@ -88,7 +84,6 @@
this.width = document.body.offsetWidth
this.height = document.body.offsetHeight
this.zoom = `scale(${this.width / 1710})`
console.log(this.zoom)
}, 0)
},
beforeDestroy () {
......
......@@ -147,8 +147,7 @@
},
getData () {
this.$fetch('area-controller/statistics-get', {}).then(res => {
console.log(res)
for (let item of this.tempData) {
for (let item of res) {
if (item.areaNo === '0') {
if (item.dateType === 'YESTERDAY') {
if (item.busType === 'IN') {
......@@ -246,14 +245,14 @@
height: 1037px;
background-color: #111;
.borderBot {
border-bottom: 2px solid yellow;
border-bottom: 2px solid red;
}
.title-pack {
width: 1556px;
height: 134px;
text-align: center;
color: yellow;
color: red;
line-height: 134px;
font-weight: bold;
font-size: 100px;
......@@ -267,11 +266,11 @@
.th-l,.th-2,.th-3,.th-4 {
width: 30%;
height: 110.625px;
border-top: 2px solid yellow;
border-right: 2px solid yellow;
border-top: 2px solid red;
border-right: 2px solid red;
float: left;
text-align: center;
color: yellow;
color: red;
line-height: 110.625px;
font-weight: bold;
font-size: 49px;
......@@ -284,8 +283,8 @@
.time {
width: 1710px;
height: 110.625px;
border-top: 2px solid yellow;
color: yellow;
border-top: 2px solid red;
color: red;
font-weight: bold;
line-height: 110.625px;
font-size: 48px;
......
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