Newer
Older
KaiFengPC / src / api / longoPeration / MaterialManagement.js
@zhangdeliang zhangdeliang on 23 Jun 997 bytes update
  1. import request from '@/utils/request';
  2. // 列表分页
  3. export function FloodPreventionMaterialpage(query) {
  4. return request({
  5. url: '/business/floodPreventionMaterial/page',
  6. method: 'get',
  7. params: query,
  8. });
  9. }
  10.  
  11. // 列表
  12. export function FloodPreventionMaterialList(query) {
  13. return request({
  14. url: '/business/floodPreventionMaterial/list',
  15. method: 'get',
  16. params: query,
  17. });
  18. }
  19.  
  20. // 新增排水防涝--防汛物资
  21. export function FloodPreventionMaterialadd(data) {
  22. return request({
  23. url: '/business/floodPreventionMaterial/add',
  24. method: 'post',
  25. data: data,
  26. });
  27. }
  28.  
  29. // 修改排水防涝--防汛物资
  30. export function FloodPreventionMaterialedit(data) {
  31. return request({
  32. url: '/business/floodPreventionMaterial/edit',
  33. method: 'put',
  34. data: data,
  35. });
  36. }
  37.  
  38. // 删除排水防涝--防汛物资
  39. export function FloodPreventionMaterialdelete(id) {
  40. return request({
  41. url: '/business/floodPreventionMaterial/' + id,
  42. method: 'delete',
  43. });
  44. }