diff --git a/src/api/admin/research/expert.js b/src/api/admin/research/expert.js index 08ce19e..65fed63 100644 --- a/src/api/admin/research/expert.js +++ b/src/api/admin/research/expert.js @@ -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", + }); +}; \ No newline at end of file diff --git a/src/views/admin/research/research/expert/index.vue b/src/views/admin/research/research/expert/index.vue index 7b60e73..4881be9 100644 --- a/src/views/admin/research/research/expert/index.vue +++ b/src/views/admin/research/research/expert/index.vue @@ -1,33 +1,33 @@