Commit ad40b9a6 authored by 车宾's avatar 车宾

feat(钣金作业区):功能联调

parent b8d852f4
...@@ -449,54 +449,12 @@ export default { ...@@ -449,54 +449,12 @@ export default {
}, },
data () { data () {
return { return {
// 当前在线人数
onlineNum: null,
// 车体定位信息
busPosition: {},
// 电泳作业区域实时信息 // 电泳作业区域实时信息
query: { query: {},
'STC1-1': {
areaId: 0,
areaName: 'DF20191010',
busNo: 'DF20191010',
busType: 'OTHER', //IN/OUT
code: 'string',
id: 0,
keyStation: true,
laneCode: 'string',
laneId: 0,
sequence: 0,
skidID: 0,
state: 'USE', //0.1 Y/N
workshopCode: 'string'
},
'STC1-8': {
areaId: 0,
areaName: 'DF205411010',
busNo: 'DF20191010',
busType: 'OWN', //IN/OUT
code: 'string',
id: 0,
keyStation: true,
laneCode: 'string',
laneId: 0,
sequence: 0,
skidID: 0,
state: 'USE', //0.1 Y/N
workshopCode: 'string'
},
'HDG1-31': {
areaId: 0,
areaName: 'DF205411010',
busNo: 'DF20191010',
busType: 'OTHER', //IN/OUT
code: 'string',
id: 0,
keyStation: true,
laneCode: 'string',
laneId: 0,
sequence: 0,
skidID: 0,
state: 'USE', //0.1 Y/N
workshopCode: 'string'
}
},
// 根据车身号获得当前车体信息 // 根据车身号获得当前车体信息
BusInformation: { BusInformation: {
'saleOrderNo': '201905201252', 'saleOrderNo': '201905201252',
...@@ -535,6 +493,15 @@ export default { ...@@ -535,6 +493,15 @@ export default {
this.$fetch('area-controller/realTime-get', { areaNo: '2' }) this.$fetch('area-controller/realTime-get', { areaNo: '2' })
.then(res => { .then(res => {
console.log('getall', res); console.log('getall', res);
for (let i = 0; i < res.length; i++) {
if (res[i].code === '2') {
console.log(res[i]);
this.query = _.cloneDeep(res[i].stationMap);
// 获取当前在线人数
this.onlineNum = _.clone(res[i].onlineNum);
console.log(this.onlineNum)
}
}
}) })
.catch(error => { .catch(error => {
reject(error); reject(error);
......
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