|
|
@@ -5,9 +5,7 @@
|
|
|
-->
|
|
|
<template>
|
|
|
<div>
|
|
|
- <div class="toolBox" :style="{
|
|
|
- right: `${windowRight}px`
|
|
|
- }">
|
|
|
+ <div class="toolBox" :style="mapStore.sideMenu? `right:${windowRight}px`:`right:20px`">
|
|
|
<div @click="setClass(0)" @mouseover="getTip('初始范围')" @mouseout="closetip" :class="bkclick[0] ? 'divclick' : ''">
|
|
|
<img src="../../assets/images/toolBox/reset.png" />
|
|
|
</div>
|
|
|
@@ -330,21 +328,21 @@ export default defineComponent({
|
|
|
|
|
|
if (mapStore.sideMenu) {
|
|
|
if (navigation) navigation.style.right = '400px';
|
|
|
- if (navigation) tool.style.right = '450px';
|
|
|
- if (navigation) changeMap.style.right = '450px';
|
|
|
- if (navigation) legendBox.style.right = '450px';
|
|
|
- if (navigation) tuli.style.right = '500px';
|
|
|
- if (navigation) classLegend.style.left = '470px';
|
|
|
- if (navigation) classLegend2.style.left = '470px';
|
|
|
+ // if (navigation) tool.style.right = '450px';
|
|
|
+ // if (navigation) changeMap.style.right = '450px';
|
|
|
+ // if (navigation) legendBox.style.right = '450px';
|
|
|
+ // if (navigation) tuli.style.right = '500px';
|
|
|
+ // if (navigation) classLegend.style.left = '470px';
|
|
|
+ // if (navigation) classLegend2.style.left = '470px';
|
|
|
|
|
|
} else {
|
|
|
if (navigation) navigation.style.right = '-10px';
|
|
|
- if (navigation) tool.style.right = '20px';
|
|
|
- if (navigation) changeMap.style.right = '20px';
|
|
|
- if (navigation) legendBox.style.right = '20px';
|
|
|
- if (navigation) tuli.style.right = '20px';
|
|
|
- if (navigation) classLegend.style.left = '20px';
|
|
|
- if (navigation) classLegend2.style.left = '20px';
|
|
|
+ // if (navigation) tool.style.right = '20px';
|
|
|
+ // if (navigation) changeMap.style.right = '20px';
|
|
|
+ // if (navigation) legendBox.style.right = '20px';
|
|
|
+ // if (navigation) tuli.style.right = '20px';
|
|
|
+ // if (navigation) classLegend.style.left = '20px';
|
|
|
+ // if (navigation) classLegend2.style.left = '20px';
|
|
|
|
|
|
}
|
|
|
};
|
|
|
@@ -536,23 +534,23 @@ export default defineComponent({
|
|
|
this.infoShow = true;
|
|
|
if (this.mapStore.sideMenu) {
|
|
|
if (i == '初始范围') {
|
|
|
- this.px = ' right: 500px;top: 540px;';
|
|
|
+ this.px = ` right: ${this.windowRight+50}px;top: 540px;`;
|
|
|
} else if (i == '图层控制') {
|
|
|
- this.px = ' right: 500px;top: 570px;';
|
|
|
+ this.px = ` right: ${this.windowRight+50}px;top: 570px;`;
|
|
|
} else if (i == '底图切换') {
|
|
|
- this.px = ' right: 500px;top: 600px;';
|
|
|
+ this.px = ` right: ${this.windowRight+50}px;top: 600px;`;
|
|
|
} else if (i == '距离测量') {
|
|
|
- this.px = ' right: 500px;top: 630px;';
|
|
|
+ this.px = ` right: ${this.windowRight+50}px;top: 630px;`;
|
|
|
} else if (i == '面积测量') {
|
|
|
- this.px = ' right: 500px;top: 660px;';
|
|
|
+ this.px = ` right: ${this.windowRight+50}px;top: 660px;`;
|
|
|
} else if (i == '截图') {
|
|
|
- this.px = ' right: 500px;top: 690px;';
|
|
|
+ this.px = ` right: ${this.windowRight+50}px;top: 690px;`;
|
|
|
} else if (i == '收藏') {
|
|
|
- this.px = ' right: 500px;top: 710px;';
|
|
|
+ this.px = ` right: ${this.windowRight+50}px;top: 710px;`;
|
|
|
} else if (i == '面板收起') {
|
|
|
- this.px = ' right: 500px;top: 750px;';
|
|
|
+ this.px = ` right: ${this.windowRight+50}px;top: 750px;`;
|
|
|
} else if (i == '重要测站监测信息') {
|
|
|
- this.px = ' right: 500px;top: 730px;';
|
|
|
+ this.px = ` right: ${this.windowRight+50}px;top: 730px;`;
|
|
|
}
|
|
|
} else {
|
|
|
if (i == '初始范围') {
|