Newer
Older
KaiFengPC / src / api / project / environmentalMonitoring.js
@鲁yixuan 鲁yixuan on 19 Aug 1 KB updata
  1. import request from '@/utils/request';
  2. // 获取项目列列表
  3. export function getInfo(params) {
  4. return request({
  5. url: `/business/environmentComment/page`,
  6. method: 'get',
  7. params,
  8. });
  9. }
  10. export const projectInfoAdd = data => {
  11. return request({
  12. url: `/business/environmentComment/add`,
  13. method: 'post',
  14. data,
  15. });
  16. };
  17. export const projectInfoDelete = ids => {
  18. return request({
  19. url: `/business/environmentComment/${ids}`,
  20. method: 'delete',
  21. });
  22. };
  23.  
  24. export const projectInfoGet = ids => {
  25. return request({
  26. url: `/business/environmentComment/${ids}`,
  27. method: 'get',
  28. });
  29. };
  30. //导出接口
  31. export const multiTableWrite = params => {
  32. return request({
  33. url: `/newApi/report/multiTableWrite?time=${params}`,
  34. method: 'get',
  35. responseType: 'arraybuffer',
  36. });
  37. };
  38.  
  39. // 表搜索项目类型
  40. export function projectTypeList(params) {
  41. return request({
  42. url: `/business/projectType/list`,
  43. method: 'get',
  44. params,
  45. });
  46. }
  47. // 列表搜索项目单位
  48. export function projectCompany(params) {
  49. return request({
  50. url: `/business/projectCompany/list`,
  51. method: 'get',
  52. params,
  53. });
  54. }
  55.  
  56. // 搜索用户个人信息
  57. export function getUserProfile() {
  58. return request({
  59. url: '/system/user/profile',
  60. method: 'get',
  61. });
  62. }
  63.  
  64. export function userList() {
  65. return request({
  66. url: '/system/user/list',
  67. method: 'get',
  68. });
  69. }
  70.  
  71. export function projectInfoSubmit(data) {
  72. return request({
  73. url: '/business/environmentComment/submit',
  74. method: 'post',
  75. data,
  76. });
  77. }
  78. // 审核项目立项
  79. export function projectInfoapprovet(data) {
  80. return request({
  81. url: '/business/environmentComment/approve',
  82. method: 'post',
  83. data,
  84. });
  85. }