newLogin.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /*
  2. * @Author: your name
  3. * @Date: 2022-02-21 09:15:17
  4. * @LastEditTime: 2022-02-23 15:11:47
  5. * @LastEditors: Please set LastEditors
  6. * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  7. * @FilePath: \CABaggageData\src\api\login.js
  8. */
  9. import request from '@/utils/request-new'
  10. //获取动态验证码
  11. export function GetCheckCode (params) {
  12. return request({
  13. url: '/foxlibc/getVCode',
  14. method: 'post',
  15. data: params
  16. })
  17. }
  18. //权限-列设置初始化
  19. export function initColumnSet (params) {
  20. return request({
  21. url: '/foxlibc/initColumnSet',
  22. method: 'post',
  23. data: params
  24. })
  25. }
  26. //登录
  27. export function login (params) {
  28. return request({
  29. url: '/foxlibc/sign-in',
  30. method: 'post',
  31. data: params
  32. })
  33. }
  34. //登出
  35. export function loginUp (params) {
  36. return request({
  37. url: '/foxlibc/sign-out',
  38. method: 'post',
  39. data: params
  40. })
  41. }
  42. //忘记密码
  43. export function changePassword (params) {
  44. return request({
  45. url: '/foxlibc/reset-passwd',
  46. method: 'post',
  47. data: params
  48. })
  49. }
  50. //忘记密码
  51. export function changeSecpasswd (params) {
  52. return request({
  53. url: '/foxlibc/reset-secpasswd',
  54. method: 'post',
  55. data: params
  56. })
  57. }
  58. //权限获取
  59. export function permission (params) {
  60. return request({
  61. url: '/api/fs4a/GetAuth/v1',
  62. method: 'post',
  63. data: params
  64. })
  65. }
  66. //token
  67. export function gettoken (params) {
  68. return request({
  69. url: '/foxlibc/getToken ',
  70. method: 'post',
  71. data: params,
  72. istoken: true
  73. })
  74. }
  75. //获取系统基础设置
  76. export function GetSystemSet (params) {
  77. return request({
  78. url: '/foxlibc/system/setting',
  79. method: 'post',
  80. data: params,
  81. proxy: true
  82. })
  83. }
  84. // 密码校验
  85. export function CheckUser (params) {
  86. return request({
  87. url: '/foxlibc/sec-sign-in',
  88. method: 'post',
  89. data: params,
  90. istoken: true
  91. })
  92. }