bugfix and performance improvements

This commit is contained in:
2023-07-21 16:45:30 +08:00
parent 6cc3e9e348
commit 2be4e29f37
22 changed files with 611 additions and 551 deletions

View File

@ -45,3 +45,28 @@ export const deleteLabPatentByIds = (ids) => {
method: "DELETE",
});
};
/**
* 实验室未绑定专家列表
* @param params
* @return {*}
*/
export const selectNotBindLaboratory = (params) => {
return request({
url: `/app/laboratory/selectNotBindLaboratory`,
method: "GET",
params,
});
};
/**
* 实验室专家绑定
* @param expertId
* @return {*}
*/
export const bindExpert = (expertId) => {
return request({
url: `/app/laboratory/bindExpert/${expertId}`,
method: "GET",
});
};

View File

@ -1,9 +1,9 @@
import request from "@/utils/request";
export const upload = (data) => {
return request({
url: "/common/upload",
method: "post",
data: data,
});
}
return request({
url: "/common/upload",
method: "post",
data: data,
});
};

View File

@ -2,72 +2,72 @@ import request from "@/utils/request";
// 登录方法
export function login(username, password, code, uuid) {
const data = {
username,
password,
code,
uuid,
};
return request({
url: "/app/login",
headers: {
isToken: false,
},
method: "post",
data: data,
});
const data = {
username,
password,
code,
uuid,
};
return request({
url: "/app/login",
headers: {
isToken: false,
},
method: "post",
data: data,
});
}
// 注册方法
export function register(data) {
return request({
url: "/app/register",
headers: {
isToken: false,
},
method: "post",
data: data,
});
return request({
url: "/app/register",
headers: {
isToken: false,
},
method: "post",
data: data,
});
}
// 获取用户详细信息
export function getInfo() {
return request({
url: "/app/info",
method: "get",
});
return request({
url: "/app/info",
method: "get",
});
}
// 退出方法
export function logout() {
return request({
url: "/logout",
method: "post",
});
return request({
url: "/logout",
method: "post",
});
}
// 获取验证码
export function getCodeImg() {
return request({
url: "/app/captchaImage",
headers: {
isToken: false,
},
method: "get",
timeout: 20000,
});
return request({
url: "/app/captchaImage",
headers: {
isToken: false,
},
method: "get",
timeout: 20000,
});
}
// 重置密码
export function resetPassword() {
return request({
url: "/captchaImage",
headers: {
isToken: false,
},
method: "get",
timeout: 20000,
});
return request({
url: "/captchaImage",
headers: {
isToken: false,
},
method: "get",
timeout: 20000,
});
}
/**
@ -76,9 +76,9 @@ export function resetPassword() {
* @return {*}
*/
export function updateAvatar(data) {
return request({
url: "/app/updateAvatar",
method: "put",
data: data,
});
}
return request({
url: "/app/updateAvatar",
method: "put",
data: data,
});
}