project.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import {httpApi} from "../../request/httpApi";
  2. export default {
  3. //获取项目和合同段
  4. async getProjectAndContract() {
  5. return httpApi({
  6. url: '/api/blade-business/userViewProjectContract/queryUserViewProjectAndContract',
  7. method: 'get',
  8. params: {}
  9. });
  10. },
  11. //获取默认项目
  12. async getDefaultProject(form) {
  13. return httpApi({
  14. url: '/api/blade-business/defaultProject/queryUserDefault',
  15. method: 'get',
  16. params: form
  17. });
  18. },
  19. //获取项目详情
  20. async getProjectInfo(id) {
  21. return httpApi({
  22. url: '/api/blade-manager/projectInfo/detail',
  23. method: 'get',
  24. params: {
  25. id: id ? id + '' : ''
  26. }
  27. });
  28. },
  29. //获取合同段详情
  30. async getContractInfo(id) {
  31. return httpApi({
  32. url: '/api/blade-manager/contractInfo/detail',
  33. method: 'get',
  34. params: {
  35. id: id ? id + '' : ''
  36. }
  37. });
  38. },
  39. //设置默认项目
  40. async setDefaultProject(form) {
  41. return httpApi({
  42. url: '/api/blade-business/defaultProject/save',
  43. method: 'post',
  44. data: form
  45. });
  46. },
  47. }