Przeglądaj źródła

优化导航链接与页面组件

彭宇 3 tygodni temu
rodzic
commit
a9254897f7

+ 2 - 0
src/views/Cockpit.vue

@@ -668,6 +668,8 @@ export default {
     clearAll() {
       this.$refs.supermap.closeMeasuringAll()
       this.$refs.supermap.closeExcavationAll()
+      this.checkedCities = []
+      this.$refs.supermap.addLifelineOpen(this.checkedCities)
     }
   }
 }

+ 9 - 3
src/views/SenEquipmentCenter.vue

@@ -3,12 +3,18 @@
 	<div class="visual-con hz_body">
 		<div class="s_header">
 			<div class="head_btn">
-				<a><i>驾驶舱</i></a>
-				<a class="on"><i>设备中心</i></a>
+        <router-link to="/SentryCockpit">
+          <i>驾驶舱</i>
+        </router-link>
+        <router-link class="on"  to="/SenEquipmentCenter">
+          <i>设备中心</i>
+        </router-link>
 			</div>
 			<div class="header_tit"><i>{{title}}</i></div>
 			<div class="head_btn">
-				<a><i>事件中心</i></a>
+        <router-link to="/SenEventCenter">
+          <i>事件中心</i>
+        </router-link>
         <router-link to="/useCenter">
           <i>用户中心</i>
         </router-link>

+ 12 - 4
src/views/SenEventCenter.vue

@@ -3,13 +3,21 @@
 	<div class="visual-con hz_body">
 		<div class="s_header">
 			<div class="head_btn">
-				<a><i>驾驶舱</i></a>
-				<a><i>设备中心</i></a>
+        <router-link to="/SentryCockpit">
+          <i>驾驶舱</i>
+        </router-link>
+        <router-link  to="/SenEquipmentCenter">
+          <i>设备中心</i>
+        </router-link>
 			</div>
 			<div class="header_tit"><i>{{title}}</i></div>
 			<div class="head_btn">
-				<a class="on"><i>事件中心</i></a>
-				<a><i>用户中心</i></a>
+        <router-link class="on" to="/SenEventCenter">
+          <i>事件中心</i>
+        </router-link>
+        <router-link to="/useCenter">
+          <i>用户中心</i>
+        </router-link>
 			</div>
 			<div class="head_tx">
 				<span><img src="../assets/images/sentinel/hz_tx.png"/></span>

+ 15 - 7
src/views/SentryCockpit.vue

@@ -3,13 +3,21 @@
 	<div class="visual-con hz_body">
 		<div class="s_header">
 			<div class="head_btn">
-				<a class="on"><i>驾驶舱</i></a>
-				<a><i>设备中心</i></a>
+        <router-link class="on" to="/SentryCockpit">
+          <i>驾驶舱</i>
+        </router-link>
+        <router-link to="/SenEquipmentCenter">
+          <i>设备中心</i>
+        </router-link>
 			</div>
 			<div class="header_tit"><i>{{title}}</i></div>
 			<div class="head_btn">
-				<a><i>事件中心</i></a>
-				<a><i>用户中心</i></a>
+        <router-link to="/SenEventCenter">
+          <i>事件中心</i>
+        </router-link>
+        <router-link to="/useCenter">
+          <i>用户中心</i>
+        </router-link>
 			</div>
 			<div class="head_tx">
 				<span><img src="../assets/images/sentinel/hz_tx.png" /></span>
@@ -51,7 +59,7 @@
 						<img src="../assets/images/sentinel/xg.png" alt="" />
 						<img src="../assets/images/sentinel/bc.png" alt="" />
 					</div>
-						
+
 					</h1>
 					<p>管道编号:RQHSBJ20250503</p>
 					<p>管道名称:紫气大路管道</p>
@@ -1064,7 +1072,7 @@
 		display: flex;
 		align-items: center;
 		float: right;
-		
+
 		img{
 			margin-left: 10px;
 		}
@@ -1110,4 +1118,4 @@
 </style>
 <style rel="stylesheet/scss" lang="scss" scoped>
 	@import '@/assets/styles/base.scss';
-</style>
+</style>

+ 9 - 3
src/views/useCenter.vue

@@ -3,15 +3,21 @@
 	<div class="visual-con hz_body">
 		<div class="s_header">
 			<div class="head_btn">
-				<a><i>驾驶舱</i></a>
+        <router-link to="/SentryCockpit">
+          <i>驾驶舱</i>
+        </router-link>
         <router-link to="/SenEquipmentCenter">
           <i>设备中心</i>
         </router-link>
 			</div>
 			<div class="header_tit"><i>{{title}}</i></div>
 			<div class="head_btn">
-				<a><i>事件中心</i></a>
-				<a class="on"><i>用户中心</i></a>
+        <router-link to="/SenEventCenter">
+          <i>事件中心</i>
+        </router-link>
+        <router-link class="on"  to="/useCenter">
+          <i>用户中心</i>
+        </router-link>
 			</div>
 			<div class="head_tx">
 				<span><img src="../assets/images/sentinel/hz_tx.png"/></span>