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),
         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'
      }
   })
}
@@ -126,7 +123,7 @@
      data: Obj
   })
}
// 医学人物知识库基础检索
// 医学人物知识库 基础检索
export const getFuzzySearch = (Obj) => {
   console.log(Obj, 'sss');
   return req1({
@@ -135,7 +132,8 @@
      // data:Obj
   })
}
// 医学人物知识库高级检索
// 医学人物知识库 高级检索
export const getAdvanceSearch = (Obj) => {
   return req1({
      url: '/person/advanceSearch',
@@ -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
@@ -182,7 +189,7 @@
   return req1({
      url: '/medical/list',
      method: 'post',
      data:data
      data: data
   })
}
// 详情
@@ -190,7 +197,7 @@
   return req1({
      url: '/medical/details',
      method: 'post',
      data:Obj
      data: Obj
   })
}
// 取值:RDF、NT、XML、JSON
@@ -198,7 +205,18 @@
   return req1({
      url: '/medical/dataOutput',
      method: 'post',
      data:Obj
      data: Obj
   })
}
// -----------
// -----------
// 中国医学人物知识库
// 数据统计
export const getPDataStatistics = () => {
   return req1({
      url: '/person/dataStatistics',
      method: 'post'
   })
}
// ----------------