bdglweekwork.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import request from '@/utils/request'
  2. // 查询一周工作安排列表
  3. export function listBdglweekwork(query) {
  4. return request({
  5. url: '/grassrootsregistration/bdglweekwork/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询一周工作安排详细
  11. export function getBdglweekwork(id) {
  12. return request({
  13. url: '/grassrootsregistration/bdglweekwork/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 预览训练器材/教材登记薄
  18. export function lookequipuntits(id) {
  19. return request({
  20. url: '/grassrootsregistration/bdglweekwork/exportWeekwork?id=' + id,
  21. method: 'get'
  22. })
  23. }
  24. // 新增一周工作安排
  25. export function addBdglweekwork(data) {
  26. return request({
  27. url: '/grassrootsregistration/bdglweekwork',
  28. method: 'post',
  29. data: data
  30. })
  31. }
  32. // 修改一周工作安排
  33. export function updateBdglweekwork(data) {
  34. return request({
  35. url: '/grassrootsregistration/bdglweekwork',
  36. method: 'put',
  37. data: data
  38. })
  39. }
  40. // 删除一周工作安排
  41. export function delBdglweekwork(id) {
  42. return request({
  43. url: '/grassrootsregistration/bdglweekwork/' + id,
  44. method: 'delete'
  45. })
  46. }
  47. // 导出一周工作安排
  48. export function exportBdglweekwork(query) {
  49. return request({
  50. url: '/grassrootsregistration/bdglweekwork/export',
  51. method: 'get',
  52. params: query
  53. })
  54. }
  55. // 查询当前时段有么有数据
  56. export function exportBdglgetWeekWork(query) {
  57. return request({
  58. url: '/grassrootsregistration/bdglweekwork/getWeekWork',
  59. method: 'get',
  60. params: query
  61. })
  62. }