server.js 381 B

12345678910111213141516171819
  1. import { creatRequest } from '../../utils/request.js';
  2. const requestList = {
  3. // 查核列表
  4. getCheckList: {
  5. method: 'GET',
  6. url: 'plan/depList'
  7. },
  8. // 分配单位查核人员
  9. batchDistribute: {
  10. method: 'GET',
  11. url: 'plan/batchDistribute'
  12. },
  13. };
  14. export const commServer = (key, data) => {
  15. let obj = requestList[key];
  16. return creatRequest(obj, data);
  17. }