1
YM
2024-06-06 c56935d7085725e609d926b064c146f3ffc29e6e
src/api/index.js
@@ -12,7 +12,6 @@
// 验证码   /account/verifyCode
export const getverifyCode = (req) => {
  console.log(req, qs.encode(req), "rrr");
  return req1({
    url: "/account/verifyCode",
    method: "post",
@@ -25,7 +24,6 @@
// login 登录
export const getLogin = (req) => {
  console.log(req, qs.encode(req), "rrr");
  return req1({
    url: "/account/verification",
    method: "post",
@@ -123,6 +121,14 @@
    params: data
  });
};
// 医学人物知识库 人物关系
export const getNodeCount = (data) => {
  return req1({
    url: "/inheritMedical/nodeCount",
    method: "post",
    data: data
  });
};
// 医学人物知识库 著述
export const getPersonWritings = (data) => {
@@ -140,6 +146,14 @@
    params: Obj
  });
};
export const getWebBasic = (Obj) => {
  return req1({
    url: "/person/webBasic",
    method: "post",
    params: Obj
  });
};
// 医学人物知识库 基础检索
export const getFuzzySearch = (requestData) => {
  return req1({
@@ -163,12 +177,27 @@
// 中国地域地谱检索人物
export const getRetrieval = (requestData) => {
  return req1({
    url: "/person/retrieval",
    method: "post",
    data: {
      keyword: requestData?.keyword || "",
      dynasty: requestData?.dynasty || ""
    }
    url:
      "/person/retrieval?page=" +
      requestData?.page +
      "&pageSize=" +
      requestData?.pageSize +
      "&keyword=" +
      requestData?.keyword +
      "&dynasty=" +
      requestData?.dynasty,
    method: "post"
  });
};
// 中国地域地谱检索人物
export const getPreCount = (requestData) => {
  return req1({
    url:
      "/person/retrieval/preCount?keyword="  +
      requestData?.keyword +
      "&dynasty=" +
      requestData?.dynasty,
    method: "post"
  });
};
// 医学人物知识库
@@ -251,6 +280,14 @@
  });
};
export const searchSchoolPerson = (data) => {
  return req1({
    url: "/person/searchSchoolPerson",
    method: "post",
    params: data
  });
};
// 医事制度
// 数据统计
export const getDataStatistics = () => {
@@ -284,6 +321,14 @@
  });
};
export const getPersonDataOutput = (Obj) => {
  return req1({
    url: "/person/dataOutput",
    method: "post",
    params: Obj
  });
};
// -----------
// 中国医学人物知识库
@@ -299,3 +344,25 @@
export const getImg = (path) => {
  return baseUrl + "/picture/getImageByFilePath?filePath=" + path;
};
export const getRelationTypeTreeList = () => {
  return req1({
    url: "/personRelationType/getRelationTypeTreeList",
    method: "post"
  });
};
export const getInstitutionList = () => {
  return req1({
    url: "/medical/institutionList",
    method: "post"
  });
};