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

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

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