loginService.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. import request from "../../common/request"
  2. export default {
  3. getCode: function() {
  4. return request({
  5. url: '/sys/getCode',
  6. method: 'get'
  7. })
  8. },
  9. login: function(data) {
  10. return request({
  11. url: '/sys/login',
  12. method: 'post',
  13. data: data
  14. })
  15. },
  16. logout: function() {
  17. return request({
  18. url: '/sys/logout',
  19. method: 'get'
  20. })
  21. },
  22. savePwd: function(inputForm) {
  23. return request({
  24. url: '/sys/user/savePwd',
  25. method: 'put',
  26. params: inputForm
  27. })
  28. },
  29. list: function(params) {
  30. return request({
  31. url: '/buildinginfo/buildingManagement/list1',
  32. method: 'get',
  33. params: params
  34. })
  35. },
  36. comlist: function(params) {
  37. return request({
  38. url: '/enterpriseinfo/enterpriseInfo/list',
  39. method: 'get',
  40. params: params
  41. })
  42. },
  43. // /parkmanagement/parkManagement/list
  44. parkList: function(params) {
  45. return request({
  46. url: '/parkmanagement/parkManagement/list1',
  47. method: 'get',
  48. params: params
  49. })
  50. },
  51. delete: function(ids) {
  52. return request({
  53. url: '/buildinginfo/buildingManagement/delete',
  54. method: 'delete',
  55. params: {
  56. ids: ids
  57. }
  58. })
  59. },
  60. deleteCom: function(ids) {
  61. return request({
  62. url: '/enterpriseinfo/enterpriseInfo/delete',
  63. method: 'delete',
  64. params: {
  65. ids: ids
  66. }
  67. })
  68. },
  69. buildSave: function(params) {
  70. return request({
  71. url: '/buildinginfo/buildingManagement/save',
  72. method: 'post',
  73. params: params
  74. })
  75. },
  76. // comSave
  77. comSave: function(params) {
  78. return request({
  79. url: '/enterpriseinfo/enterpriseInfo/save',
  80. method: 'post',
  81. params: params
  82. })
  83. },
  84. queryByIdBuild: function(id) {
  85. return request({
  86. url: '/buildinginfo/buildingManagement/queryById',
  87. method: 'get',
  88. params: {
  89. id: id
  90. }
  91. })
  92. },
  93. queryByIdCom: function(id) {
  94. return request({
  95. url: '/enterpriseinfo/enterpriseInfo/queryById',
  96. method: 'get',
  97. params: {
  98. id: id
  99. }
  100. })
  101. },
  102. getStatisticsForPark: function(params) {
  103. return request({
  104. url: '/dp/dp/getStatisticsForPark',
  105. method: 'get',
  106. params: params
  107. })
  108. },
  109. getStatisticsForBuild: function(params) {
  110. return request({
  111. url: '/dp/dp/getStatisticsForBuild',
  112. method: 'get',
  113. params: params
  114. })
  115. },
  116. // firstdp/firstdp/AppFirst
  117. AppFirst: function(params) {
  118. return request({
  119. url: '/firstdp/firstdp/AppFirst',
  120. method: 'get',
  121. params: params
  122. })
  123. },
  124. // AppFirstAddNwe
  125. AppFirstAddNwe: function(params) {
  126. return request({
  127. url: '/firstdp/firstdp/AppFirstAddNwe',
  128. method: 'get',
  129. params: params
  130. })
  131. },
  132. AppFirstAddTotle: function(params) {
  133. return request({
  134. url: '/firstdp/firstdp/AppFirstAddTotle',
  135. method: 'get',
  136. params: params
  137. })
  138. },
  139. getOtherIdByOffceid: function(params) {
  140. return request({
  141. url: '/sys/office/getOtherIdByOffceid',
  142. method: 'get',
  143. params: params
  144. })
  145. },
  146. getSaleStatisticsForOneBuilding: function(params) {
  147. return request({
  148. url: '/dp/dp/getSaleStatisticsForOneBuilding',
  149. method: 'get',
  150. params: params
  151. })
  152. },
  153. getSaleStatisticsForPark: function(params) {
  154. return request({
  155. url: '/dp/dp/getSaleStatisticsForPark',
  156. method: 'get',
  157. params: params
  158. })
  159. },
  160. // /dp/dp/getSaleStatisticsForYear2
  161. getSaleStatisticsForYear2: function(params) {
  162. return request({
  163. url: '/dp/dp/getSaleStatisticsForYear2',
  164. method: 'get',
  165. params: params
  166. })
  167. },
  168. }