protection.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import request from "@/utils/request";
  2. // 查询【请填写功能名称】列表
  3. export function list(query) {
  4. return request({
  5. url: "/core/resumption/protection/page",
  6. method: "get",
  7. params: query,
  8. });
  9. }
  10. // 查询【请填写功能名称】详细
  11. export function get(id) {
  12. return request({
  13. url: "/core/resumption/protection/" + id,
  14. method: "get",
  15. });
  16. }
  17. // 修改【请填写功能名称】
  18. export function update(data) {
  19. return request({
  20. url: "/core/resumption/protection/edit",
  21. method: "post",
  22. data: data,
  23. showLoading: true,
  24. });
  25. }
  26. // 删除【请填写功能名称】
  27. export function del(id) {
  28. return request({
  29. url: "/core/resumption/protection/" + id,
  30. method: "delete",
  31. });
  32. }
  33. // 更新状态
  34. export function updateStatus(id,status) {
  35. return request({
  36. url: `/core/resumption/protection/updatestatus/${id}/${status}`,
  37. method: "post",
  38. });
  39. }
  40. // 更新状态
  41. export function history(query) {
  42. // query.startTime=new Date().toLocaleString()
  43. // delete query.updateTime;
  44. return request({
  45. url: `/core/resumption/protection/log/page`,
  46. method: "get",
  47. params:query
  48. });
  49. }