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

fea(涂装车间LED): 涂装车间LED功能联调

parent 5be99869
......@@ -5,45 +5,45 @@
<div class="table-pack">
<div class="tr clear-float">
<div class="th-l">昨日进车数量</div>
<div class="th-2">{{yesterdayDataIN.size}}</div>
<div class="th-2">{{yesterdayDataIN}}</div>
<div class="th-3">昨日交车数量</div>
<div class="th-4">{{yesterdayDataOUT.size}}</div>
<div class="th-4">{{yesterdayDataOUT}}</div>
</div>
<div class="tr clear-float">
<div class="th-l">当日进车数量</div>
<div class="th-2">{{todayDataIN.size}}</div>
<div class="th-2">{{todayDataIN}}</div>
<div class="th-3">当日交车数量</div>
<div class="th-4">{{todayDataOUT.size}}</div>
<div class="th-4">{{todayDataOUT}}</div>
</div>
<div class="tr clear-float">
<div class="th-l">电泳当日进车数量</div>
<div class="th-2">{{electrophoresesDataIN.size}}</div>
<div class="th-2">{{electrophoresesDataIN}}</div>
<div class="th-3">电泳当日交车数量</div>
<div class="th-4">{{electrophoresesDataOUT.size}}</div>
<div class="th-4">{{electrophoresesDataOUT}}</div>
</div>
<div class="tr clear-float">
<div class="th-l">隔热防腐当日进车</div>
<div class="th-2">{{width}}</div>
<div class="th-2">{{insulatingAnticorrosiveDataIN}}</div>
<div class="th-3">隔热防腐当日交车</div>
<div class="th-4">{{height}}</div>
<div class="th-4">{{insulatingAnticorrosiveDataOUT}}</div>
</div>
<div class="tr clear-float">
<div class="th-l">腻子当日进车数量</div>
<div class="th-2">{{height}}</div>
<div class="th-2">{{puttyDataIN}}</div>
<div class="th-3">腻子当日交车数量</div>
<div class="th-4">{{width}}</div>
<div class="th-4">{{puttyDataOUT}}</div>
</div>
<div class="tr clear-float">
<div class="th-l">中涂当日进车数量</div>
<div class="th-2">{{height}}</div>
<div class="th-2">{{floatingCoatDataIN}}</div>
<div class="th-3">中涂当日交车数量</div>
<div class="th-4">{{width}}</div>
<div class="th-4">{{floatingCoatDataOUT}}</div>
</div>
<div class="tr clear-float">
<div class="th-l borderBot">面/清漆当日进车数量</div>
<div class="th-2 borderBot">{{width}}</div>
<div class="th-2 borderBot">{{surfaceVarnishDataIN}}</div>
<div class="th-3 borderBot">面/清漆当日交车数量</div>
<div class="th-4 borderBot">{{width}}</div>
<div class="th-4 borderBot">{{surfaceVarnishDataOUT}}</div>
</div>
<div class="time">时间:{{ timeNow }}</div>
</div>
......@@ -61,37 +61,37 @@
height: 0,
zoom: 'scale(0)',
// 屏幕显示当前时间
timeNow: '',
timeNow: null,
// Data轮询定时器
dataTimer: '',
dataTimer: null,
// 当日进车数据
todayDataIN: {},
todayDataIN: null,
// 当日出车数据
todayDataOUT: {},
todayDataOUT: null,
// 昨日进车数据
yesterdayDataIN: {},
yesterdayDataIN: null,
// 昨日出车数据
yesterdayDataOUT: {},
yesterdayDataOUT: null,
// 电泳车辆进车数据
electrophoresesDataIN: {},
electrophoresesDataIN: null,
// 电泳车辆出车数据
electrophoresesDataOUT: {},
electrophoresesDataOUT: null,
// 隔热防腐当日车辆进车数据
insulatingAnticorrosiveDataIN: {},
insulatingAnticorrosiveDataIN: null,
// 隔热防腐当日车辆出车数据
insulatingAnticorrosiveDataOUT: {},
insulatingAnticorrosiveDataOUT: null,
// 腻子当日车辆进车数据
puttyDataIN: {},
puttyDataIN: null,
// 腻子当日车辆出车数据
puttyDataOUT: {},
puttyDataOUT: null,
// 中涂当日车辆进车数据
floatingCoatDataIN: {},
floatingCoatDataIN: null,
// 中涂当日车辆出车数据
floatingCoatDataOUT: {},
floatingCoatDataOUT: null,
// 面/清漆当日车辆进车数据
surfaceVarnishDataIN: {},
surfaceVarnishDataIN: null,
// 面/清漆当日车辆出车数据
surfaceVarnishDataOUT: {},
surfaceVarnishDataOUT: null,
tempData: [
{
'id': null,
......@@ -150,21 +150,18 @@
console.log(res)
for (let item of this.tempData) {
if (item.areaNo === '0') {
// console.log(item)
if (item.dateType === 'YESTERDAY') {
if (item.busType === 'IN') {
this.yesterdayDataIN = _.cloneDeep(item);
this.yesterdayDataIN = _.cloneDeep(item.size)
} else {
this.yesterdayDataOUT = _.cloneDeep(item)
console.log(this.yesterdayDataOUT)
this.yesterdayDataOUT = _.cloneDeep(item.size)
}
}
if (item.dateType === 'TODAY') {
if (item.busType === 'IN') {
this.todayDataIN = _.cloneDeep(item);
this.todayDataIN = _.cloneDeep(item.size)
} else {
this.todayDataINOUT = _.cloneDeep(item)
console.log(this.todayDataINOUT)
this.todayDataOUT = _.cloneDeep(item.size)
}
}
}
......@@ -172,10 +169,9 @@
if (item.areaNo === '2') {
if (item.dateType === 'TODAY') {
if (item.busType === 'IN') {
this.electrophoresesDataIN = _.cloneDeep(item);
this.electrophoresesDataIN = _.cloneDeep(item.size)
} else {
this.electrophoresesDataOUT = _.cloneDeep(item)
console.log(this.electrophoresesDataOUT)
this.electrophoresesDataOUT = _.cloneDeep(item.size)
}
}
}
......@@ -183,10 +179,9 @@
if (item.areaNo === '3') {
if (item.dateType === 'TODAY') {
if (item.busType === 'IN') {
this.insulatingAnticorrosiveDataIN = _.cloneDeep(item);
this.insulatingAnticorrosiveDataIN = _.cloneDeep(item.size)
} else {
this.insulatingAnticorrosiveDataOUT = _.cloneDeep(item)
console.log(this.insulatingAnticorrosiveDataOUT)
this.insulatingAnticorrosiveDataOUT = _.cloneDeep(item.size)
}
}
}
......@@ -194,10 +189,9 @@
if (item.areaNo === '4') {
if (item.dateType === 'TODAY') {
if (item.busType === 'IN') {
this.puttyDataIN = _.cloneDeep(item);
this.puttyDataIN = _.cloneDeep(item.size)
} else {
this.puttyDataOUT = _.cloneDeep(item)
console.log('65454555', this.puttyDataOUT)
this.puttyDataOUT = _.cloneDeep(item.size)
}
}
}
......@@ -205,10 +199,9 @@
if (item.areaNo === '5') {
if (item.dateType === 'TODAY') {
if (item.busType === 'IN') {
this.floatingCoatDataIN = _.cloneDeep(item);
this.floatingCoatDataIN = _.cloneDeep(item.size)
} else {
this.floatingCoatDataOUT = _.cloneDeep(item)
console.log(this.floatingCoatDataOUT)
this.floatingCoatDataOUT = _.cloneDeep(item.size)
}
}
}
......@@ -216,10 +209,9 @@
if (item.areaNo === '6') {
if (item.dateType === 'TODAY') {
if (item.busType === 'IN') {
this.surfaceVarnishDataIN = _.cloneDeep(item);
this.surfaceVarnishDataIN = _.cloneDeep(item.size)
} else {
this.surfaceVarnishDataOUT = _.cloneDeep(item)
console.log(this.surfaceVarnishDataOUT)
this.surfaceVarnishDataOUT = _.cloneDeep(item.size)
}
}
}
......@@ -240,7 +232,6 @@
this.width = document.body.offsetWidth
this.height = document.body.offsetHeight
// this.zoom = `scale(${this.width / 1710})`
console.log(this.zoom)
}, 0)
}
}
......
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