server.js 563 B

12345678910111213141516171819202122232425262728293031
  1. import {
  2. creatRequest
  3. } from '../../utils/request.js';
  4. const requestList = {
  5. // 查核列表
  6. getCheckList: {
  7. method: 'GET',
  8. url: 'plan/depList'
  9. },
  10. // 分配单位查核人员
  11. batchDistribute: {
  12. method: 'POST',
  13. url: 'plan/batchDistribute'
  14. },
  15. //计划列表
  16. planList: {
  17. method: 'GET',
  18. url: 'plan/list'
  19. },
  20. //批量撤销
  21. batchCancelCheckDistribution: {
  22. method: 'POST',
  23. url: 'plan/initDistribution'
  24. }
  25. };
  26. export const commServer = (key, data) => {
  27. let obj = requestList[key];
  28. return creatRequest(obj, data);
  29. }