|
|
@ -397,7 +397,7 @@
|
|
|
|
<!-- v-show="goodStatusShow" -->
|
|
|
|
<!-- v-show="goodStatusShow" -->
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
class="goods-hovers-list"
|
|
|
|
class="goods-hovers-list"
|
|
|
|
:class="{ 'hide-goods-hover': !goodStatusShow }"
|
|
|
|
:class="[{ 'hide-goods-hover': !goodStatusShow }, {'seat-top': goodStatusSeat === 'top'}, {'seat-bottom': goodStatusSeat === 'bottom'}]"
|
|
|
|
:style="{ top: `${goodStatusScreenY}px`, left: `${goodStatusScreenX}px` }"
|
|
|
|
:style="{ top: `${goodStatusScreenY}px`, left: `${goodStatusScreenX}px` }"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div class="title">货运动态</div>
|
|
|
|
<div class="title">货运动态</div>
|
|
|
@ -760,6 +760,7 @@ export default {
|
|
|
|
goodStatusScreenX: 0,
|
|
|
|
goodStatusScreenX: 0,
|
|
|
|
goodStatusScreenY: 0,
|
|
|
|
goodStatusScreenY: 0,
|
|
|
|
goodStatusData: null,
|
|
|
|
goodStatusData: null,
|
|
|
|
|
|
|
|
goodStatusSeat: 'bottom',
|
|
|
|
editingForm: this.$form.createForm(this),
|
|
|
|
editingForm: this.$form.createForm(this),
|
|
|
|
vesselData: [],
|
|
|
|
vesselData: [],
|
|
|
|
WebVessel: '',
|
|
|
|
WebVessel: '',
|
|
|
@ -1620,8 +1621,15 @@ export default {
|
|
|
|
// this.goodStatusScreenX = e.pageX - 300
|
|
|
|
// this.goodStatusScreenX = e.pageX - 300
|
|
|
|
this.goodStatusScreenX = e.pageX - 139
|
|
|
|
this.goodStatusScreenX = e.pageX - 139
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// this.goodStatusScreenY = e.pageY + 20
|
|
|
|
console.log('== 距离 ==', e.pageY, window.innerHeight - 350)
|
|
|
|
|
|
|
|
if (e.pageY > (window.innerHeight - 340)) {
|
|
|
|
|
|
|
|
this.goodStatusScreenY = e.pageY - 370 - 10
|
|
|
|
|
|
|
|
this.goodStatusSeat = 'top'
|
|
|
|
|
|
|
|
} else {
|
|
|
|
this.goodStatusScreenY = e.pageY + 25
|
|
|
|
this.goodStatusScreenY = e.pageY + 25
|
|
|
|
|
|
|
|
this.goodStatusSeat = 'bottom'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// this.goodStatusScreenY = e.pageY + 20
|
|
|
|
this.goodStatusData = data.goodsStatusList
|
|
|
|
this.goodStatusData = data.goodsStatusList
|
|
|
|
this.goodStatusShow = true
|
|
|
|
this.goodStatusShow = true
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -2299,7 +2307,7 @@ export default {
|
|
|
|
.active {
|
|
|
|
.active {
|
|
|
|
cursor: pointer;
|
|
|
|
cursor: pointer;
|
|
|
|
// color: @primary-color;
|
|
|
|
// color: @primary-color;
|
|
|
|
color: #004d11;
|
|
|
|
color: #336600;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2337,7 +2345,7 @@ export default {
|
|
|
|
.active {
|
|
|
|
.active {
|
|
|
|
cursor: pointer;
|
|
|
|
cursor: pointer;
|
|
|
|
// color: @primary-color;
|
|
|
|
// color: @primary-color;
|
|
|
|
color: #004d11;
|
|
|
|
color: #336600;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:nth-of-type(3) {
|
|
|
|
&:nth-of-type(3) {
|
|
|
|
i {
|
|
|
|
i {
|
|
|
@ -2560,6 +2568,14 @@ export default {
|
|
|
|
transition: 0.5s all;
|
|
|
|
transition: 0.5s all;
|
|
|
|
display: block;
|
|
|
|
display: block;
|
|
|
|
opacity: 1;
|
|
|
|
opacity: 1;
|
|
|
|
|
|
|
|
&.seat-top{
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
// content: '';
|
|
|
|
|
|
|
|
// bottom: -15px;
|
|
|
|
|
|
|
|
// left: 50%;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
&.hide-goods-hover {
|
|
|
|
&.hide-goods-hover {
|
|
|
|
display: none;
|
|
|
|
display: none;
|
|
|
|
opacity: 0;
|
|
|
|
opacity: 0;
|
|
|
@ -2580,6 +2596,7 @@ export default {
|
|
|
|
left: 50%;
|
|
|
|
left: 50%;
|
|
|
|
margin-left: -16px;
|
|
|
|
margin-left: -16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
.title {
|
|
|
|
height: 30px;
|
|
|
|
height: 30px;
|
|
|
|
line-height: 30px;
|
|
|
|
line-height: 30px;
|
|
|
|