applyIpad.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. import request from '@/utils/request'
  2. // 查询分配记录列表
  3. export function listRecords(query) {
  4. return request({
  5. url: '/qw/records/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询分配记录详细
  11. export function getRecords(id) {
  12. return request({
  13. url: '/qw/records/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增分配记录
  18. export function addRecords(data) {
  19. return request({
  20. url: '/qw/records',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改分配记录
  26. export function updateRecords(data) {
  27. return request({
  28. url: '/qw/records',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除分配记录
  34. export function delRecords(id) {
  35. return request({
  36. url: '/qw/records/' + id,
  37. method: 'delete'
  38. })
  39. }
  40. // 导出分配记录
  41. export function exportRecords(query) {
  42. return request({
  43. url: '/qw/records/export',
  44. method: 'get',
  45. params: query
  46. })
  47. }
  48. export function apply(applyCount) {
  49. return request({
  50. url: '/qw/records/apply',
  51. method: 'get',
  52. params: applyCount
  53. })
  54. }
  55. // 新增分配记录
  56. //@PostMapping("/batchUpdate")
  57. // public AjaxResult batchUpdate(@RequestBody Long[] ids)
  58. //后端接收结构
  59. export function batchUpdate(data) {
  60. return request({
  61. url: '/qw/records/batchUpdate',
  62. method: 'post',
  63. data: data
  64. })
  65. }
  66. // 获取服务器信息
  67. export function getServerInfo(id) {
  68. return request({
  69. url: '/qw/records/server/' + id,
  70. method: 'get'
  71. })
  72. }
  73. export function release(data) {
  74. return request({
  75. url: '/qw/records/release',
  76. method: 'post',
  77. data: data
  78. })
  79. }