check.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import request from '@/utils/request'
  2. import { parseStrEmpty } from "@/utils/ruoyi";
  3. // 查询区域采集点列表
  4. export function listCheck(query) {
  5. return request({
  6. url: '/system/check/list',
  7. method: 'get',
  8. params: query
  9. })
  10. }
  11. // 查询区域采集点详细
  12. export function getCheck(id) {
  13. return request({
  14. url: '/system/check/' + parseStrEmpty(id),
  15. method: 'get'
  16. })
  17. }
  18. // 查询区域采集点通过区域id
  19. export function getCheckByAreaId(areaId) {
  20. return request({
  21. url: '/system/check/getAreaCheckInfo/' + areaId,
  22. method: 'get'
  23. })
  24. }
  25. // 查询区域采集点通过机构id
  26. export function getAreaCheckInfoByOrgId(orgId) {
  27. return request({
  28. url: '/system/check/getAreaCheckInfoByOrg/' + orgId.id,
  29. method: 'get'
  30. })
  31. }
  32. // 查询部门下拉树结构
  33. export function deptTreeSelect() {
  34. return request({
  35. url: '/system/user/deptTree',
  36. method: 'get'
  37. })
  38. }
  39. // 新增区域采集点
  40. export function addCheck(data) {
  41. return request({
  42. url: '/system/check',
  43. method: 'post',
  44. data: data
  45. })
  46. }
  47. // 修改区域采集点
  48. export function updateCheck(data) {
  49. return request({
  50. url: '/system/check',
  51. method: 'put',
  52. data: data
  53. })
  54. }
  55. // 删除区域采集点
  56. export function delCheck(id) {
  57. return request({
  58. url: '/system/check/' + id,
  59. method: 'delete'
  60. })
  61. }