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

fea(AVI大屏): 工作区详情车体没有工单号时进行提示

parent 04d8a011
......@@ -63,8 +63,7 @@
data: [],
fieldList: [
{ label: '车间', value: 'workshopCode' },
{ label: '设备编号', value: 'equipCode' },
{ label: '设备名称', value: 'alias' },
{ label: '设备名称', value: 'equipCode' },
{ label: '故障信息', value: 'warningInfo' },
{ label: '时间', value: 'beginTime', slot: 'beginTime' }
],
......
......@@ -706,20 +706,24 @@ export default {
}
},
doCarStationClick (busWorkOrderNo) {
let left = window.event.clientX;
let top = window.event.clientY;
this.$refs.toolRef.$refs.tooltip.style.visibility = 'visible';
this.$refs.toolRef.$refs.tooltip.style.top = top - 100 + 'px';
this.$refs.toolRef.$refs.tooltip.style.left = left - 100 + 'px';
this.$fetch('area-controller/busNo-get', { busNo: busWorkOrderNo })
.then(res => {
if (!Array.isArray(res)) {
this.BusInformation = _.cloneDeep(res)
}
})
.catch(error => {
reject(error)
});
if (busWorkOrderNo === null || busWorkOrderNo === '') {
this.$message.warning('此车体无对应工单号');
} else {
let left = window.event.clientX;
let top = window.event.clientY;
this.$refs.toolRef.$refs.tooltip.style.visibility = 'visible';
this.$refs.toolRef.$refs.tooltip.style.top = top - 100 + 'px';
this.$refs.toolRef.$refs.tooltip.style.left = left - 100 + 'px';
this.$fetch('area-controller/busNo-get', { busNo: busWorkOrderNo })
.then(res => {
if (!Array.isArray(res)) {
this.BusInformation = _.cloneDeep(res)
}
})
.catch(error => {
reject(error)
});
}
},
// 查询车辆定位
getCarPostion () {
......
......@@ -480,20 +480,24 @@ export default {
methods: {
// 点击车位弹出车体信息
doCarStationClick (busWorkOrderNo) {
this.$refs.toolRef.$refs.tooltip.style.visibility = 'visible';
let left = window.event.clientX;
let top = window.event.clientY;
this.$refs.toolRef.$refs.tooltip.style.top = top - 100 + 'px';
this.$refs.toolRef.$refs.tooltip.style.left = left - 100 + 'px';
this.$fetch('area-controller/busNo-get', { busNo: busWorkOrderNo })
.then(res => {
if (!Array.isArray(res)) {
this.BusInformation = _.cloneDeep(res);
}
})
.catch(error => {
reject(error);
});
if (busWorkOrderNo === null || busWorkOrderNo === '') {
this.$message.warning('此车体无对应工单号');
} else {
this.$refs.toolRef.$refs.tooltip.style.visibility = 'visible';
let left = window.event.clientX;
let top = window.event.clientY;
this.$refs.toolRef.$refs.tooltip.style.top = top - 100 + 'px';
this.$refs.toolRef.$refs.tooltip.style.left = left - 100 + 'px';
this.$fetch('area-controller/busNo-get', { busNo: busWorkOrderNo })
.then(res => {
if (!Array.isArray(res)) {
this.BusInformation = _.cloneDeep(res);
}
})
.catch(error => {
reject(error);
});
}
},
// 查询电泳实时信息
getElectrophoresisInformation () {
......
......@@ -198,20 +198,24 @@ export default {
},
// 点击车位弹出车体信息
doCarStationClick (busWorkOrderNo) {
this.$refs.toolRef.$refs.tooltip.style.visibility = 'visible';
let left = window.event.clientX;
let top = window.event.clientY;
this.$refs.toolRef.$refs.tooltip.style.top = top - 100 + 'px';
this.$refs.toolRef.$refs.tooltip.style.left = left - 100 + 'px';
this.$fetch('area-controller/busNo-get', { busNo: busWorkOrderNo })
.then(res => {
if (!Array.isArray(res)) {
this.BusInformation = _.cloneDeep(res);
}
})
.catch(error => {
reject(error);
});
if (busWorkOrderNo === null || busWorkOrderNo === '') {
this.$message.warning('此车体无对应工单号');
} else {
this.$refs.toolRef.$refs.tooltip.style.visibility = 'visible';
let left = window.event.clientX;
let top = window.event.clientY;
this.$refs.toolRef.$refs.tooltip.style.top = top - 100 + 'px';
this.$refs.toolRef.$refs.tooltip.style.left = left - 100 + 'px';
this.$fetch('area-controller/busNo-get', { busNo: busWorkOrderNo })
.then(res => {
if (!Array.isArray(res)) {
this.BusInformation = _.cloneDeep(res);
}
})
.catch(error => {
reject(error);
});
}
},
// 解析车体类型及车体定位样式
judgeCarTypeAndcarStationstyle (outOrIn, station) {
......
......@@ -247,20 +247,24 @@ export default {
},
// 点击车位弹出车体信息
doCarStationClick (busWorkOrderNo) {
this.$refs.toolRef.$refs.tooltip.style.visibility = 'visible';
let left = window.event.clientX;
let top = window.event.clientY;
this.$refs.toolRef.$refs.tooltip.style.top = top - 100 + 'px';
this.$refs.toolRef.$refs.tooltip.style.left = left - 100 + 'px';
this.$fetch('area-controller/busNo-get', { busNo: busWorkOrderNo })
.then(res => {
if (!Array.isArray(res)) {
this.BusInformation = _.cloneDeep(res);
}
})
.catch(error => {
reject(error);
});
if (busWorkOrderNo === null || busWorkOrderNo === '') {
this.$message.warning('此车体无对应工单号');
} else {
this.$refs.toolRef.$refs.tooltip.style.visibility = 'visible';
let left = window.event.clientX;
let top = window.event.clientY;
this.$refs.toolRef.$refs.tooltip.style.top = top - 100 + 'px';
this.$refs.toolRef.$refs.tooltip.style.left = left - 100 + 'px';
this.$fetch('area-controller/busNo-get', { busNo: busWorkOrderNo })
.then(res => {
if (!Array.isArray(res)) {
this.BusInformation = _.cloneDeep(res);
}
})
.catch(error => {
reject(error);
});
}
},
// 解析车体类型及车体定位样式
judgeCarTypeAndcarStationstyle (outOrIn, station) {
......
......@@ -284,20 +284,24 @@ export default {
},
// 点击车辆工位
doCarStationClick (busWorkOrderNo) {
let left = window.event.clientX;
let top = window.event.clientY;
this.$refs.toolRef.$refs.tooltip.style.visibility = 'visible';
this.$refs.toolRef.$refs.tooltip.style.top = `${top - 100}px`;
this.$refs.toolRef.$refs.tooltip.style.left = `${left}px`;
this.$fetch('area-controller/busNo-get', { busNo: busWorkOrderNo })
.then(res => {
if (!Array.isArray(res)) {
this.BusInformation = _.cloneDeep(res);
}
})
.catch(error => {
reject(error);
});
if (busWorkOrderNo === null || busWorkOrderNo === '') {
this.$message.warning('此车体无对应工单号');
} else {
let left = window.event.clientX;
let top = window.event.clientY;
this.$refs.toolRef.$refs.tooltip.style.visibility = 'visible';
this.$refs.toolRef.$refs.tooltip.style.top = `${top - 100}px`;
this.$refs.toolRef.$refs.tooltip.style.left = `${left}px`;
this.$fetch('area-controller/busNo-get', { busNo: busWorkOrderNo })
.then(res => {
if (!Array.isArray(res)) {
this.BusInformation = _.cloneDeep(res);
}
})
.catch(error => {
reject(error);
});
}
},
// 查询车辆定位
getCarPostion () {
......
......@@ -342,19 +342,23 @@ export default {
},
// 点击工位
doCarStationClick (busWorkOrderNo) {
this.$refs.toolRef.$refs.tooltip.style.visibility = 'visible';
let left = window.event.clientX;
let top = window.event.clientY;
this.$refs.toolRef.$refs.tooltip.style.top = top - 100 + 'px';
this.$refs.toolRef.$refs.tooltip.style.left = left - 100 + 'px';
let queryParams = { busNo: busWorkOrderNo };
this.$fetch('area-controller/busNo-get', queryParams).then(
response => {
if (!Array.isArray(res)) {
this.BusInformation = _.cloneDeep(res);
if (busWorkOrderNo === null || busWorkOrderNo === '') {
this.$message.warning('此车体无对应工单号');
} else {
this.$refs.toolRef.$refs.tooltip.style.visibility = 'visible';
let left = window.event.clientX;
let top = window.event.clientY;
this.$refs.toolRef.$refs.tooltip.style.top = top - 100 + 'px';
this.$refs.toolRef.$refs.tooltip.style.left = left - 100 + 'px';
let queryParams = { busNo: busWorkOrderNo };
this.$fetch('area-controller/busNo-get', queryParams).then(
response => {
if (!Array.isArray(res)) {
this.BusInformation = _.cloneDeep(res);
}
}
}
);
);
}
},
// 获取密封防腐作业区实时数据
getSealedAnticorrosionRealTimeData () {
......
......@@ -2,7 +2,7 @@
<!-- 钣金车存放区 -->
<div class="page-pack">
<div class="container-pack">
<div class="return-pack" @click="doReturnMonitorIndex"></div>
<div class="return-pack" @click="doReturnMonitorIndex"></div>
<!--第一行-->
<div
class="sheet-row-1-1"
......@@ -349,20 +349,24 @@ export default {
},
// 点击车辆工位
doCarStationClick (busWorkOrderNo) {
let left = window.event.clientX;
let top = window.event.clientY;
this.$refs.toolRef.$refs.tooltip.style.visibility = 'visible';
this.$refs.toolRef.$refs.tooltip.style.top = `${top - 100}px`;
this.$refs.toolRef.$refs.tooltip.style.left = `${left}px`;
this.$fetch('area-controller/busNo-get', { busNo: busWorkOrderNo })
.then(res => {
if (!Array.isArray(res)) {
this.BusInformation = _.cloneDeep(res);
}
})
.catch(error => {
reject(error);
});
if (busWorkOrderNo === null || busWorkOrderNo === '') {
this.$message.warning('此车体无对应工单号');
} else {
let left = window.event.clientX;
let top = window.event.clientY;
this.$refs.toolRef.$refs.tooltip.style.visibility = 'visible';
this.$refs.toolRef.$refs.tooltip.style.top = `${top - 100}px`;
this.$refs.toolRef.$refs.tooltip.style.left = `${left}px`;
this.$fetch('area-controller/busNo-get', { busNo: busWorkOrderNo })
.then(res => {
if (!Array.isArray(res)) {
this.BusInformation = _.cloneDeep(res);
}
})
.catch(error => {
reject(error);
});
}
},
// 解析车体类型及车体定位样式
judgeCarTypeAndcarStationstyle (outOrIn, station) {
......
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