toConsult.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. // 调阅相关接口
  2. import request from '@/utils/request'
  3. // 获取调阅列表
  4. export function login(data) {
  5. return request({
  6. url: '/auth/login',
  7. headers: {
  8. isToken: false
  9. },
  10. method: 'post',
  11. data
  12. })
  13. }
  14. // 获取调阅列表
  15. export function selectListApp(data) {
  16. return request({
  17. url: '/core/retrievalTask/selectListApp',
  18. method: 'get',
  19. params:data
  20. })
  21. }
  22. //新增调阅接口NFC||图片接口
  23. export function registration(data) {
  24. return request({
  25. url: '/core/registration',
  26. headers: {
  27. isToken: false
  28. },
  29. method: 'post',
  30. data
  31. })
  32. }
  33. //获取任务详情列表
  34. export function registrationList(query) {
  35. return request({
  36. url: '/core/registration/list/',
  37. method: 'get',
  38. params: query
  39. })
  40. }
  41. //获取任务主机以及通道
  42. export function getSysDeviceByTaskId(query) {
  43. return request({
  44. url: '/system/device/getSysDeviceByTaskId/'+query.taskId,
  45. method: 'get',
  46. // params: query
  47. })
  48. }
  49. //根据字典类型查询字典值接口
  50. export function getDict(dictType) {
  51. return request({
  52. url: '/system/dict/data/type/' + dictType,
  53. method: 'get'
  54. })
  55. }
  56. // 查询机构下拉树结构
  57. export function deptTreeList() {
  58. return request({
  59. url: '/system/dept/deptTree',
  60. method: 'get'
  61. })
  62. }
  63. // 通过机构ID获取主机
  64. export function getorgHost(query) {
  65. return request({
  66. url: `/system/device/getSysDeviceByOrgId`,
  67. method: 'get',
  68. params:query
  69. })
  70. }
  71. // 通过主机ID获取通道列表
  72. export function getSysDeviceByHostId(query) {
  73. return request({
  74. url: `/system/device/getSysDeviceByHostId`,
  75. method: 'get',
  76. params:query
  77. })
  78. }
  79. // 添加
  80. export function addInfo(data) {
  81. return request({
  82. url: `/core/info`,
  83. method: 'post',
  84. data
  85. })
  86. }
  87. // 编辑
  88. export function updateInfo(data) {
  89. return request({
  90. url: `/core/info`,
  91. method: 'put',
  92. data
  93. })
  94. }
  95. //获取卡片查询详情
  96. export function getEditInfo(query) {
  97. return request({
  98. url: `/core/info/getInfo`,
  99. method: 'get',
  100. params:query
  101. })
  102. }
  103. //结束调阅
  104. export function getEndInfo(data) {
  105. return request({
  106. url: `/core/registration`,
  107. method: 'put',
  108. data
  109. })
  110. }
  111. ///system/device/getHostByOrgId/{orgId}