Parcourir la source

超图功能临时禁用

彭宇 il y a 4 semaines
Parent
commit
238b0e6b72
1 fichiers modifiés avec 38 ajouts et 38 suppressions
  1. 38 38
      src/views/homePage.vue

+ 38 - 38
src/views/homePage.vue

@@ -88,10 +88,10 @@
 				<img src="../assets/index_img/r-bj.png" style="position: absolute" class="rotating-bg" />
 			</div>
 
-			<!-- 地图 -->
-			<supermap ref="supermap" style="width: 100%;height: 100vh;">
-			</supermap>
-			
+<!--			&lt;!&ndash; 地图 &ndash;&gt;-->
+<!--			<supermap ref="supermap" style="width: 100%;height: 100vh;">-->
+<!--			</supermap>-->
+
 			<!-- 底部按钮2层-->
 			<div class="btm-btn2">
 				<div class="btn-span2">
@@ -132,7 +132,7 @@
 
 <script>
 	import Cookies from 'js-cookie'
-	import supermap from '@/components/supermap-2.5d' //超图
+	// import supermap from '@/components/supermap-2.5d' //超图
 	import {
 		getUserProfile
 	} from "@/api/system/user";
@@ -145,7 +145,7 @@
 	let echarts = require('echarts')
 	export default {
 		components: {
-			supermap,
+			// supermap,
 		},
 		metaInfo() {
 			return {
@@ -165,7 +165,7 @@
 		},
 		mounted() {
 			// 初始化地图数据
-			this.getSuperMapUrl();
+			// this.getSuperMapUrl();
 			setTimeout(() => {
 				this.title = '全域视联态势感知平台'
 			}, 1000)
@@ -176,26 +176,26 @@
 			}
 		},
 		methods: {
-			getSuperMapUrl() {
-				getUserProfile().then(response => {
-					let mapDeptId = response.mapDeptId
-					let num = 0;
-					if (mapDeptId == "365") {
-						num = 0;
-					} else if (mapDeptId == "369") {
-						num = 1;
-					} else if (mapDeptId == "371") {
-						num = 2;
-					} else if (mapDeptId == "373") {
-						num = 3;
-					} else if (mapDeptId == "372") {
-						num = 4;
-					} else if (mapDeptId == "370") {
-						num = 5;
-					}
-					this.$refs.supermap.removeAllviewer(mapDeptId, -1);
-				});
-			},
+			// getSuperMapUrl() {
+			// 	getUserProfile().then(response => {
+			// 		let mapDeptId = response.mapDeptId
+			// 		let num = 0;
+			// 		if (mapDeptId == "365") {
+			// 			num = 0;
+			// 		} else if (mapDeptId == "369") {
+			// 			num = 1;
+			// 		} else if (mapDeptId == "371") {
+			// 			num = 2;
+			// 		} else if (mapDeptId == "373") {
+			// 			num = 3;
+			// 		} else if (mapDeptId == "372") {
+			// 			num = 4;
+			// 		} else if (mapDeptId == "370") {
+			// 			num = 5;
+			// 		}
+			// 		this.$refs.supermap.removeAllviewer(mapDeptId, -1);
+			// 	});
+			// },
 		},
 	}
 </script>
@@ -215,7 +215,7 @@
     	0% {
     		transform: translateY(-100px);
     	}
-    
+
     	100% {
     		transform: translateY(0);
     	}
@@ -285,7 +285,7 @@
 			filter: brightness(1);
 		}
 	}
-	
+
 
 	@keyframes rotate {
 		from {
@@ -306,22 +306,22 @@
 			transform: rotate(360deg);
 		}
 	}
-	
+
 	//底部导航上浮
 	@keyframes btnmove {
 		0% {
 			transform: translateY(200px);
 		}
-	
+
 		100% {
 			transform: translateY(0);
 		}
 	}
-	
+
 </style>
 <style rel="stylesheet/scss" lang="scss" scoped>
 	@import '@/assets/styles/base.scss';
-    
+
 	.lifeline-con {
 		background: url('../assets/index_img/b-bg.jpg') no-repeat;
 
@@ -474,7 +474,7 @@
 			animation: rotate 5s infinite linear;
 			z-index: 150;
 		}
-		
+
 		//底部按钮5个
 	    .life-btm-btn{
 			position: absolute;
@@ -483,7 +483,7 @@
 			display: flex;
 		    justify-content: center;
 			align-items: center;
-			
+
 			.btn-span:nth-child(1){
 				animation: btnmove 1s ;
 			}
@@ -502,7 +502,7 @@
 			.btn-span{
 				width: 166px;
 				height: 50px;
-				background:url('../assets/index_img/btm-btn.png') no-repeat center; 
+				background:url('../assets/index_img/btm-btn.png') no-repeat center;
 				text-align: center;
 				display: flex;
 				justify-content: center;
@@ -540,7 +540,7 @@
 				flex-direction: column;
 				align-items: center;
 				transition: all 0.3s;
-				
+
 				img{
 					width: 150px;
 					height: 100px;
@@ -564,4 +564,4 @@
 
 
 	}
-</style>
+</style>