militarydutyinfo.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. import request from '@/utils/request'
  2. // 查询军车值班列表
  3. export function listMilitarydutyinfo(query) {
  4. return request({
  5. url: '/combatduty/militarydutyinfo/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询军车值班详细
  11. export function getMilitarydutyinfo(id) {
  12. return request({
  13. url: '/combatduty/militarydutyinfo/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增军车值班
  18. export function addMilitarydutyinfo(data) {
  19. return request({
  20. url: '/combatduty/militarydutyinfo',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改军车值班
  26. export function updateMilitarydutyinfo(data) {
  27. return request({
  28. url: '/combatduty/militarydutyinfo',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除军车值班
  34. export function delMilitarydutyinfo(id) {
  35. return request({
  36. url: '/combatduty/militarydutyinfo/' + id,
  37. method: 'delete'
  38. })
  39. }
  40. // 导出军车值班
  41. export function exportMilitarydutyinfo(query) {
  42. return request({
  43. url: '/combatduty/militarydutyinfo/export',
  44. method: 'get',
  45. params: query
  46. })
  47. }
  48. // 查询人员管理列表
  49. export function listPeople(query) {
  50. return request({
  51. url: '/peopleManage/people/list',
  52. method: 'get',
  53. params: query
  54. })
  55. }
  56. // 查询人员管理列表
  57. export function listPeoples(query) {
  58. return request({
  59. url: '/grassrootsregistration/common/list',
  60. method: 'get',
  61. params: query
  62. })
  63. }
  64. // 查询部门下拉树结构
  65. export function treeselect() {
  66. return request({
  67. url: '/system/dept/treeselect',
  68. method: 'get'
  69. })
  70. }
  71. // 查询部门
  72. export function getDept(query) {
  73. return request({
  74. url: '/system/dept/list',
  75. method: 'get',
  76. params: query
  77. })
  78. }
  79. //车牌号
  80. export function getthebus(status) {
  81. return request({
  82. url: '/militaryvehicleManagement/thebus/list',
  83. method: 'get',
  84. params: { status: status }
  85. })
  86. }
  87. // 更改军车状态
  88. export function updatestatus() {
  89. return request({
  90. url: '/militaryvehicleManagement/thebus/updatestatus',
  91. method: 'put',
  92. })
  93. }