|
@@ -63,8 +63,6 @@ export default {
|
|
|
if (code == 200) {
|
|
|
this.dialogTableData = data.list
|
|
|
this.tableRequset.total = data.totalCount
|
|
|
- debugger
|
|
|
-
|
|
|
//获取飞机故障统计集合
|
|
|
const { code: healthCode, data: healthData } = await getFaultStatisticsList()
|
|
|
if (healthCode == 200) {
|
|
@@ -74,11 +72,13 @@ export default {
|
|
|
healthStatusMap[item.aircraftNum] = item.repairStatus
|
|
|
})
|
|
|
this.dialogTableData.forEach(async (aircraft) => {
|
|
|
- aircraft.healthStatus = healthStatusMap[aircraft.aircaftCatalogCode] || ''
|
|
|
+ // aircraft.healthStatus = healthStatusMap[aircraft.aircaftCatalogCode] || ''
|
|
|
+ const hasFault = healthStatusMap.hasOwnProperty(aircraft.aircaftCatalogCode)
|
|
|
+ aircraft.healthStatus = hasFault ? '故障' : '健康'
|
|
|
})
|
|
|
} else {
|
|
|
this.dialogTableData.forEach(async (aircraft) => {
|
|
|
- aircraft.healthStatus = ''
|
|
|
+ aircraft.healthStatus = '健康'
|
|
|
})
|
|
|
}
|
|
|
//强制更新列定义
|