data.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. import request from '@/utils/request'
  2. export function getLineData() {
  3. return request({
  4. url: 'qdtl/common/railwayLine',
  5. method: 'get'
  6. })
  7. }
  8. export function getResource(query) {
  9. console.log(query);
  10. return request({
  11. url: 'qdtl/common/resource?date='+query.date,
  12. method: 'get',
  13. params:query
  14. })
  15. }
  16. export function getgovern(query) {
  17. console.log(query);
  18. return request({
  19. url: 'qdtl/common/govern?date=2022-03-12',
  20. method: 'get',
  21. params:query
  22. })
  23. }
  24. export function getSchedule(query) {
  25. return request({
  26. url: '/qdtl/plan/getSchedule',
  27. method: 'get',
  28. params:query
  29. })
  30. }
  31. export function getVideoHttp(query) {
  32. return request({
  33. url: '/qdtl/common/rtmp/'+query,
  34. method: 'get',
  35. params:query
  36. })
  37. }
  38. export function queryCheck(query) {
  39. return request({
  40. url: '/qdtl/document/queryCheck',
  41. method: 'get',
  42. params:query
  43. })
  44. }
  45. export function documentSave(query) {
  46. return request({
  47. url: '/qdtl/document',
  48. method: 'post',
  49. data: query
  50. })
  51. }
  52. export function getPatrolman(query) {
  53. return request({
  54. url: '/qdtl/patrolman/list',
  55. method: 'get',
  56. params:query
  57. })
  58. }
  59. // export function queryCheck(query) {
  60. // console.log(query);
  61. // return request({
  62. // url: '/qdtl/document/queryCheck/'+query,
  63. // method: 'get',
  64. // param:query
  65. // })
  66. // }