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

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

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