Explorar el Código

三维报建恢复菜单

zpf hace 1 año
padre
commit
8f09d5793e

+ 2 - 2
src/components/Combinations/toolBar/toolBar.scss

@@ -56,8 +56,8 @@
     -ms-flex-pack: start;
     justify-content: flex-start;
     position: absolute;
-    top: 16px;
-    right: 234px;
+    top: 54px;
+    right: 1px;
     margin: 5px 0 0 5px;
     // background: url(/static/images/bigscreen/filter-bg.png) no-repeat;
     background-size: cover;

+ 4 - 4
src/components/Combinations/toolBar/toolBar.vue

@@ -1,7 +1,7 @@
 <template>
   <!-- 暂时隐藏工具栏 -->
-  <!-- <div v-if="ToolBarShow"> -->
-  <div v-if="false">
+  <div v-if="ToolBarShow">
+    <!-- <div v-if="true"> -->
 
     <!-- <div class="resourceTree" @click="choose(0)"></div> -->
     <div class="toolBar">
@@ -45,8 +45,8 @@
       <!-- </ul> -->
       <div style="display: none" class="sm-tool-btn" @click="toggleVisibility" :class="{ 'sm-tool-btn-only': !show }">
         <span class="iconfont" :class="!show
-            ? 'iconiEarth-R8-xiugai_shouqi'
-            : 'iconiEarth-R8-xiugai_zhankai'
+          ? 'iconiEarth-R8-xiugai_shouqi'
+          : 'iconiEarth-R8-xiugai_zhankai'
           "></span>
       </div>
     </div>

+ 22 - 10
src/views/map3d.vue

@@ -74,8 +74,8 @@
         <span>admin</span>
         <el-tooltip class="item" effect="dark" content="退出" placement="top">
           <i style="width: 24px;height: 24px;background-image: url('/static/images/overview/icon_LogOut.png'); cursor: pointer;"
-          @click="exit"></i>
-    </el-tooltip>
+            @click="exit"></i>
+        </el-tooltip>
       </div>
     </div>
     <div class="routerContainer">
@@ -91,11 +91,8 @@
     <div class="masking_bottom"></div>
     <div class="masking_right"></div>
     <div class="masking_right"></div> -->
-    <el-drawer :visible.sync="drawer" :with-header="false" :append-to-body="true" :show-close="false" >
-      <iframe
-        :src="aiModel"
-        style="width: 100%; height: 100%; position: absolute"
-      ></iframe>
+    <el-drawer :visible.sync="drawer" :with-header="false" :append-to-body="true" :show-close="false">
+      <iframe :src="aiModel" style="width: 100%; height: 100%; position: absolute"></iframe>
     </el-drawer>
 
   </div>
@@ -114,8 +111,8 @@ export default {
       formattedText: "",
       formattedTime: "",
       activeMenuId: 0,
-      drawer:false,
-      aiModel:window.aiModel
+      drawer: false,
+      aiModel: window.aiModel
     };
   },
   created() {
@@ -136,6 +133,19 @@ export default {
     },
     handleMenuSelect(item) {
       this.$router.push({ path: item });
+
+      if (item == "/checkmodel") {
+        store.setToolBarShow(true); //显示工具栏
+
+      } else {
+        store.setToolBarShow(true); //显示工具栏
+
+      }
+
+
+
+
+
       // 菜单切换的时候取消左或者右高亮菜单
       // var lis = document.querySelectorAll('.el-menu-demo1 li');
       // console.log(lis, "lis");
@@ -227,6 +237,7 @@ export default {
   color: cornflowerblue;
   cursor: pointer;
 }
+
 .ai {
   position: absolute;
   right: 110px;
@@ -234,6 +245,7 @@ export default {
   color: cornflowerblue;
   font-size: 24px;
 }
+
 .user {
   width: 85px;
   height: 40px;
@@ -426,7 +438,7 @@ export default {
   background-color: rgba(4, 16, 36, 0) !important;
   position: fixed;
   left: 9.3rem;
-  
+
   top: 1rem;
   font-weight: 700;