Newer
Older
KaiFengPC / src / api / project / home.js
@zhangdeliang zhangdeliang on 23 May 2 KB 初始化项目
  1.  
  2. import request from '@/utils/request'
  3. // 获取项目列列表
  4. export function selectProjectCount(params) {
  5. return request({
  6. url: `/business/homePage/selectProjectCount`,
  7. method: 'get',
  8. params
  9. })
  10. }
  11.  
  12. export function selectProjectMoneyTotal(params) {
  13. return request({
  14. url: `/business/homePage/selectProjectMoneyTotal`,
  15. method: 'get',
  16. params
  17. })
  18. }
  19.  
  20.  
  21. export function selectProjectEchartByYear(params) {
  22. return request({
  23. url: `/business/homePage/selectProjectEchartByYear`,
  24. method: 'get',
  25. params
  26. })
  27. }
  28. // 首页中查询项目质量数据
  29. export function selectProjectQualityHomePage(params) {
  30. return request({
  31. url: `/business/homePage/selectProjectQualityHomePage`,
  32. method: 'get',
  33. params
  34. })
  35. }
  36.  
  37. // 首页中查询项目合同数据
  38. export function selectProjectContractHomePage(params) {
  39. return request({
  40. url: `/business/homePage/selectProjectContractHomePage`,
  41. method: 'get',
  42. params
  43. })
  44. }
  45.  
  46. // 首页中查询项目巡查数据
  47. export function selectProjectPatrolHomePage(params) {
  48. return request({
  49. url: `/business/homePage/selectProjectPatrolHomePage`,
  50. method: 'get',
  51. params
  52. })
  53. }
  54. export const projectInfoAdd = data => {
  55. return request({
  56. url: `/business/projectProbablyBudget/add`,
  57. method: "post",
  58. data
  59. });
  60. };
  61.  
  62. export const getHomeStatistics = params => {
  63. return request({
  64. url: '/business/projectInfoNew/getHomeStatistics',
  65. method: "get",
  66. params
  67. });
  68. };
  69.  
  70. export const getProjectYearByType = type => {
  71. return request({
  72. url: `/business/projectInfoNew/getProjectYearByType/${type}`,
  73. method: "get"
  74. });
  75. };
  76.  
  77. export const getHomePageInfoByType = type => {
  78. return request({
  79. url: `/business/projectInfoNew/getHomePageInfoByType/${type}`,
  80. method: "get"
  81. });
  82. };
  83.  
  84. // 根据字典类型查询字典数据信息
  85. export function getDicts(dictType) {
  86. return request({
  87. url: '/system/dict/data/type/' + dictType,
  88. method: 'get'
  89. })
  90. }
  91.  
  92.  
  93.  
  94.