safetyPlan.js 682 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import request from "@/utils/request"
  2. export const getList = (query) => {
  3. return request.get({
  4. url: '/client/c/esEpPlanTemplate/page',
  5. data: query,
  6. })
  7. }
  8. export const getDetail = (id) => {
  9. const query = {id}
  10. return request.get({
  11. url: '/client/c/esEpPlanTemplate/detail',
  12. data: query,
  13. })
  14. }
  15. export const update = (data) => {
  16. return request.post({
  17. url: '/client/c/esEpPlanTemplate/edit',
  18. data: data,
  19. })
  20. }
  21. export const save = (data) => {
  22. return request.post({
  23. url: '/client/c/esEpPlanTemplate/add',
  24. data: data,
  25. })
  26. }
  27. export const del = (id) => {
  28. const data = [{id}]
  29. return request.post({
  30. url: '/client/c/esEpPlanTemplate/delete',
  31. data: data,
  32. })
  33. }