src/api/exceptionApi.js
@@ -16,8 +16,13 @@
        endTime: endTime,
        type:type
      }
    })
    }).then(res=>{ return res.data.data.sort((a,b)=>{
      const dateA = new Date(a.lst)
      const dateB = new Date(b.lst)
      return dateA - dateB
    })})
  },
  // 根据月份和类型查找分析数据
  analysisdataByType(month,type) {
    return $http.get('/dust/analysisdataByType', {
@@ -27,6 +32,7 @@
      }
    })
  },
  // 根据时段和类型查找分析数据
  analysisdataByTimeAndType(beginTime,endTime,type) {
    return $http.get('/dust/analysisdataByTimeAndType', {
@@ -59,10 +65,11 @@
  },
  
/**
 * 获取所有的点位名称和对应的设备编号
 * @param:
 * @returns:
 */
  getSitesNum() {
    return $http.get('/dust/sitename')
  },
@@ -78,5 +85,15 @@
      params.exceptionType = temp
    }
    return $http.get('/dust/exceptionsSiteName', { params: params })
  }
  },
  /**
   * 查询不同的异常类型
   * @param:
   * @returns:
   */
  queryExceptionType(){
    return $http.get('/dust/exceptiontype')
  },
}