From a971d0c13ab9cd5107152f6eba5e1e724a37fa0b Mon Sep 17 00:00:00 2001
From: 杨磊 <505174330@qq.com>
Date: 星期五, 07 六月 2024 17:20:31 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/TCM_CharacterLibrary

---
 src/api/index.js |  108 ++++++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 92 insertions(+), 16 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index 1d46bbf..528c29e 100644
--- a/src/api/index.js
+++ b/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",
@@ -87,7 +85,7 @@
   return req1({
     url: "/person/source",
     method: "post",
-    data: data
+    params: data
   });
 };
 // 浜虹墿鐩稿叧鐨� 涓汉鏃剁┖鍦板浘
@@ -95,7 +93,7 @@
   return req1({
     url: "/person/spaceTime",
     method: "post",
-    data: data
+    params: data
   });
 };
 
@@ -104,7 +102,7 @@
   return req1({
     url: "/person/images",
     method: "post",
-    data: data
+    params: data
   });
 };
 // 鍖诲浜虹墿鐭ヨ瘑搴� 涓汉浜嬭抗
@@ -112,13 +110,21 @@
   return req1({
     url: "/person/biog",
     method: "post",
-    data: data
+    params: data
   });
 };
 // 鍖诲浜虹墿鐭ヨ瘑搴� 浜虹墿鍏崇郴
 export const getPersonRelationAtSchool = (data) => {
   return req1({
     url: "/person/personRelationAtSchool",
+    method: "post",
+    params: data
+  });
+};
+// 鍖诲浜虹墿鐭ヨ瘑搴� 浜虹墿鍏崇郴
+export const getNodeCount = (data) => {
+  return req1({
+    url: "/inheritMedical/nodeCount",
     method: "post",
     data: data
   });
@@ -129,7 +135,7 @@
   return req1({
     url: "/person/writings",
     method: "post",
-    data: data
+    params: data
   });
 };
 // 鍖诲浜虹墿鐭ヨ瘑搴� 浜虹墿璇︽儏
@@ -137,14 +143,25 @@
   return req1({
     url: "/person/getPersonInfo",
     method: "post",
-    data: Obj
+    params: Obj
   });
 };
+export const getWebBasic = (Obj) => {
+  return req1({
+    url: "/person/webBasic",
+    method: "post",
+    params: Obj
+  });
+};
+
 // 鍖诲浜虹墿鐭ヨ瘑搴� 鍩虹妫�绱�
 export const getFuzzySearch = (requestData) => {
   return req1({
-    url: "/person/fuzzySearch?keyword=" + requestData?.keyword,
-    method: "post"
+    url: "/person/fuzzySearch",
+    method: "post",
+    params: {
+      keyword: requestData?.keyword
+    }
   });
 };
 
@@ -160,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"
   });
 };
 // 鍖诲浜虹墿鐭ヨ瘑搴�
@@ -232,6 +264,12 @@
     method: "post"
   });
 };
+export const getDynastyData = () => {
+  return req1({
+    url: "/person/retrieval/dynasty",
+    method: "post"
+  });
+};
 
 // 瀛︽湳娴佹淳
 export const getDynastyStatistics = () => {
@@ -245,6 +283,14 @@
   return req1({
     url: "/school/introduction?id=" + id,
     method: "post"
+  });
+};
+
+export const searchSchoolPerson = (data) => {
+  return req1({
+    url: "/person/searchSchoolPerson",
+    method: "post",
+    params: data
   });
 };
 
@@ -281,6 +327,14 @@
   });
 };
 
+export const getPersonDataOutput = (Obj) => {
+  return req1({
+    url: "/person/dataOutput",
+    method: "post",
+    params: Obj
+  });
+};
+
 // -----------
 
 // 涓浗鍖诲浜虹墿鐭ヨ瘑搴�
@@ -296,3 +350,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"
+  });
+};
+
+
+
+
+
+
+
+

--
Gitblit v1.9.1