// 项管接口 import request from '@/utils/request' import config from '@/utils/baseConfig' import qs from 'qs' // 项目总数 export function fetchProjectCount (year) { return request({ baseURL: config.baseUrl, url: '/project/count', method: 'get', params: { params: year } }) } // 历年各类项目总数 export function fetchProjectCountByYear (params) { return request({ baseURL: config.baseUrl, url: '/project/countByYear', method: 'get', params: { params }, paramsSerializer: params => { return qs.stringify(params, { indices: false }) } }) } // 某年各类项目总数 export function fetchProjectCountByType (year) { return request({ baseURL: config.baseUrl, url: '/project/countByType', method: 'get', params: { params: year } }) } // 各状态项目总数 export function fetchProjectCountByState (year) { return request({ baseURL: config.baseUrl, url: '/project/countByState', method: 'get', params: { params: year } }) } // 项目总投资额 export function fetchProjectInvestment (year) { return request({ baseURL: config.baseUrl, url: '/project/investment', method: 'get', params: { params: year } }) } // 某年各类项目投资额 export function fetchProjectInvestmentByType (year) { return request({ baseURL: config.baseUrl, url: '/project/investmentByType', method: 'get', params: { params: year } }) }