|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<!-- 暂时隐藏工具栏 -->
|
|
|
<!-- <div v-show="ToolBarShow"> -->
|
|
|
- <div v-if="true">
|
|
|
+ <div v-if="true">
|
|
|
|
|
|
<!-- <div class="resourceTree" @click="choose(0)"></div> -->
|
|
|
<div class="toolBar">
|
|
@@ -46,6 +46,9 @@
|
|
|
<li class="sm-btn sm-tool-btn" :title="Resource.sceneOptions" @click="choose(3)">
|
|
|
<i class="el-icon-setting"></i>
|
|
|
</li>
|
|
|
+ <li class="sm-btn sm-tool-btn" title="行政区划开关" @click="choose(11)">
|
|
|
+ <i class="el-icon-map-location"></i>
|
|
|
+ </li>
|
|
|
<!-- </ul> -->
|
|
|
<div style="display: none" class="sm-tool-btn" @click="toggleVisibility" :class="{ 'sm-tool-btn-only': !show }">
|
|
|
<span class="iconfont" :class="!show
|
|
@@ -82,6 +85,8 @@
|
|
|
import clickQuery from "../../Query/clickQuery/clickQuery.vue";
|
|
|
import { GetXzqhTree, GetXzqhGeom } from "@/api/map";
|
|
|
import Bookmark from "../../Bookmark/Bookmark.vue";
|
|
|
+import * as cockpit from "@/common/js/cockpit.js";
|
|
|
+
|
|
|
export default {
|
|
|
components: { clickQuery, Bookmark },
|
|
|
name: "ToolBar",
|
|
@@ -245,7 +250,16 @@ export default {
|
|
|
this.show = !this.show;
|
|
|
},
|
|
|
choose(i) {
|
|
|
- store.setToolBarAction(i);
|
|
|
+ if (i == 11) {
|
|
|
+ store.state.xzqh_flag = !store.state.xzqh_flag
|
|
|
+ // 隐藏行政区划console.log();
|
|
|
+ cockpit.hidden_xzqh(store.state.xzqh_flag);
|
|
|
+ // 隐藏墙体
|
|
|
+ cockpit.hidden_wall(store.state.xzqh_flag);
|
|
|
+ } else {
|
|
|
+ store.setToolBarAction(i);
|
|
|
+
|
|
|
+ }
|
|
|
},
|
|
|
},
|
|
|
watch: {
|