|
@@ -56,15 +56,16 @@
|
|
|
<el-option value="out" label="出港航班" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="planeType" style="width: 108px">
|
|
|
+ <el-form-item prop="flightType" style="width: 108px">
|
|
|
<el-select
|
|
|
- v-model="formData.planeType"
|
|
|
+ v-model="formData.flightType"
|
|
|
size="default"
|
|
|
placeholder="航班类型"
|
|
|
clearable
|
|
|
>
|
|
|
- <el-option value="货机" label="货机" />
|
|
|
- <el-option value="客机" label="客机" />
|
|
|
+ <el-option :value="0" label="客机" />
|
|
|
+ <el-option :value="1" label="货机" />
|
|
|
+ <el-option :value="2" label="其他" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="sAirport" style="width: 108px">
|
|
@@ -99,9 +100,9 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="flightType" style="width: 108px">
|
|
|
+ <el-form-item prop="planeType" style="width: 108px">
|
|
|
<el-select
|
|
|
- v-model="formData.flightType"
|
|
|
+ v-model="formData.planeType"
|
|
|
size="default"
|
|
|
placeholder="属性"
|
|
|
clearable
|
|
@@ -205,10 +206,10 @@ const today = parseTime(new Date(), '{y}-{m}-{d}') as string
|
|
|
const formData = reactive({
|
|
|
flightDate: today,
|
|
|
inOrOut: 'out',
|
|
|
- planeType: '',
|
|
|
+ flightType: '',
|
|
|
sAirport: '',
|
|
|
eAirport: '',
|
|
|
- flightType: '',
|
|
|
+ planeType: '',
|
|
|
sFlightDate: '',
|
|
|
company: '',
|
|
|
startDate: today,
|
|
@@ -358,6 +359,11 @@ const tableInit = () => {
|
|
|
|
|
|
const { columnChecked } = useTableColumnSet(tableColumns)
|
|
|
|
|
|
+const flightStateMap = {
|
|
|
+ CAN: '取消',
|
|
|
+ DLY: '延误',
|
|
|
+}
|
|
|
+const flightTypeMap = ['客机', '货机', '其他']
|
|
|
const formatter: CommonTableFormatter = (row, column, cellValue, index) => {
|
|
|
const value = String(cellValue ?? '').trim()
|
|
|
if (column.property.includes('Time')) {
|
|
@@ -366,6 +372,12 @@ const formatter: CommonTableFormatter = (row, column, cellValue, index) => {
|
|
|
if (column.property === 'DIType' && value) {
|
|
|
return value === 'DOM' ? '国内' : '国际'
|
|
|
}
|
|
|
+ if (column.property === 'flightState') {
|
|
|
+ return value ? flightStateMap[value] ?? '正常' : '正常'
|
|
|
+ }
|
|
|
+ if (column.property === 'flightType') {
|
|
|
+ return typeof cellValue === 'number' ? flightTypeMap[cellValue] : '其他'
|
|
|
+ }
|
|
|
return value
|
|
|
}
|
|
|
|