|
@@ -29,10 +29,10 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
- <el-col :span="24" style="margin-bottom: 15px">
|
|
|
+ <el-col :span="24" style="margin-bottom: 65px">
|
|
|
<Card title="维修状态">
|
|
|
<template slot="content">
|
|
|
- <LTable ref="maintainTable" :defaultFetch="true" :columns="maintainColumns" :dataSource="maintainTableData" :options="maintainOptions" :fetch="maintainFetchTableData" class="tabl-box" />
|
|
|
+ <LTable ref="maintainTable" :defaultFetch="true" :columns="maintainColumns" :dataSource="maintainTableData" :options="maintainOptions" :fetch="maintainFetchTableData" :pagination="tableRequset" class="tabl-box" />
|
|
|
</template>
|
|
|
</Card>
|
|
|
</el-col>
|
|
@@ -90,7 +90,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { getHomeLastMission, getAviationList, getHomeAviationProject, getHomeAviationAmount, getHomeAviationMoney } from '@/api/home'
|
|
|
-import { getFaultStatisticsListAll } from '@/api/als/faultStatistics'
|
|
|
+import { getFaultStatisticsListAll, getFaultStatistics } from '@/api/als/faultStatistics'
|
|
|
import { getAircaftCatalogAll } from '@/api/als/aircraft'
|
|
|
|
|
|
import * as echarts from 'echarts'
|
|
@@ -119,7 +119,13 @@ export default {
|
|
|
bottomCenterOptions,
|
|
|
bottomRightOptions,
|
|
|
imgUrl: require('@/assets/images/飞机.png'),
|
|
|
- aircaftCatalogAll: []
|
|
|
+ aircaftCatalogAll: [],
|
|
|
+ tableRequset: {
|
|
|
+ total: 0,
|
|
|
+ pageIndex: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ searchValue: ''
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -149,8 +155,13 @@ export default {
|
|
|
this.fetchIndexAnalysis()
|
|
|
},
|
|
|
async maintainFetchTableData() {
|
|
|
- const { data } = await getFaultStatisticsListAll({})
|
|
|
- this.maintainTableData = data.filter((item) => {
|
|
|
+ const { pageSize, pageIndex } = this.tableRequset
|
|
|
+ const {
|
|
|
+ data: { list, total }
|
|
|
+ } = await getFaultStatistics({ pageSize, pageIndex })
|
|
|
+ // const { data } = await getFaultStatisticsListAll({})
|
|
|
+ this.tableRequset.total = total
|
|
|
+ this.maintainTableData = list.filter((item) => {
|
|
|
return item.repairStatus !== '已完成'
|
|
|
})
|
|
|
// this.getAircaftCatalogAllAPI()
|