plan_log.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. import request from '@/utils/request'
  2. // 查询风险异常日志列表
  3. export function listLog(query) {
  4. return request({
  5. url: '/laboratory/plan/log/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询风险异常日志详细
  11. export function getLog(id) {
  12. return request({
  13. url: '/laboratory/plan/log/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增风险异常日志
  18. export function addLog(data) {
  19. return request({
  20. url: '/laboratory/plan/log',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改风险异常日志
  26. export function updateLog(data) {
  27. return request({
  28. url: '/laboratory/plan/log',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除风险异常日志
  34. export function delLog(id) {
  35. return request({
  36. url: '/laboratory/plan/log/' + id,
  37. method: 'delete'
  38. })
  39. }
  40. // 风险发生数折线统计图
  41. export function lineChart(data) {
  42. return request({
  43. url: '/laboratory/plan/log/lineChart',
  44. method: 'post',
  45. data: data
  46. })
  47. }
  48. // 风险发生占比图
  49. export function happenChart(data) {
  50. return request({
  51. url: '/laboratory/plan/log/happenChart',
  52. method: 'post',
  53. data: data
  54. })
  55. }
  56. // 院系风险统计图
  57. export function statisticsChartDept(data) {
  58. return request({
  59. url: '/laboratory/plan/log/statisticsChartDept',
  60. method: 'post',
  61. data: data
  62. })
  63. }