loginService.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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. InfoStatistics: function (params) {
  23. return request({
  24. url: '/dp/dp/InfoStatistics',
  25. method: 'get',
  26. params: params
  27. })
  28. },
  29. InfoStatistics_industry: function (params) {
  30. return request({
  31. url: '/dp/dp/InfoStatistics_industry',
  32. method: 'get',
  33. params: params
  34. })
  35. },
  36. savePwd: function(inputForm) {
  37. return request({
  38. url: '/sys/user/savePwd',
  39. method: 'put',
  40. params: inputForm
  41. })
  42. },
  43. list1: function(params) {
  44. return request({
  45. url: '/buildinginfo/buildingManagement/list1',
  46. method: 'get',
  47. params: params
  48. })
  49. },
  50. list: function(params) {
  51. return request({
  52. url: '/buildinginfo/buildingManagement/list',
  53. method: 'get',
  54. params: params
  55. })
  56. },
  57. enterpriseother: function(params) {
  58. return request({
  59. url: '/enterpriseother/enterpriseOther/list',
  60. method: 'get',
  61. params: params
  62. })
  63. },
  64. comlist: function(params) {
  65. return request({
  66. url: '/enterpriseinfo/enterpriseInfo/list',
  67. method: 'get',
  68. params: params
  69. })
  70. },
  71. // /parkmanagement/parkManagement/list
  72. getAreaList: function(params) {
  73. return request({
  74. url: '/enterpriseinfo/enterpriseInfo/getAreaList',
  75. method: 'get',
  76. params: params
  77. })
  78. },
  79. getIndustryChainList: function(params) {
  80. return request({
  81. url: '/enterpriseinfo/enterpriseInfo/getIndustryChainList',
  82. method: 'get',
  83. params: params
  84. })
  85. },
  86. getHyList: function(params) {
  87. return request({
  88. url: '/enterpriseinfo/enterpriseInfo/getHyList',
  89. method: 'get',
  90. params: params
  91. })
  92. },
  93. loginid: function(params) {
  94. return request({
  95. url: '/enterpriseinfo/enterpriseInfo/loginid',
  96. method: 'post',
  97. params: params
  98. })
  99. },
  100. delete: function(ids) {
  101. return request({
  102. url: '/buildinginfo/buildingManagement/delete',
  103. method: 'delete',
  104. params: {
  105. ids: ids
  106. }
  107. })
  108. },
  109. deleteCom: function(ids) {
  110. return request({
  111. url: '/enterpriseinfo/enterpriseInfo/delete',
  112. method: 'delete',
  113. params: {
  114. ids: ids
  115. }
  116. })
  117. },
  118. productSave: function(params) {
  119. return request({
  120. url: '/enterpriseother/enterpriseOther/save',
  121. method: 'post',
  122. params: params
  123. })
  124. },
  125. queryByIdPro: function(id) {
  126. return request({
  127. url: '/enterpriseother/enterpriseOther/queryById',
  128. method: 'get',
  129. params: {
  130. id: id
  131. }
  132. })
  133. },
  134. buildSave: function(params) {
  135. return request({
  136. url: '/buildinginfo/buildingManagement/save',
  137. method: 'post',
  138. params: params
  139. })
  140. },
  141. // comSave
  142. comSave: function(params) {
  143. return request({
  144. url: '/enterpriseinfo/enterpriseInfo/save',
  145. method: 'post',
  146. params: params
  147. })
  148. },
  149. queryByIdBuild: function(id) {
  150. return request({
  151. url: '/buildinginfo/buildingManagement/queryById',
  152. method: 'get',
  153. params: {
  154. id: id
  155. }
  156. })
  157. },
  158. queryByIdCom: function(id) {
  159. return request({
  160. url: '/enterpriseinfo/enterpriseInfo/queryById',
  161. method: 'get',
  162. params: {
  163. id: id
  164. }
  165. })
  166. },
  167. getloginstr: function(username) {
  168. return request({
  169. url: '/enterpriseinfo/enterpriseInfo/getloginstr',
  170. method: 'get',
  171. params: {
  172. username: username
  173. }
  174. })
  175. },
  176. getnologinstr: function(str) {
  177. return request({
  178. url: '/enterpriseinfo/enterpriseInfo/getnologinstr',
  179. method: 'get',
  180. params: {
  181. str: str
  182. }
  183. })
  184. },
  185. getStatisticsForPark: function(params) {
  186. return request({
  187. url: '/dp/dp/getStatisticsForPark',
  188. method: 'get',
  189. params: params
  190. })
  191. },
  192. getStatisticsForBuild: function(params) {
  193. return request({
  194. url: '/dp/dp/getStatisticsForBuild',
  195. method: 'get',
  196. params: params
  197. })
  198. },
  199. // firstdp/firstdp/AppFirst
  200. AppFirst: function(params) {
  201. return request({
  202. url: '/firstdp/firstdp/AppFirst',
  203. method: 'get',
  204. params: params
  205. })
  206. },
  207. // AppFirstAddNwe
  208. AppFirstAddNwe: function(params) {
  209. return request({
  210. url: '/firstdp/firstdp/AppFirstAddNwe',
  211. method: 'get',
  212. params: params
  213. })
  214. },
  215. AppFirstAddTotle: function(params) {
  216. return request({
  217. url: '/firstdp/firstdp/AppFirstAddTotle',
  218. method: 'get',
  219. params: params
  220. })
  221. },
  222. getOtherIdByOffceid: function(params) {
  223. return request({
  224. url: '/sys/office/getOtherIdByOffceid',
  225. method: 'get',
  226. params: params
  227. })
  228. },
  229. getSaleStatisticsForOneBuilding: function(params) {
  230. return request({
  231. url: '/dp/dp/getSaleStatisticsForOneBuilding',
  232. method: 'get',
  233. params: params
  234. })
  235. },
  236. getSaleStatisticsForPark: function(params) {
  237. return request({
  238. url: '/dp/dp/getSaleStatisticsForPark',
  239. method: 'get',
  240. params: params
  241. })
  242. },
  243. // /dp/dp/getSaleStatisticsForYear2
  244. getSaleStatisticsForYear2: function(params) {
  245. return request({
  246. url: '/dp/dp/getSaleStatisticsForYear2',
  247. method: 'get',
  248. params: params
  249. })
  250. },
  251. }