operlog.js 652 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import request from '@/utils/request'
  2. // 查询操作日志列表
  3. export function list(query) {
  4. return request({
  5. url: '/v1/monitor/operlog/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 删除操作日志
  11. export function delOperlog(operId) {
  12. return request({
  13. url: '/v1/monitor/operlog/' + operId,
  14. method: 'delete'
  15. })
  16. }
  17. // 清空操作日志
  18. export function cleanOperlog() {
  19. return request({
  20. url: '/v1/monitor/operlog/clean',
  21. method: 'delete'
  22. })
  23. }
  24. // 导出操作日志
  25. export function exportOperlog(query) {
  26. return request({
  27. url: '/v1/monitor/operlog/export',
  28. method: 'get',
  29. params: query
  30. })
  31. }