mh-two-thousand-and-two
2024-04-16 d4211fd96865e58217d63efaf4d8f6609fb24ae6
src/api/index.js
@@ -12,17 +12,14 @@
// 验证码   /account/verifyCode
export const getverifyCode = (req) => {
   return new Promise((resolve, reject) => {
      return req1.post('/account/verifyCode', {
         data: qs.encode(req),
   console.log(req, qs.encode(req), 'rrr');
   return req1({
      url: "/account/verifyCode",
      method: "post",
      data: req,
         headers: {
            "Content-Type": "application/x-www-form-urlencoded",
         'Content-Type': 'multipart/form-data'
         }
      }).then((res) => {
         resolve(res)
      }).catch((err) => {
         reject(err)
      })
   })
}
@@ -135,6 +132,7 @@
      // data:Obj
   })
}
// 医学人物知识库高级检索  
export const getAdvanceSearch = (Obj) => {
   return req1({
@@ -157,14 +155,23 @@
}
// 医学人物知识库
// 检索页
// 基础、高级检索 ------------------------------
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
@@ -201,4 +208,15 @@
      data:Obj
   })
}
// -----------
// 中国医学人物知识库
// 数据统计
export const getPDataStatistics = () => {
   return req1({
      url: '/person/dataStatistics',
      method: 'post'
   })
}
// ----------------