|
|
@@ -150,6 +150,10 @@ const columns = (type: string) => {
|
|
|
{
|
|
|
label: '累计油耗(L)',
|
|
|
prop: 'cumulativeFuelConsumption'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '平均时效(%)',
|
|
|
+ prop: 'transitTime'
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
@@ -157,7 +161,9 @@ const columns = (type: string) => {
|
|
|
const listLoading = ref(false)
|
|
|
|
|
|
const formatter = (row: List, column: any) => {
|
|
|
- return row[column.property] ?? 0
|
|
|
+ if (column.property === 'transitTime') {
|
|
|
+ return (Number(row.transitTime ?? 0) * 100).toFixed(2) + '%'
|
|
|
+ } else return row[column.property] ?? 0
|
|
|
}
|
|
|
|
|
|
const getList = useDebounceFn(async () => {
|