cockpit.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import request from "@/utils/request";
  2. // 履职
  3. export function resumption(query) {
  4. return request({
  5. url: "/core/cockpit/resumption",
  6. method: "get",
  7. params: query,
  8. });
  9. }
  10. // 安全检查
  11. export function safetyCheck(query) {
  12. return request({
  13. url: "/core/cockpit/safetycheck",
  14. method: "get",
  15. params: query,
  16. });
  17. }
  18. // 监控调阅
  19. export function monitor(query) {
  20. return request({
  21. url: "/core/cockpit/monitor",
  22. method: "get",
  23. params: query,
  24. });
  25. }
  26. // 教育
  27. export function edu(query) {
  28. return request({
  29. url: "/core/cockpit/edu",
  30. method: "get",
  31. params: query,
  32. });
  33. }
  34. // 预案演练
  35. export function drill(query) {
  36. return request({
  37. url: "/core/cockpit/drill",
  38. method: "get",
  39. params: query,
  40. });
  41. }
  42. // GA38统计
  43. export function orgGA38(orgId) {
  44. return request({
  45. url: "/core/cockpit/orgga38",
  46. method: "get",
  47. params: { orgId },
  48. });
  49. }
  50. // 隐患统计
  51. export function question(query) {
  52. return request({
  53. url: "/core/cockpit/question",
  54. method: "get",
  55. params: query,
  56. });
  57. }
  58. export function getMap(url){
  59. let address=location.origin+url
  60. return request({
  61. url: address,
  62. method: "get"
  63. });
  64. }