Browse Source

升压站title改

mw_666 3 years ago
parent
commit
972bb337ff
1 changed files with 17 additions and 6 deletions
  1. 17 6
      src/views/WindSite/pages/BoosterStation.vue

+ 17 - 6
src/views/WindSite/pages/BoosterStation.vue

@@ -22,7 +22,10 @@
 
     <!-- 香山 -->
     <XS class="booster-station-body" v-if="wpId === 'XS_FDC'" />
-
+	
+	<!-- 宋堡第六 -->
+	<SBDL class="booster-station-body" v-if="wpId === 'QS3_FDC'" />
+	
     <!-- 大武口 -->
     <DWK class="booster-station-body" v-if="wpId === 'DWK_GDC'" />
 
@@ -30,13 +33,14 @@
     <PL1 class="booster-station-body" v-if="wpId === 'PL_GDC'" />
 
     <!-- 平罗二期 -->
-    <PL2 class="booster-station-body" v-if="wpId === 'PL_GDC'" />
+    <PL2 class="booster-station-body" v-if="wpId === 'PL2_GDC'" />
 
     <!-- 宣和 -->
     <XH class="booster-station-body" v-if="wpId === 'XH_GDC'" />
 
     <!-- 马场湖 -->
     <MCH class="booster-station-body" v-if="wpId === 'MCH_GDC'" />
+	
   </div>
 </template>
 
@@ -47,7 +51,7 @@ import MHS from "../components/boosterstation/mhs.vue";
 import NSS from "../components/boosterstation/nss.vue";
 import QS from "../components/boosterstation/qs.vue";
 import SBQ from "../components/boosterstation/sbq.vue";
-// import SBDL from "../components/boosterstation/sbdl.vue";
+import SBDL from "../components/boosterstation/sbdl.vue";
 import XS from "../components/boosterstation/xs.vue";
 import DWK from "../components/boosterstation/dwk.vue";
 import PL1 from "../components/boosterstation/pl1.vue";
@@ -66,7 +70,7 @@ export default {
     NSS,
     QS,
     SBQ,
-    // SBDL,
+    SBDL,
     XS,
     DWK,
     PL1,
@@ -102,7 +106,6 @@ export default {
   // 函数
   methods: {
     select(res) {
-      console.log(2333, res.code);
       this.$router.replace({
         path: `/monitor/windsite/boosterstation/${res.code}`,
       });
@@ -137,7 +140,15 @@ export default {
               });
             }
           });
-
+			btnGroup[1].btns.push({
+			  text: '平罗二期光伏电站',
+			  code: 'PL2_GDC',
+			});
+			// 当点击为宋六时
+			btnGroup[0].btns.push({
+			  text: '宋堡第六风电场',
+			  code: 'QS3_FDC',
+			});
           that.btnGroups = btnGroup;
           that.renderBtnActiveIndex();
         },