浏览代码

fix: 修改故障统计所有列表请求方式

Gaokun Wang 4 月之前
父节点
当前提交
31a96e46e6
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/api/als/faultStatistics.js
  2. 1 1
      src/views/home/index.vue

+ 1 - 1
src/api/als/faultStatistics.js

@@ -41,5 +41,5 @@ export const exportFaultStatisticsExcel = async (data) => {
 
 // 查询故障统计列表
 export const getFaultStatisticsListAll = async (data) => {
-  return await get('/als/faultStatistics/listAll', data)
+  return await post('/als/faultStatistics/listAll', data)
 }

+ 1 - 1
src/views/home/index.vue

@@ -149,7 +149,7 @@ export default {
       this.fetchIndexAnalysis()
     },
     async maintainFetchTableData() {
-      const { data } = await getFaultStatisticsListAll()
+      const { data } = await getFaultStatisticsListAll({})
       this.maintainTableData = data.filter((item) => {
         return item.repairStatus !== '已完成'
       })