Przeglądaj źródła

更新 显示逻辑

wzh 4 lat temu
rodzic
commit
ef88936ec2
1 zmienionych plików z 17 dodań i 1 usunięć
  1. 17 1
      src/views/transportationSafetyCenter.vue

+ 17 - 1
src/views/transportationSafetyCenter.vue

@@ -5,10 +5,26 @@
       class="ship-search"
       style="position: absolute; top: 40px; right: 524px"
     ></ShipSearch>
-    <NumberVue style="position: absolute; top: 0; left: 0"></NumberVue>
+    <NumberVue
+      v-if="this.$store.state.currentTabText != '环境中心'"
+      style="position: absolute; top: 0; left: 0"
+    ></NumberVue>
     <SafetyModule
+      v-if="this.$store.state.currentTabText == '运输安全管理中心'"
       style="position: absolute; top: 24px; right: 34px"
     ></SafetyModule>
+    <IntelligentModule
+      v-if="this.$store.state.currentTabText == '智能交易中心'"
+      style="position: absolute; top: 24px; right: 34px"
+    ></IntelligentModule>
+    <EnvironmentalModule
+      v-if="this.$store.state.currentTabText == '环境中心'"
+      style="position: absolute; top: 24px; right: 34px"
+    ></EnvironmentalModule>
+    <Warning
+      v-if="this.$store.state.currentTabText == '环境中心'"
+      style="position: absolute; top: 40px; left: 20px; right: 744px"
+    ></Warning>
   </div>
 </template>