|
@@ -65,6 +65,8 @@ import { getFaultStatisticsListAll, getAircaftTypeAndModelTree, removeFaultStati
|
|
import { debounce } from '@/utils/index'
|
|
import { debounce } from '@/utils/index'
|
|
import * as echarts from 'echarts'
|
|
import * as echarts from 'echarts'
|
|
import CardEcharts from '@/components/CardEcharts/index.vue'
|
|
import CardEcharts from '@/components/CardEcharts/index.vue'
|
|
|
|
+import { getAircaftType } from '@/api/basicData/dataSpecies'
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
name: 'FaultStatistics',
|
|
name: 'FaultStatistics',
|
|
components: { CardEcharts },
|
|
components: { CardEcharts },
|
|
@@ -193,7 +195,7 @@ export default {
|
|
this.debounceFn()
|
|
this.debounceFn()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
|
|
+ async created() {
|
|
let now = new Date()
|
|
let now = new Date()
|
|
let year = now.getFullYear()
|
|
let year = now.getFullYear()
|
|
let month = ('0' + (now.getMonth() + 1)).slice(-2)
|
|
let month = ('0' + (now.getMonth() + 1)).slice(-2)
|
|
@@ -207,12 +209,15 @@ export default {
|
|
const formattedTimeStart = year + '-' + month + '-' + day
|
|
const formattedTimeStart = year + '-' + month + '-' + day
|
|
|
|
|
|
this.statisticsDate = [formattedTimeStart, formattedTimeEnd]
|
|
this.statisticsDate = [formattedTimeStart, formattedTimeEnd]
|
|
|
|
+ const { data: atrData } = await getAircaftType()
|
|
|
|
+ this.select.groups = atrData[0].aircaftTypeName
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
if (this.statisticsDate != null) {
|
|
if (this.statisticsDate != null) {
|
|
this.select.startStatisticsDate = this.statisticsDate[0]
|
|
this.select.startStatisticsDate = this.statisticsDate[0]
|
|
this.select.endStatisticsDate = this.statisticsDate[1]
|
|
this.select.endStatisticsDate = this.statisticsDate[1]
|
|
}
|
|
}
|
|
|
|
+
|
|
this.getFaultStatisticsAPI(this.select)
|
|
this.getFaultStatisticsAPI(this.select)
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|