科研机构后台绑定专家和实验室

This commit is contained in:
quantulr
2024-03-08 16:21:44 +08:00
parent 31b92d6475
commit ce7f7e4b8b
23 changed files with 923 additions and 517 deletions

View File

@ -2,28 +2,28 @@ import request from "@/utils/request";
// 科研机构专家列表
export const expertList = (params) => {
return request({
url: `/app/research/expertList`,
method: "GET",
params,
});
return request({
url: `/app/research/expertList`,
method: "GET",
params,
});
};
// 科研机构取消专家绑定
export const deleteBindExpert = (expertId) => {
return request({
url: `/app/research/deleteBindExpert/${expertId}`,
method: "PUT",
});
return request({
url: `/app/research/deleteBindExpert/${expertId}`,
method: "PUT",
});
};
// 科研机构新增专利
export const insertLabPatent = (data) => {
return request({
url: `/app/research/patent`,
method: "POST",
data,
});
return request({
url: `/app/research/patent`,
method: "POST",
data,
});
};
/**
@ -32,16 +32,68 @@ export const insertLabPatent = (data) => {
* @return {*}
*/
export const updateLabPatent = (data) => {
return request({
url: `/app/research/patent`,
method: "PUT",
data,
});
return request({
url: `/app/research/patent`,
method: "PUT",
data,
});
};
export const deleteLabPatentByIds = (ids) => {
return request({
url: `/app/research/deletePatents/${ids}`,
method: "DELETE",
});
return request({
url: `/app/research/deletePatents/${ids}`,
method: "DELETE",
});
};
/**
* 实验室未绑定专家列表
* @param params
* @return {*}
*/
export const selectNotBindResearch = (params) => {
return request({
url: `/app/research/selectNotBindResearch`,
method: "GET",
params,
});
};
/**
* 实验室专家绑定
* @param expertId
* @return {*}
*/
export const bindExpert = (expertId) => {
return request({
url: `/app/research/bindExpert/${expertId}`,
method: "GET",
});
};
/**
* 实验室未绑定专家列表
* @param params
* @return {*}
*/
export const selectLabNotBindResearch = (params) => {
return request({
url: `/app/research/selectLabNotBindResearch`,
method: "GET",
params,
});
};
/**
* 科研机构专家绑定
* @param laboratoryId
* @return {*}
*/
export const bindLaboratory = (laboratoryId) => {
return request({
url: `/app/research/bindLaboratory/${laboratoryId}`,
method: "GET",
});
};