bug
jiangping
2023-12-06 1f4e7d0f73a73e7350cf5a1df279d5f30904c5d5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import request from '@/utils/request'
 
// 获取图片验证码
export function getCaptcha () {
  return request.get('/common/captcha')
}
 
// 下载本地文件
export function downloadLocalFile (path) {
  // return request.get('/resource/local/download', {
  //   params,
  //   download: true
  // })
  window.open(`${window.location}${path}`)
  // window.location = '/template/plans_import_template.xlsx'
}
 
// 根据密码登录
export function loginByPassword (data) {
  return request.post('/system/login', data)
}
 
// 自动登录登录--标准版
export function edgpLogin ({token, companyId}) {
  // return request.post('/lingyang/login', params)
  return request.post(`edgp/login?token=${token}&companyId=${companyId}`)
}
 
// 自动登录登录
export function autoLogin ({token, companyId}) {
  // return request.post('/lingyang/login', params)
  return request.post(`lingyang/login?token=${token}&companyId=${companyId}`)
}
 
// 自动登录登录
export function autoLoginDemo ({token, companyId}) {
  // return request.post('/lingyang/login', params)
  return request.post(`lingyang/loginDemo?token=${token}&companyId=${companyId}`)
}
 
// 自动登录登录 --demo1
export function autoLoginDemo1 ({token, companyId}) {
  // return request.post('/lingyang/login', params)
  return request.post(`edgp/loginDemo?token=${token}&companyId=${companyId}`)
}
 
 
// 登出
export function logout (data) {
  return request.post('/system/logout', data)
}
 
// 修改密码
export function updatePwd (data) {
  return request.post('/system/updatePwd', data)
}
 
// 获取已登录的用户信息
export function getUserInfo () {
  return request.get('/system/getUserInfo', {
    autoLogin: false
  })
}
 
export function ddLogin (code, companyId) {
  return request.post(`/dingding/ddLogin?code=${code}&companyId=${companyId}`)
}
 
// 获取企业id
export function getDingdingCorpId(companyId) {
  return request.get(`/dingding/getDingdingCorpId?companyId=${companyId}`)
}