|
@@ -49,6 +49,27 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div
|
|
|
+ class="basemapBox"
|
|
|
+ :style="{
|
|
|
+ backgroundImage: 'url(' + baseMapCollectionArr[2].imgUrl + ')'
|
|
|
+ }"
|
|
|
+ @mouseenter="showMapList(baseMapCollectionArr[2].type)"
|
|
|
+ >
|
|
|
+ <div class="basemapBox-titlebox">
|
|
|
+ {{ baseMapCollectionArr[2].type }}
|
|
|
+ </div>
|
|
|
+ <div class="basemapBox-panel" v-show="otherChecked" @mouseleave="closePanelEvent">
|
|
|
+ <div
|
|
|
+ class="panel-item"
|
|
|
+ v-for="item in mapList[baseMapCollectionArr[2].type]"
|
|
|
+ :key="item.mapName"
|
|
|
+ @click="changeBaseMap(item)"
|
|
|
+ >
|
|
|
+ {{ item.abbr }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<LawPopup class="comprehensive-analysis-law-popup" />
|
|
|
<LabelCasePopup
|
|
@@ -434,10 +455,12 @@ export default {
|
|
|
caseAuditEventStatus: false,
|
|
|
satImgChecked: false,
|
|
|
airImgChecked: false,
|
|
|
+ otherChecked:false,
|
|
|
basemapChecked: "",
|
|
|
mapList: {
|
|
|
卫星影像: [],
|
|
|
- 航空影像: []
|
|
|
+ 航空影像: [],
|
|
|
+ 其他:[]
|
|
|
},
|
|
|
baseMapCollectionArr: [
|
|
|
{
|
|
@@ -449,6 +472,11 @@ export default {
|
|
|
id: 2,
|
|
|
type: "航空影像",
|
|
|
imgUrl: require("../assets/map/air_img.png")
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 3,
|
|
|
+ type: "其他",
|
|
|
+ imgUrl: require("../assets/map/others.png")
|
|
|
}
|
|
|
],
|
|
|
showJLInfo: false,
|
|
@@ -1117,6 +1145,7 @@ export default {
|
|
|
closePanelEvent() {
|
|
|
this.satImgChecked = false;
|
|
|
this.airImgChecked = false;
|
|
|
+ this.otherChecked = false
|
|
|
},
|
|
|
changeBase(val) {
|
|
|
this.basemap = val;
|
|
@@ -1125,6 +1154,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
changeBaseMap(data) {
|
|
|
+ console.log(data);
|
|
|
if (this.basemap == 2 && map2DViewer.map.hasLayer(map2DViewer.jlMap)) {
|
|
|
map2DViewer.map.removeLayer(map2DViewer.jlMap);
|
|
|
map2DViewer.jlMap = this.$store.state.mapMethodsCollection.get("RENDER").addTiledMapLayer(data.mapUrl);
|
|
@@ -1140,6 +1170,7 @@ export default {
|
|
|
this.$bus.$emit("reJLControl");
|
|
|
this.satImgChecked = false;
|
|
|
this.airImgChecked = false;
|
|
|
+ this.otherChecked = false
|
|
|
},
|
|
|
// 勾选镇时默认展开当前镇
|
|
|
changeTownEvent(val) {
|
|
@@ -1202,6 +1233,7 @@ export default {
|
|
|
return v.basemapType === "1";
|
|
|
});
|
|
|
this.satImgChecked = true;
|
|
|
+ this.otherChecked = false;
|
|
|
this.airImgChecked = false;
|
|
|
}
|
|
|
|
|
@@ -1210,7 +1242,17 @@ export default {
|
|
|
return v.basemapType === "2";
|
|
|
});
|
|
|
this.satImgChecked = false;
|
|
|
+ this.otherChecked = false;
|
|
|
this.airImgChecked = true;
|
|
|
+
|
|
|
+ }
|
|
|
+ if (val === "其他" && map2DViewer.baseMapCollection.length > 0) {
|
|
|
+ this.mapList["其他"] = map2DViewer.baseMapCollection.filter(v => {
|
|
|
+ return v.basemapType === "3";
|
|
|
+ });
|
|
|
+ this.satImgChecked = false;
|
|
|
+ this.airImgChecked = false
|
|
|
+ this.otherChecked = true;
|
|
|
}
|
|
|
},
|
|
|
// 清除页面所有数据
|
|
@@ -1834,6 +1876,7 @@ export default {
|
|
|
}
|
|
|
this.$Post(this.urlsCollection.selectByUser, paramData).then(res => {
|
|
|
if (res.code === 200 && res.content.length >= 1) {
|
|
|
+ console.log(res.content);
|
|
|
this.$store.state.myLabelPointsArr = [];
|
|
|
this.$store.state.myLabelPointsArr = res.content.map(v => {
|
|
|
let data = JSON.parse(v.geojson);
|
|
@@ -2819,7 +2862,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
&-basemapswitch {
|
|
|
- width: 300px;
|
|
|
+ width: 310px;
|
|
|
height: 80px;
|
|
|
// border: 1px solid black;
|
|
|
position: absolute;
|
|
@@ -2832,8 +2875,8 @@ export default {
|
|
|
.basemapBox {
|
|
|
cursor: pointer;
|
|
|
border-radius: 5px;
|
|
|
- width: 120px;
|
|
|
- height: 75px;
|
|
|
+ width: 90px;
|
|
|
+ height: 70px;
|
|
|
border: 1px solid rgba(255, 255, 255, 0.6);
|
|
|
background-repeat: no-repeat;
|
|
|
background-size: 99% 98%;
|
|
@@ -2852,7 +2895,7 @@ export default {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
&-panel {
|
|
|
- width: 100px;
|
|
|
+ width: 90px;
|
|
|
height: 150px;
|
|
|
border: 1px solid rgba(255, 255, 255, 0.6);
|
|
|
position: absolute;
|