|
@@ -7,8 +7,6 @@ export function useFormatter(flag: Ref<boolean>) {
|
|
|
return unref(flag) ? columnLabel : columnLabel.replace('/件', '')
|
|
|
}
|
|
|
|
|
|
- const flightTypeMap = ['货机', '客机', '其他']
|
|
|
-
|
|
|
const tableDataFormatter: CommonTableFormatter = (
|
|
|
row,
|
|
|
{ label, property },
|
|
@@ -57,11 +55,7 @@ export function useFormatter(flag: Ref<boolean>) {
|
|
|
if (property === 'jiahuo') {
|
|
|
return cellValue ? '是' : '否'
|
|
|
}
|
|
|
- if (property === 'flightType') {
|
|
|
- return typeof cellValue === 'number'
|
|
|
- ? flightTypeMap[cellValue] ?? '其他'
|
|
|
- : '其他'
|
|
|
- }
|
|
|
+
|
|
|
return String(cellValue ?? '')
|
|
|
}
|
|
|
|