classified.js 1022 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import request from '@/utils/request'
  2. // 查询安全分级列表
  3. export function listClassified(query) {
  4. return request({
  5. url: '/laboratory/classified/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询安全分级所有列表(不带分页)
  11. export function listClassifiedAll(query) {
  12. return request({
  13. url: '/laboratory/classified/listAll',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 查询安全分级详细
  19. export function getClassified(id) {
  20. return request({
  21. url: '/laboratory/classified/' + id,
  22. method: 'get'
  23. })
  24. }
  25. // 新增安全分级
  26. export function addClassified(data) {
  27. return request({
  28. url: '/laboratory/classified',
  29. method: 'post',
  30. data: data
  31. })
  32. }
  33. // 修改安全分级
  34. export function updateClassified(data) {
  35. return request({
  36. url: '/laboratory/classified',
  37. method: 'put',
  38. data: data
  39. })
  40. }
  41. // 删除安全分级
  42. export function delClassified(id) {
  43. return request({
  44. url: '/laboratory/classified/' + id,
  45. method: 'delete'
  46. })
  47. }