Browse Source

实时视图-国内进港视图-航班筛选修改

zhongxiaoyu 2 years ago
parent
commit
481d1115ca

+ 12 - 0
src/views/realTime/components/AirportView/AirportForm.vue

@@ -156,6 +156,18 @@ onMounted(() => {
       value: 'groundService',
     })
   }
+  if (props.name === 'ArrivalAirport') {
+    flightStateOptions.value.push(
+      {
+        label: '深航地服',
+        value: 'groundServiceSZ',
+      },
+      {
+        label: '机场地服',
+        value: 'groundService',
+      }
+    )
+  }
 })
 const flightWarningOptions = ref([
   {

+ 2 - 0
src/views/realTime/components/AirportView/index.vue

@@ -326,6 +326,8 @@ const flightStateFilter = computed<{} | { [x: string]: string[] }>(() => {
       return { flightState: ['CAN'] }
     case 'groundService':
       return { groundService: ['Y'] }
+    case 'groundServiceSZ':
+      return { groundServiceSZ: ['Y'] }
     default:
       return {}
   }

+ 9 - 0
src/views/realTime/components/AirportView/useFlightState.ts

@@ -57,6 +57,15 @@ export function useFlightState(
       ) {
         row.groundService = 'Y'
       }
+      if (name === 'ArrivalAirport') {
+        if (
+          (['ZH', 'CA', 'KY', 'SC'] as CommonValue[]).includes(row.IATACode)
+        ) {
+          row.groundServiceSZ = 'Y'
+        } else {
+          row.groundService = 'Y'
+        }
+      }
       if (
         name.includes('ArrivalAirport') &&
         typeof row.planLandingTime === 'string'