Newer
Older
KaiFengPC / src / api / project / home.js
@鲁yixuan 鲁yixuan on 19 Aug 1 KB updata
import request from '@/utils/request';
// 获取项目列列表
export function selectProjectCount(params) {
  return request({
    url: `/business/homePage/selectProjectCount`,
    method: 'get',
    params,
  });
}

export function selectProjectMoneyTotal(params) {
  return request({
    url: `/business/homePage/selectProjectMoneyTotal`,
    method: 'get',
    params,
  });
}

export function selectProjectEchartByYear(params) {
  return request({
    url: `/business/homePage/selectProjectEchartByYear`,
    method: 'get',
    params,
  });
}
// 首页中搜索项目质量数据
export function selectProjectQualityHomePage(params) {
  return request({
    url: `/business/homePage/selectProjectQualityHomePage`,
    method: 'get',
    params,
  });
}

// 首页中搜索项目合同数据
export function selectProjectContractHomePage(params) {
  return request({
    url: `/business/homePage/selectProjectContractHomePage`,
    method: 'get',
    params,
  });
}

// 首页中搜索项目巡查数据
export function selectProjectPatrolHomePage(params) {
  return request({
    url: `/business/homePage/selectProjectPatrolHomePage`,
    method: 'get',
    params,
  });
}
export const projectInfoAdd = data => {
  return request({
    url: `/business/projectProbablyBudget/add`,
    method: 'post',
    data,
  });
};

export const getHomeStatistics = params => {
  return request({
    url: '/business/projectInfoNew/getHomeStatistics',
    method: 'get',
    params,
  });
};

export const getProjectYearByType = type => {
  return request({
    url: `/business/projectInfoNew/getProjectYearByType/${type}`,
    method: 'get',
  });
};

export const getHomePageInfoByType = type => {
  return request({
    url: `/business/projectInfoNew/getHomePageInfoByType/${type}`,
    method: 'get',
  });
};

// 根据字典类型搜索字典数据信息
export function getDicts(dictType) {
  return request({
    url: '/system/dict/data/type/' + dictType,
    method: 'get',
  });
}