Quellcode durchsuchen

航班类型对应修改

zhongxiaoyu vor 2 Jahren
Ursprung
Commit
74a861f0c8

+ 3 - 3
src/views/dataQuery/components/DataQueryView/index.vue

@@ -63,8 +63,8 @@
               placeholder="航班类型"
               clearable
             >
-              <el-option :value="0" label="机" />
-              <el-option :value="1" label="机" />
+              <el-option :value="0" label="机" />
+              <el-option :value="1" label="机" />
               <el-option :value="2" label="其他" />
             </el-select>
           </el-form-item>
@@ -363,7 +363,7 @@ const flightStateMap = {
   CAN: '取消',
   DLY: '延误',
 }
-const flightTypeMap = ['客机', '货机', '其他']
+const flightTypeMap = ['货机', '客机', '其他']
 const formatter: CommonTableFormatter = (row, column, cellValue, index) => {
   const value = String(cellValue ?? '').trim()
   if (column.property.includes('Time')) {

+ 1 - 1
src/views/realTime/components/AirportView/useFormatter.ts

@@ -7,7 +7,7 @@ export function useFormatter(flag: Ref<boolean>) {
     return unref(flag) ? columnLabel : columnLabel.replace('/件', '')
   }
 
-  const flightTypeMap = ['客机', '货机', '其他']
+  const flightTypeMap = ['货机', '客机', '其他']
 
   const tableDataFormatter: CommonTableFormatter = (
     row,

+ 1 - 1
src/views/realTime/components/FlightView/useFlightInfo.ts

@@ -2,7 +2,7 @@ import { CommonData, CommonValue } from '~/common'
 import { Query } from '@/api/webApi'
 import { ElMessage } from 'element-plus'
 
-const flightTypeMap = ['客机', '货机', '其他']
+const flightTypeMap = ['货机', '客机', '其他']
 const flightStateMap = {
   CAN: '取消',
   DLY: '延误',