expand.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import request from '@/utils/request'
  2. // 查询扩容申请列表
  3. export function listExpand(query) {
  4. return request({
  5. url: '/doc/expand/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询扩容申请详细
  11. export function getExpand(expandId) {
  12. return request({
  13. url: '/doc/expand/' + expandId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增扩容申请
  18. export function addExpand(data) {
  19. return request({
  20. url: '/doc/expand',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改扩容申请
  26. export function updateExpand(data) {
  27. return request({
  28. url: '/doc/expand',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 修改扩容申请
  34. export function yesExpand(expandId) {
  35. return request({
  36. url: '/doc/expand/yes/'+expandId,
  37. method: 'get',
  38. })
  39. }
  40. // 修改扩容申请
  41. export function noExpand(expandId) {
  42. return request({
  43. url: '/doc/expand/no/'+expandId,
  44. method: 'get',
  45. })
  46. }
  47. // 删除扩容申请
  48. export function delExpand(expandId) {
  49. return request({
  50. url: '/doc/expand/' + expandId,
  51. method: 'delete'
  52. })
  53. }