Quellcode durchsuchen

平罗一期,二期;马场胡待完成

mw_666 vor 3 Jahren
Ursprung
Commit
f2129bfed7

+ 3 - 3
src/views/WindSite/components/generalappearance/dwk.vue

@@ -1686,11 +1686,11 @@
 				for (let key in data) {
 					// 渲染开关
 					const item = data[key];
-					if (key === "XHZ310") {
+					if (key === "dwkdqmx310") {
 						switchDom.eq(0).attr("fill", item ? this.green : this.red);
-					} else if (key === "XHZ314") {
+					} else if (key === "dwkdqmx314") {
 						switchDom.eq(1).attr("fill", item ? this.green : this.red);
-					} else if (key === "XHZ315") {
+					} else if (key === "dwkdqmx315") {
 						switchDom.eq(2).attr("fill", item ? this.green : this.red);
 					} else {
 						// 渲染电柜参数数据

Datei-Diff unterdrückt, da er zu groß ist
+ 1570 - 0
src/views/WindSite/components/generalappearance/mch.vue


Datei-Diff unterdrückt, da er zu groß ist
+ 1162 - 0
src/views/WindSite/components/generalappearance/pl1.vue


Datei-Diff unterdrückt, da er zu groß ist
+ 1972 - 0
src/views/WindSite/components/generalappearance/pl2.vue


+ 24 - 2
src/views/WindSite/pages/GeneralAppearance.vue

@@ -49,13 +49,21 @@
           <span class="sub-title gray">离线台数</span>
           <span class="sub-count font-num gray">{{ wpnumMap.lxts }}</span>
         </div>
+		
       </div>
+	  <div class="query-actions btnR" v-if="wpId == 'PL01_GC' || wpId == 'PL02_GC'">
+	    <button class="btn" :class="wpId == 'PL01_GC'?'green':''" @click="pl('PL01_GC')">平罗一期</button>
+	    <button class="btn" :class="wpId == 'PL02_GC'?'green':''" @click="pl('PL02_GC')">平罗二期</button>
+	  </div>
     </div>
     <!-- <gax6 class="general-appearance-body"></gax6> -->
     <div>
       <XS class="general-appearance-body" :data="fjmap" :zmmap="zmmap" v-if="wpId === 'XS_FDC'" />
       <XH class="general-appearance-body" :data="fjmap" :zmmap="zmmap" v-if="wpId === 'XH_GDC'" />
 	  <DWK class="general-appearance-body" :data="fjmap" :zmmap="zmmap" v-if="wpId === 'DWK_GDC'" />
+	  <PL1 class="general-appearance-body" :data="fjmap" :zmmap="zmmap" v-if="wpId === 'PL01_GC'" />
+	  <PL2 class="general-appearance-body" :data="fjmap" :zmmap="zmmap" v-if="wpId === 'PL02_GC'" />
+	  <MCH class="general-appearance-body" :data="fjmap" :zmmap="zmmap" v-if="wpId === 'MCH_GDC'" />
     </div>
   </div>
 </template>
@@ -66,6 +74,9 @@ import BtnGroup2 from "@com/coms/btn/btn-group-double.vue";
 import XS from "../components/generalappearance/xs.vue";
 import XH from "../components/generalappearance/xh.vue";
 import DWK from "../components/generalappearance/dwk.vue";
+import PL1 from "../components/generalappearance/pl1.vue";
+import PL2 from "../components/generalappearance/pl2.vue";
+import MCH from "../components/generalappearance/mch.vue";
 export default {
   // 名称
   name: "GeneralAppearance",
@@ -75,7 +86,10 @@ export default {
     BtnGroup2,
     XS,
     XH,
-	DWK
+	DWK,
+	PL1,
+	PL2,
+	MCH
   },
   // 数据
   data() {
@@ -140,6 +154,9 @@ export default {
                 code: ele.id,
               });
             } else {
+				if(ele.id == "PL_GDC"){
+					ele.id = 'PL01_GC';
+				}
               btnGroup[1].btns.push({
                 text: ele.name,
                 code: ele.id,
@@ -179,6 +196,11 @@ export default {
         });
       });
     },
+	pl(a){//单指平罗2个总貌
+		this.$router.replace({
+		  path: `/monitor/windsite/generalappearance/${a}`,
+		});
+	}
   },
   unmounted() {
     clearInterval(this.timmer);
@@ -207,7 +229,7 @@ export default {
     display: flex;
     flex-direction: row;
   }
-
+	.btnR{flex: 1;text-align: end;}
   .general-appearance-body {
     flex-grow: 1;
   }