workPersonScheduling.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import request from '@/utils/request'
  2. import constant from '@/constant'
  3. function pageList(formData) {
  4. return request.post(constant.serverUrl + "/base/workPersonScheduling/pageList", formData);
  5. }
  6. function create() {
  7. return request.get(constant.serverUrl + "/base/workPersonScheduling/create");
  8. }
  9. function edit(id) {
  10. return request.get(constant.serverUrl + "/base/workPersonScheduling/edit/" + id);
  11. }
  12. function add(formModel) {
  13. return request.post(constant.serverUrl + "/base/workPersonScheduling/add", formModel, {
  14. headers: {
  15. "Content-Type": "application/json"
  16. }
  17. });
  18. }
  19. function update(formModel) {
  20. return request.post(constant.serverUrl + "/base/workPersonScheduling/update", formModel, {
  21. headers: {
  22. "Content-Type": "application/json"
  23. }
  24. });
  25. }
  26. function remove(id) {
  27. return request.post(constant.serverUrl + "/base/workPersonScheduling/delete/" + id);
  28. }
  29. function batchRemove(idList) {
  30. return request.post(constant.serverUrl + "/base/workPersonScheduling/batchDelete", idList, {
  31. headers: {
  32. "Content-Type": "application/json"
  33. }
  34. });
  35. }
  36. function findScheduling(formData) {
  37. return request.post(constant.serverUrl + "/base/workPersonScheduling/findScheduling", formData);
  38. }
  39. function changeScheduling(formData) {
  40. return request.post(constant.serverUrl + "/base/workPersonScheduling/changeScheduling", formData);
  41. }
  42. function changePersonShift(formData) {
  43. return request.post(constant.serverUrl + "/base/workPersonScheduling/changePersonShift", formData);
  44. }
  45. function findWPSByParameter(formData) {
  46. return request.post(constant.serverUrl + "/base/workPersonScheduling/findWPSByParameter", formData);
  47. }
  48. export default {
  49. pageList, create, edit, add, update, remove, batchRemove, findScheduling, changeScheduling, changePersonShift, findWPSByParameter
  50. }