Browse Source

在线机场更新时间1秒

李富豪 1 year ago
parent
commit
8078e8f6b5

+ 1 - 2
Web/src/components/airport/index.vue

@@ -13,7 +13,7 @@
       </div>
     </div>
     <div class="content-info">
-      <div class="content-info-left">
+      <div class="content-info-left" :style="{ width: lookInfo ? 'calc(100% - 20px)' : '100%' }">
         <div class="content-info-left-style">
           <div class="content-info-left-style-title">
             {{ dock.gateway.callsign }} - {{ dock.callsign }}
@@ -172,7 +172,6 @@ const hangarLogInfo = computed(() => {
     display: flex;
 
     &-left {
-      width: calc(100% - 20px);
       padding: 5px;
       font-size: 12px;
 

+ 1 - 1
Web/src/pages/page-web/projects/task/taskList/index.vue

@@ -216,7 +216,7 @@ onMounted(async () => {
       }, { deep: true }
     )
     getOnlineDeviceHms()
-  }, 3000)
+  }, 1000)// 默认3秒,此时改成1秒
   await fetchList();
 });
 

+ 1 - 1
Web/src/pages/page-web/projects/tsa.vue

@@ -103,7 +103,7 @@ onMounted(() => {
       }, { deep: true }
     )
     getOnlineDeviceHms()
-  }, 3000)
+  }, 1000)// 默认3秒,此时改成1秒
   const element = document.getElementsByClassName('scrollbar').item(0) as HTMLDivElement
   const parent: any = element?.parentNode as HTMLDivElement
   scorllHeight.value = parent?.clientHeight - parent?.firstElementChild?.clientHeight