section.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import {httpApi} from "../../request/httpApi";
  2. export default {
  3. //分页获取计划列表
  4. async getPage(form, msg = true) {
  5. return httpApi({
  6. url: '/api/blade-control/departmentMonthPlan/getPage',
  7. method: 'get',
  8. params: form
  9. }, msg);
  10. },
  11. //获取部门列表
  12. async getDepartmentDict(form, msg = true) {
  13. return httpApi({
  14. url: '/api/blade-control/departmentMonthPlan/getDepartmentDict',
  15. method: 'get',
  16. params: form
  17. }, msg);
  18. },
  19. //查询部门月度计划
  20. async getDepartmentPlan(form, msg = true) {
  21. return httpApi({
  22. url: '/api/blade-control/departmentMonthPlan/getDepartmentPlan',
  23. method: 'post',
  24. data: form
  25. }, msg);
  26. },
  27. //新增部门月计划
  28. async addDepartmentPlan(form, msg = true) {
  29. return httpApi({
  30. url: '/api/blade-control/departmentMonthPlan/addDepartmentPlan',
  31. method: 'post',
  32. data: form
  33. }, msg);
  34. },
  35. }