Newer
Older
KaiFengPC / src / api / preassess / targetManage.js
@zhangdeliang zhangdeliang on 23 May 1 KB 初始化项目
  1. import request from "@/utils/request";
  2.  
  3. // 获取表格列表
  4. export function getProjectBuildTargetConfigPage(params) {
  5. return request({
  6. url: "/sponge/projectBuildTargetConfig/page",
  7. method: "get",
  8. params
  9. });
  10. }
  11.  
  12. // 获取项目选择列表
  13. export function getProjectInfoList(params) {
  14. return request({
  15. url: "/business/projectInfoNew/list",
  16. method: "get",
  17. params
  18. });
  19. }
  20.  
  21. // 新增项目工程目标
  22. export function projectBuildTargetConfigAdd(data) {
  23. return request({
  24. url: "/sponge/projectBuildTargetConfig/add",
  25. method: "post",
  26. data
  27. });
  28. }
  29.  
  30. // 修改项目工程目标
  31. export function projectBuildTargetConfigEdit(data) {
  32. return request({
  33. url: "/sponge/projectBuildTargetConfig/edit",
  34. method: "put",
  35. data
  36. });
  37. }
  38.  
  39. // 获取详情信息
  40. export function getProjectBuildTargetConfigInfo(id) {
  41. return request({
  42. url: `/sponge/projectBuildTargetConfig/${id}`,
  43. method: "get"
  44. });
  45. }
  46.  
  47. // 删除项目工程目标
  48. export function projectBuildTargetConfigInfoDel(ids) {
  49. return request({
  50. url: `/sponge/projectBuildTargetConfig/${ids}`,
  51. method: "delete"
  52. });
  53. }
  54.