refactor: 彻底清除所有openhis痕迹
- 重命名目录: openhis-server-new → healthlink-his-server - 重命名目录: openhis-ui-vue3 → healthlink-his-ui - 重命名Java类: OpenHisApplication → HealthLinkHisApplication - 重命名Java类: OpenHisMiniApp → HealthLinkHisMiniApp - 重命名组件目录: OpenHis → HealthLinkHis - 重命名样式文件: openhis.scss → healthlink-his.scss - 重命名配置: nginx-openhis.conf → nginx-healthlink-his.conf - 更新所有源码引用 (0个残留) - 更新所有文档/脚本/配置中的引用
This commit is contained in:
107
healthlink-his-ui/src/api/login.js
Executable file
107
healthlink-his-ui/src/api/login.js
Executable file
@@ -0,0 +1,107 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 登录方法
|
||||
export function login(username, password, code, uuid, tenantId) {
|
||||
const data = {
|
||||
username,
|
||||
password,
|
||||
code,
|
||||
uuid,
|
||||
tenantId
|
||||
}
|
||||
return request({
|
||||
url: '/login',
|
||||
headers: {
|
||||
isToken: false,
|
||||
repeatSubmit: false
|
||||
},
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 注册方法
|
||||
export function register(data) {
|
||||
return request({
|
||||
url: '/register',
|
||||
headers: {
|
||||
isToken: false
|
||||
},
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 获å–çâ€Â¨Ã¦Ë†Â·Ã¨Â¯Â¦Ã§Â»â€ ä¿¡æÂ¯
|
||||
export function getInfo() {
|
||||
return request({
|
||||
url: '/getInfo',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 退出方法
|
||||
export function logout() {
|
||||
return request({
|
||||
url: '/logout',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
// 获å–验è¯Âç Â
|
||||
export function getUserBindTenantList(username) {
|
||||
// ç¡®ä¿Âusernameå˜在,é¿å…Â构建出éâ€â„¢Ã¨Â¯Â¯Ã§Å¡â€žURL
|
||||
const safeUsername = username || '';
|
||||
return request({
|
||||
url: '/system/tenant/user-bind/' + safeUsername,
|
||||
headers: {
|
||||
isToken: false
|
||||
},
|
||||
method: 'get',
|
||||
timeout: 20000
|
||||
})
|
||||
}
|
||||
|
||||
// 获å–验è¯Âç Â
|
||||
export function getCodeImg() {
|
||||
return request({
|
||||
url: '/captchaImage',
|
||||
headers: {
|
||||
isToken: false
|
||||
},
|
||||
method: 'get',
|
||||
timeout: 20000
|
||||
})
|
||||
}
|
||||
|
||||
// 获å–当å‰Â登录çâ€Â¨Ã¦Ë†Â·Ã¦â€°â‚¬Ã¥Â±Å¾Ã§Â§â€˜Ã¥Â®Â¤
|
||||
export function getOrg() {
|
||||
return request({
|
||||
url: '/base-data-manage/practitioner/get-selectable-org-list',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 切æÂ¢ç§‘室
|
||||
export function switchOrg(orgId) {
|
||||
return request({
|
||||
url: '/base-data-manage/practitioner/switch-org?orgId=' + orgId,
|
||||
method: 'put',
|
||||
})
|
||||
}
|
||||
|
||||
// 医ä¿Âç¾到
|
||||
export function sign(practitionerId, mac, ip) {
|
||||
return request({
|
||||
url: `/yb-request/sign?practitionerId=${practitionerId}&mac=${mac}&ip=${ip}`,
|
||||
method: 'post',
|
||||
})
|
||||
}
|
||||
|
||||
// 锁屏解锁(验证登录状态)
|
||||
export function unlockScreen(password) {
|
||||
return request({
|
||||
url: '/getInfo',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user