| | |
| | | |
| | | // 验证码 /account/verifyCode |
| | | export const getverifyCode = (req) => { |
| | | return new Promise((resolve, reject) => { |
| | | return req1.post('/account/verifyCode', { |
| | | data: qs.encode(req), |
| | | headers: { |
| | | "Content-Type": "application/x-www-form-urlencoded", |
| | | } |
| | | }).then((res) => { |
| | | resolve(res) |
| | | }).catch((err) => { |
| | | reject(err) |
| | | }) |
| | | console.log(req, qs.encode(req), 'rrr'); |
| | | return req1({ |
| | | url: "/account/verifyCode", |
| | | method: "post", |
| | | data: req, |
| | | headers: { |
| | | 'Content-Type': 'multipart/form-data' |
| | | } |
| | | }) |
| | | } |
| | | |
| | |
| | | data: Obj |
| | | }) |
| | | } |
| | | // 医学人物知识库基础检索 |
| | | // 医学人物知识库 基础检索 |
| | | export const getFuzzySearch = (Obj) => { |
| | | console.log(Obj, 'sss'); |
| | | return req1({ |
| | |
| | | // data:Obj |
| | | }) |
| | | } |
| | | // 医学人物知识库高级检索 |
| | | |
| | | // 医学人物知识库 高级检索 |
| | | export const getAdvanceSearch = (Obj) => { |
| | | return req1({ |
| | | url: '/person/advanceSearch', |
| | |
| | | } |
| | | // 医学人物知识库 |
| | | |
| | | // 检索页 |
| | | // 基础、高级检索 ------------------------------ |
| | | export const getList = (person) => { |
| | | export const getPList = (person) => { |
| | | return req1({ |
| | | url: '/person/list', |
| | | method: 'post', |
| | | data: person |
| | | }) |
| | | } |
| | | // 检索数据到出 |
| | | export const getPDownload = () => { |
| | | return req1({ |
| | | url: '/person/download', |
| | | method: 'post' |
| | | }) |
| | | } |
| | | // -------------------------P |
| | | |
| | | |
| | | |
| | |
| | | return req1({ |
| | | url: '/medical/list', |
| | | method: 'post', |
| | | data:data |
| | | data: data |
| | | }) |
| | | } |
| | | // 详情 |
| | |
| | | return req1({ |
| | | url: '/medical/details', |
| | | method: 'post', |
| | | data:Obj |
| | | data: Obj |
| | | }) |
| | | } |
| | | // 取值:RDF、NT、XML、JSON |
| | |
| | | return req1({ |
| | | url: '/medical/dataOutput', |
| | | method: 'post', |
| | | data:Obj |
| | | data: Obj |
| | | }) |
| | | } |
| | | // ----------- |
| | | |
| | | // ----------- |
| | | |
| | | // 中国医学人物知识库 |
| | | // 数据统计 |
| | | export const getPDataStatistics = () => { |
| | | return req1({ |
| | | url: '/person/dataStatistics', |
| | | method: 'post' |
| | | }) |
| | | } |
| | | // ---------------- |