GARDENBASEDATA.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import request from "@/utils/request";
  2. // 查询园区内企业基础数据列表
  3. export function listGARDENBASEDATA(query) {
  4. return request({
  5. url: "/GARDENBASEDATA/list",
  6. method: "get",
  7. params: query,
  8. });
  9. }
  10. // 查询园区内企业基础数据所有列表
  11. export function listAllGARDENBASEDATA(query) {
  12. return request({
  13. url: "/GARDENBASEDATA/listAll",
  14. method: "get",
  15. params: query,
  16. });
  17. }
  18. // 查询园区内企业基础数据详细
  19. export function getGARDENBASEDATA(id) {
  20. return request({
  21. url: "/GARDENBASEDATA/getInfo/" + id,
  22. method: "get",
  23. });
  24. }
  25. // 新增园区内企业基础数据
  26. export function addGARDENBASEDATA(data) {
  27. return request({
  28. url: "/GARDENBASEDATA/add",
  29. method: "post",
  30. data: data,
  31. });
  32. }
  33. // 修改园区内企业基础数据
  34. export function updateGARDENBASEDATA(data) {
  35. return request({
  36. url: "/GARDENBASEDATA/edit",
  37. method: "post",
  38. data: data,
  39. });
  40. }
  41. // 删除园区内企业基础数据
  42. export function delGARDENBASEDATA(id) {
  43. return request({
  44. url: "/GARDENBASEDATA/remove/" + id,
  45. method: "get",
  46. });
  47. }
  48. // 企业名录列表
  49. export function getEnterprise(query) {
  50. return request({
  51. url: "/system/dept/list",
  52. method: "get",
  53. params: query,
  54. });
  55. }
  56. // 导入企业数据
  57. export function importGARDENBASEDATA(data) {
  58. return request({
  59. url: "/GARDENBASEDATA/baseData/import",
  60. method: "post",
  61. data,
  62. });
  63. }