statistics.js 1.25 KB
/*
 * @Author: yangwei
 * @Date: 2023-03-09 09:29:52
 * @LastEditors: yangwei
 * @LastEditTime: 2023-03-09 10:31:31
 * @FilePath: \bdcjg-web\src\api\statistics.js
 * @Description: 
 * 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
 */
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('sbApiUrl'))
const url = SERVER.SERVERAPI + '/rest/statistics/Efficient/'
/**
 * dataReceiveQuality
 * @param startDate
 * @param endDate
 * @returns {AxiosPromise}
 */
export function dataReceiveQuality (startDate, endDate) {
  return request({
    url: url + 'dataReceiveQuality?startDate=' + startDate + '&endDate=' + endDate,
    method: 'post'
  })
}

/**
 * 空项率统计
 * @returns {AxiosPromise}
 * @param startDate
 * @param endDate
 */
export function nonNullSta (startDate, endDate) {
  return request({
    url: url + 'nonNullSta?startDate=' + startDate + '&endDate=' + endDate,
    method: 'post'
  })
}

/**
 * 登簿质量统计
 * @returns {AxiosPromise}
 * @param startDate
 * @param endDate
 */
export function registerBookQuality (startDate, endDate) {
  return request({
    url: url + 'registerBookQuality?startDate=' + startDate + '&endDate=' + endDate,
    method: 'post'
  })
}