소스 검색

航站视图-航班数量统计修改

zhongxiaoyu 2 년 전
부모
커밋
719a3f0700
1개의 변경된 파일19개의 추가작업 그리고 9개의 파일을 삭제
  1. 19 9
      src/views/realTime/components/AirportView/index.vue

+ 19 - 9
src/views/realTime/components/AirportView/index.vue

@@ -51,22 +51,27 @@
           >
             <template #footer>
               <div class="table-footer">
-                <!-- <span class="table-footer-count">航班总数:{{ tableDataCount.flightCount }}</span> -->
+                <span class="table-footer-count"
+                  >今日航班总数:{{ tableDataCount.flightCount }}</span
+                >
                 <span class="table-footer-count"
                   >货运航班总数:{{ tableDataCount.freightFlightCount }}</span
                 >
+                <span class="table-footer-count"
+                  >货站交接总数:{{ tableDataCount.depotFlightCount }}</span
+                >
                 <span v-if="isDeparture" class="table-footer-count"
                   >已装机总数:{{ tableDataCount.loadCount }}</span
                 >
                 <span v-else class="table-footer-count"
                   >已卸机总数:{{ tableDataCount.unloadCount }}</span
                 >
-                <span v-if="isDeparture" class="table-footer-count"
-                  >已起飞总数:{{ tableDataCount.dealedCount }}</span
+                <!-- <span v-if="isDeparture" class="table-footer-count"
+                  >已起飞总数:{{ dealedCount }}</span
                 >
                 <span v-else class="table-footer-count"
-                  >已降落总数:{{ tableDataCount.dealedCount }}</span
-                >
+                  >已降落总数:{{ dealedCount }}</span
+                > -->
               </div>
             </template>
           </el-table-v2>
@@ -209,17 +214,22 @@ const tableDataCount = computed(() =>
         counts.waybillCount += Number(String(preCount).split('/')[0])
         counts.goodsCount += Number(String(preCount).split('/')[1])
       }
-      counts.flightCount++
+      if (typeof current['allNumber'] === 'number') {
+        counts.flightCount = current['allNumber']
+      }
+      if (current['depotJoinTime'] || current['depotJoinTime_IN']) {
+        counts.depotFlightCount++
+      }
       const isFreight = tableColumns.value.some(
         column => column.groupName === '地服相关' && current[column.columnName]
       )
       if (isFreight) {
         counts.freightFlightCount++
       }
-      if (current.loadPlaneSureTime) {
+      if (current['loadPlaneSureTime']) {
         counts.loadCount++
       }
-      if (current.unLoadTime) {
+      if (current['unLoadTime']) {
         counts.unloadCount++
       }
       return counts
@@ -228,10 +238,10 @@ const tableDataCount = computed(() =>
       waybillCount: 0,
       goodsCount: 0,
       flightCount: 0,
+      depotFlightCount: 0,
       freightFlightCount: 0,
       loadCount: 0,
       unloadCount: 0,
-      dealedCount: dealedCount.value,
     }
   )
 )