loginService.js 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  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. factoryBuildingsList: function (params) {
  23. return request({
  24. url: '/idlefactorybuildings/idleFactoryBuildings/list2',
  25. method: 'get',
  26. params: params
  27. })
  28. },
  29. factoryqueryById: function(id) {
  30. return request({
  31. url: '/idlefactorybuildings/idleFactoryBuildings/queryById2',
  32. method: 'get',
  33. params: {
  34. id: id
  35. }
  36. })
  37. },
  38. savefactoryBuildings: function(params) {
  39. return request({
  40. url: '/idlefactorybuildings/idleFactoryBuildings/save',
  41. method: 'post',
  42. params: params
  43. })
  44. },
  45. //获取字典数据
  46. getDictListBytype: function(type) {
  47. return request({
  48. url: '/idlefactorybuildings/idleFactoryBuildings/getDictList',
  49. method: 'get',
  50. params: {
  51. type: type
  52. }
  53. })
  54. },
  55. getParkList: function() {
  56. return request({
  57. url: '/idlefactorybuildings/idleFactoryBuildings/getParkList',
  58. method: 'get',
  59. })
  60. },
  61. getIndustryList: function() {
  62. return request({
  63. url: '/idlefactorybuildings/idleFactoryBuildings/getIndustryList',
  64. method: 'get',
  65. })
  66. },
  67. policyList: function (params) {
  68. return request({
  69. url: '/enterpriseelectricity/enterpriseElectricity/list',
  70. method: 'get',
  71. params: params
  72. })
  73. },
  74. policyInfo: function (params) {
  75. return request({
  76. url: '/enterpriseelectricity/enterpriseElectricity/queryById',
  77. method: 'get',
  78. params: params
  79. })
  80. },
  81. InfoStatistics: function (params) {
  82. return request({
  83. url: '/dp/dp/InfoStatistics',
  84. method: 'get',
  85. params: params
  86. })
  87. },
  88. LoginLog: function (params) {
  89. return request({
  90. url: '/dp/dp/LoginLog',
  91. method: 'get',
  92. params: params
  93. })
  94. },
  95. InfoStatistics_industry: function (params) {
  96. return request({
  97. url: '/dp/dp/InfoStatistics_industry',
  98. method: 'get',
  99. params: params
  100. })
  101. },
  102. savePwd: function(inputForm) {
  103. return request({
  104. url: '/sys/user/savePwd',
  105. method: 'put',
  106. params: inputForm
  107. })
  108. },
  109. list1: function(params) {
  110. return request({
  111. url: '/buildinginfo/buildingManagement/list1',
  112. method: 'get',
  113. params: params
  114. })
  115. },
  116. list: function(params) {
  117. return request({
  118. url: '/buildinginfo/buildingManagement/list',
  119. method: 'get',
  120. params: params
  121. })
  122. },
  123. enterpriseother: function(params) {
  124. return request({
  125. url: '/enterpriseother/enterpriseOther/list',
  126. method: 'get',
  127. params: params
  128. })
  129. },
  130. comlist: function(params) {
  131. return request({
  132. url: '/enterpriseinfo/enterpriseInfo/list',
  133. method: 'get',
  134. params: params
  135. })
  136. },
  137. Loginlist: function(params) {
  138. return request({
  139. url: '/enterpriseinfo/enterpriseInfo/Loginlist',
  140. method: 'get',
  141. params: params
  142. })
  143. },
  144. // /parkmanagement/parkManagement/list
  145. getAreaList: function(params) {
  146. return request({
  147. url: '/enterpriseinfo/enterpriseInfo/getAreaList',
  148. method: 'get',
  149. params: params
  150. })
  151. },
  152. getIndustryChainList: function(params) {
  153. return request({
  154. url: '/enterpriseinfo/enterpriseInfo/getIndustryChainList',
  155. method: 'get',
  156. params: params
  157. })
  158. },
  159. getHyList: function(params) {
  160. return request({
  161. url: '/enterpriseinfo/enterpriseInfo/getHyList',
  162. method: 'get',
  163. params: params
  164. })
  165. },
  166. loginid: function(params) {
  167. return request({
  168. url: '/enterpriseinfo/enterpriseInfo/loginid',
  169. method: 'post',
  170. params: params
  171. })
  172. },
  173. delete: function(ids) {
  174. return request({
  175. url: '/buildinginfo/buildingManagement/delete',
  176. method: 'delete',
  177. params: {
  178. ids: ids
  179. }
  180. })
  181. },
  182. deleteCom: function(ids) {
  183. return request({
  184. url: '/enterpriseinfo/enterpriseInfo/delete',
  185. method: 'delete',
  186. params: {
  187. ids: ids
  188. }
  189. })
  190. },
  191. productSave: function(params) {
  192. return request({
  193. url: '/enterpriseother/enterpriseOther/save',
  194. method: 'post',
  195. params: params
  196. })
  197. },
  198. queryByIdPro: function(id) {
  199. return request({
  200. url: '/enterpriseother/enterpriseOther/queryById',
  201. method: 'get',
  202. params: {
  203. id: id
  204. }
  205. })
  206. },
  207. buildSave: function(params) {
  208. return request({
  209. url: '/buildinginfo/buildingManagement/save',
  210. method: 'post',
  211. params: params
  212. })
  213. },
  214. // comSave
  215. comSave: function(params) {
  216. return request({
  217. url: '/enterpriseinfo/enterpriseInfo/save',
  218. method: 'post',
  219. params: params
  220. })
  221. },
  222. queryByIdBuild: function(id) {
  223. return request({
  224. url: '/buildinginfo/buildingManagement/queryById',
  225. method: 'get',
  226. params: {
  227. id: id
  228. }
  229. })
  230. },
  231. queryByIdCom: function(id) {
  232. return request({
  233. url: '/enterpriseinfo/enterpriseInfo/queryById',
  234. method: 'get',
  235. params: {
  236. id: id
  237. }
  238. })
  239. },
  240. getloginstr: function(username) {
  241. return request({
  242. url: '/enterpriseinfo/enterpriseInfo/getloginstr',
  243. method: 'get',
  244. params: {
  245. username: username
  246. }
  247. })
  248. },
  249. getnologinstr: function(str) {
  250. return request({
  251. url: '/enterpriseinfo/enterpriseInfo/getnologinstr',
  252. method: 'get',
  253. params: {
  254. str: str
  255. }
  256. })
  257. },
  258. getStatisticsForPark: function(params) {
  259. return request({
  260. url: '/dp/dp/getStatisticsForPark',
  261. method: 'get',
  262. params: params
  263. })
  264. },
  265. getStatisticsForBuild: function(params) {
  266. return request({
  267. url: '/dp/dp/getStatisticsForBuild',
  268. method: 'get',
  269. params: params
  270. })
  271. },
  272. // firstdp/firstdp/AppFirst
  273. AppFirst: function(params) {
  274. return request({
  275. url: '/firstdp/firstdp/AppFirst',
  276. method: 'get',
  277. params: params
  278. })
  279. },
  280. // AppFirstAddNwe
  281. AppFirstAddNwe: function(params) {
  282. return request({
  283. url: '/firstdp/firstdp/AppFirstAddNwe',
  284. method: 'get',
  285. params: params
  286. })
  287. },
  288. AppFirstAddTotle: function(params) {
  289. return request({
  290. url: '/firstdp/firstdp/AppFirstAddTotle',
  291. method: 'get',
  292. params: params
  293. })
  294. },
  295. getOtherIdByOffceid: function(params) {
  296. return request({
  297. url: '/sys/office/getOtherIdByOffceid',
  298. method: 'get',
  299. params: params
  300. })
  301. },
  302. getSaleStatisticsForOneBuilding: function(params) {
  303. return request({
  304. url: '/dp/dp/getSaleStatisticsForOneBuilding',
  305. method: 'get',
  306. params: params
  307. })
  308. },
  309. getSaleStatisticsForPark: function(params) {
  310. return request({
  311. url: '/dp/dp/getSaleStatisticsForPark',
  312. method: 'get',
  313. params: params
  314. })
  315. },
  316. // /dp/dp/getSaleStatisticsForYear2
  317. getSaleStatisticsForYear2: function(params) {
  318. return request({
  319. url: '/dp/dp/getSaleStatisticsForYear2',
  320. method: 'get',
  321. params: params
  322. })
  323. },
  324. //获取字典数据
  325. getDictList: function(params) {
  326. return request({
  327. url: '/sys/dict/getDictValue',
  328. method: 'get',
  329. params: params
  330. })
  331. },
  332. //大走访
  333. queryByUserName: function() {
  334. return request({
  335. url: '/enterpriseinfo/enterpriseInfo/queryByUserName',
  336. method: 'get',
  337. params: {
  338. }
  339. })
  340. },
  341. queryByUserNameList: function() {
  342. return request({
  343. url: '/enterpriseinfo/enterpriseInfo/queryByUserNameList',
  344. method: 'get',
  345. params: {
  346. }
  347. })
  348. },
  349. getdzfQuestionList: function(params) {
  350. return request({
  351. url: '/question/dzfQuestion/list',
  352. method: 'get',
  353. params: params
  354. })
  355. },
  356. getdzfQuestionqueryById: function(params) {
  357. return request({
  358. url: '/question/dzfQuestion/queryById',
  359. method: 'get',
  360. params: params
  361. })
  362. },
  363. saveQuestion: function(params) {
  364. return request({
  365. url: '/question/dzfQuestion/save',
  366. method: 'post',
  367. params: params
  368. })
  369. },
  370. deleteQuestion: function(ids) {
  371. return request({
  372. url: '/question/dzfQuestion/delete',
  373. method: 'delete',
  374. params: {
  375. ids: ids
  376. }
  377. })
  378. },
  379. save2OpRecord: function(params) {
  380. return request({
  381. url: '/dzfoprecord/dzfQuestionOpRecord/save2',
  382. method: 'post',
  383. params: params
  384. })
  385. },
  386. savepj: function(params) {
  387. return request({
  388. url: '/dzfoprecord/dzfQuestionOpRecord/savepj',
  389. method: 'post',
  390. params: params
  391. })
  392. },
  393. getDelCount: function(params) {
  394. return request({
  395. url: '/dzfoprecord/dzfQuestionOpRecord/getDelCount',
  396. method: 'get',
  397. params: params
  398. })
  399. },
  400. getDzfCount: function(params) {
  401. return request({
  402. url: '/dp/dp/getDzfCount',
  403. method: 'get',
  404. params: params
  405. })
  406. },
  407. getProgressMonth3: function(params) {
  408. return request({
  409. url: '/dp/dp/getProgressMonth3',
  410. method: 'get',
  411. params: params
  412. })
  413. },
  414. getZcs: function(params) {
  415. return request({
  416. url: '/dp/dp/getZcs',
  417. method: 'get',
  418. params: params
  419. })
  420. },
  421. }