fetch.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. import { $http } from "./config";
  2. export default {
  3. // 登录
  4. login(data) {
  5. return $http("/user/web/login", data);
  6. },
  7. // 获取首页信息
  8. getIndexData(data) {
  9. return $http("/index", data);
  10. },
  11. // 新增船东
  12. addShipOwner(data) {
  13. return $http("/shipOwner/add", data);
  14. },
  15. // 获取船东列表
  16. getShipOwnerList(data) {
  17. return $http("/shipOwner/list", data);
  18. },
  19. // 获取船东详情
  20. getShipOwnerDetail(data) {
  21. return $http("/shipOwner/detail", data);
  22. },
  23. // 更新船东信息
  24. updateShipOwner(data) {
  25. return $http("/shipOwner/update", data);
  26. },
  27. // 新增船舶
  28. addShip(data) {
  29. return $http("/ship/add", data);
  30. },
  31. // 删除船舶
  32. deleteShip(data) {
  33. return $http("/ship/delete", data);
  34. },
  35. // 删除船舶证书
  36. deleteShipCert(data) {
  37. return $http("/ship/delete/cert", data);
  38. },
  39. // 首页船舶详情
  40. getIndexShipDetail(data) {
  41. return $http("/index/detail", data);
  42. },
  43. // 船舶详情
  44. getShipDetail(data) {
  45. return $http("/ship/detail", data);
  46. },
  47. // 获取船舶列表
  48. getShipList(data) {
  49. return $http("/ship/list", data);
  50. },
  51. // 使用mmsi匹配船舶
  52. searchShip(data) {
  53. return $http("/ship/search", data);
  54. },
  55. // 更新船舶基础信息
  56. updateShip(data) {
  57. return $http("/ship/update", data);
  58. },
  59. // 更新证书有效期
  60. updateShipCertValid(data) {
  61. return $http("/ship/update/cert/valid", data);
  62. },
  63. // 获取证书/保险列表
  64. getCertList(data) {
  65. return $http("/cert/list", data);
  66. },
  67. // 获取初始化数据-新增船舶
  68. getAddShipCerts(data) {
  69. return $http("/cert/addShip/type", data);
  70. },
  71. // 获取证书及有效期类型-证书列表
  72. getCertListType(data) {
  73. return $http("/cert/certList/type", data);
  74. },
  75. // 新增安全检查模板
  76. addSecurityTemplate(data) {
  77. return $http("/security/template/add", data);
  78. },
  79. // 删除安全检查模板
  80. deleteSecurityTemplate(data) {
  81. return $http("/security/template/delete", data);
  82. },
  83. // 获取安全检查模板详情
  84. getSecurityTemplateDetail(data) {
  85. return $http("/security/template/detail", data);
  86. },
  87. // 获取安全检查项目下拉
  88. getSecurityTemplateTypeSelect() {
  89. return $http("/security/template/item/select");
  90. },
  91. // 获取安全检查模板列表
  92. getSecurityTemplateList(data) {
  93. return $http("/security/template/list", data);
  94. },
  95. // 修改安全检查模板
  96. updateSecurityTemplate(data) {
  97. return $http("/security/template/update", data);
  98. },
  99. // 获取首页通知数据
  100. getIndexNotice() {
  101. return $http("/index/notice", {});
  102. },
  103. // 发布船舶安检
  104. addSecurityCheck(data) {
  105. return $http("/security/check/add", data);
  106. },
  107. // 发起船舶安检-安检模板下拉选择
  108. getAddTemplateSelect(data) {
  109. return $http("/security/check/add/template/select", data);
  110. },
  111. // 发起船舶安检-根据模板选择船舶
  112. getAddTemplateShipSelect(data) {
  113. return $http("/security/check/add/template/ship/select", data);
  114. },
  115. // 安检列表
  116. getSecurityCheckList(data) {
  117. return $http("/security/check/list", data);
  118. },
  119. // 船舶安检详情
  120. getSecurityCheckDetail(data) {
  121. return $http("/security/check/ship/detail", data);
  122. },
  123. // 审核安检项目
  124. checkSecurityItem(data) {
  125. return $http("/security/check/ship/item/check", data);
  126. },
  127. // 船舶安检列表
  128. getSecurityCheckShipList(data) {
  129. return $http("/security/check/ship/list", data);
  130. },
  131. };