增加点击展示实际点位
This commit is contained in:
parent
54872ec9d9
commit
d50e547f18
@ -646,6 +646,11 @@
|
||||
<!-- </map-scale-tool> -->
|
||||
</div>
|
||||
|
||||
<div class="actual-location" v-if="state.actualLocation.x && state.actualLocation.y">
|
||||
<div>X:{{ state.actualLocation.x }}</div>
|
||||
<div>Y:{{ state.actualLocation.y }}</div>
|
||||
</div>
|
||||
|
||||
<!-- 节点编辑 -->
|
||||
<editNodeProperties
|
||||
v-if="imgBgObj.positionMapId"
|
||||
@ -1006,6 +1011,9 @@ const mapClick = (e) => {
|
||||
const actualLocationX = disposeEventPoints(e).actualLocationX
|
||||
const actualLocationY = disposeEventPoints(e).actualLocationY
|
||||
|
||||
state.actualLocation.x = actualLocationX
|
||||
state.actualLocation.y = actualLocationY
|
||||
|
||||
//新增节点
|
||||
if (toolbarSwitchType.value === 'drawNodes') {
|
||||
state.allMapPointInfo.push({
|
||||
@ -1370,7 +1378,11 @@ const state = reactive({
|
||||
mapMarkCarList: [], //标记的车辆列表
|
||||
popoverVisible: false, //标记弹窗
|
||||
noLocationNumberList: [], //没有排序的库位index
|
||||
isShowSortNum: false //是否显示序号
|
||||
isShowSortNum: false, //是否显示序号
|
||||
actualLocation: {
|
||||
x: '',
|
||||
y: ''
|
||||
}
|
||||
})
|
||||
|
||||
const toolbarClick = async (item) => {
|
||||
@ -3330,4 +3342,15 @@ onUnmounted(() => {
|
||||
user-select: none;
|
||||
color: #000;
|
||||
}
|
||||
.actual-location {
|
||||
position: fixed;
|
||||
bottom: 10px;
|
||||
right: 16px;
|
||||
background-color: #f48924;
|
||||
color: #fff;
|
||||
padding: 6px;
|
||||
border-radius: 2px;
|
||||
font-size: 14px;
|
||||
user-select: none;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user