|
@@ -2,6 +2,12 @@ import { CommonData, CommonValue } from '~/common'
|
|
|
import { Query } from '@/api/webApi'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
|
|
|
+const flightTypeMap = ['客机', '货机', '其他']
|
|
|
+const flightStateMap = {
|
|
|
+ CAN: '取消',
|
|
|
+ DLY: '延误',
|
|
|
+}
|
|
|
+
|
|
|
const flightInfoItemsMap = {
|
|
|
departure: [
|
|
|
[
|
|
@@ -23,7 +29,17 @@ const flightInfoItemsMap = {
|
|
|
},
|
|
|
{
|
|
|
label: '航班类型',
|
|
|
- key: 'flightType',
|
|
|
+ getter: info =>
|
|
|
+ typeof info.flightType === 'number'
|
|
|
+ ? flightTypeMap[info.flightType] ?? '其他'
|
|
|
+ : '其他',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '航班状态',
|
|
|
+ getter: info =>
|
|
|
+ info.flightState
|
|
|
+ ? flightStateMap[info.flightState] ?? '正常'
|
|
|
+ : '正常',
|
|
|
},
|
|
|
{
|
|
|
label: '停机位',
|
|
@@ -100,7 +116,17 @@ const flightInfoItemsMap = {
|
|
|
},
|
|
|
{
|
|
|
label: '航班类型',
|
|
|
- key: 'flightType',
|
|
|
+ getter: info =>
|
|
|
+ typeof info.flightType === 'number'
|
|
|
+ ? flightTypeMap[info.flightType] ?? '其他'
|
|
|
+ : '其他',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '航班状态',
|
|
|
+ getter: info =>
|
|
|
+ info.flightState
|
|
|
+ ? flightStateMap[info.flightState] ?? '正常'
|
|
|
+ : '正常',
|
|
|
},
|
|
|
],
|
|
|
[
|