violation.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. import request from '@/utils/request'
  2. // 查询违规记录列表
  3. export function listViolation(query) {
  4. return request({
  5. url: '/laboratory/violation/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询违规记录详细
  11. export function getViolation(id) {
  12. return request({
  13. url: '/laboratory/violation/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 查询违规记录详细-工作台用
  18. export function getViolationDetail(id) {
  19. return request({
  20. url: '/laboratory/violation/'+id+'/detail',
  21. method: 'get'
  22. })
  23. }
  24. // 新增违规记录
  25. export function addViolation(data) {
  26. return request({
  27. url: '/laboratory/violation',
  28. method: 'post',
  29. data: data
  30. })
  31. }
  32. // 修改违规记录
  33. export function updateViolation(data) {
  34. return request({
  35. url: '/laboratory/violation',
  36. method: 'put',
  37. data: data
  38. })
  39. }
  40. // 删除违规记录
  41. export function delViolation(id) {
  42. return request({
  43. url: '/laboratory/violation/' + id,
  44. method: 'delete'
  45. })
  46. }
  47. //加入黑名单
  48. export function joinBlackList(id) {
  49. return request({
  50. url: '/laboratory/violation/joinBlackList/'+id,
  51. method: 'post'
  52. })
  53. }
  54. // 查询个人违规记录列表
  55. export function myListViolation(query) {
  56. return request({
  57. url: '/laboratory/violation/myListViolation',
  58. method: 'get',
  59. params: query
  60. })
  61. }
  62. // 查询违规记录详情列表
  63. export function violationHistoryRecord(query) {
  64. return request({
  65. url: '/laboratory/violationHistoryRecord/list',
  66. method: 'get',
  67. params: query
  68. })
  69. }
  70. // 查询学期
  71. export function getSemesterList(query) {
  72. return request({
  73. url: '/laboratory/semester/getSemesterList',
  74. method: 'get',
  75. params: query
  76. })
  77. }
  78. // 查询学期
  79. export function getByIdlist(query) {
  80. return request({
  81. url: '/laboratory/violationHistoryRecord/byIdlist',
  82. method: 'get',
  83. params: query
  84. })
  85. }
  86. //移除黑名单
  87. export function delBlacklist(data) {
  88. return request({
  89. url: '/laboratory/violation/delBlacklistByPc',
  90. method: 'post',
  91. data: data
  92. })
  93. }
  94. //移除负面清单
  95. export function delNegivelist(data) {
  96. return request({
  97. url: '/laboratory/violation/delNegivelistByPc',
  98. method: 'post',
  99. data: data
  100. })
  101. }
  102. //获取违规类型
  103. export function violationSiteType(query) {
  104. return request({
  105. url: '/laboratory/violationSite/type',
  106. method: 'get',
  107. params: query
  108. })
  109. }
  110. //添加违规记录
  111. export function addViolationHistory(data) {
  112. return request({
  113. url: '/laboratory/violation/addViolationHistory',
  114. method: 'post',
  115. data: data
  116. })
  117. }
  118. //添加黑名单
  119. export function blackAdd(data) {
  120. return request({
  121. url: '/laboratory/violation/blackAdd',
  122. method: 'post',
  123. data: data
  124. })
  125. }
  126. //根据输入值查询除法方式
  127. export function getIntegralMatchingRules(query) {
  128. return request({
  129. url: '/laboratory/violation/getIntegralMatchingRules',
  130. method: 'get',
  131. params: query
  132. })
  133. }
  134. // 根据院系ID查询实验室列表(无权限)
  135. export function getSubjectDictByViolation(data) {
  136. return request({
  137. url: '/laboratory/subject/getSubjectDictByViolation',
  138. method: 'get',
  139. params: data
  140. })
  141. }