From d5f572496c5fb12fec2fe346b847bf58331299c9 Mon Sep 17 00:00:00 2001
From: YM <479443481@qq.com>
Date: 星期三, 17 七月 2024 15:56:51 +0800
Subject: [PATCH] 1

---
 src/api/index.js |   71 +++++++++++++++++++++++++++++++----
 1 files changed, 63 insertions(+), 8 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index 7cca411..e534e70 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",
@@ -128,7 +126,7 @@
   return req1({
     url: "/inheritMedical/nodeCount",
     method: "post",
-    params: data
+    data: data
   });
 };
 
@@ -162,7 +160,8 @@
     url: "/person/fuzzySearch",
     method: "post",
     params: {
-      keyword: requestData?.keyword
+      keyword: requestData?.keyword,
+      personId: requestData?.personId,
     }
   });
 };
@@ -179,8 +178,27 @@
 // 涓浗鍦板煙鍦拌氨妫�绱汉鐗�
 export const getRetrieval = (requestData) => {
   return req1({
-    url: "/person/retrieval?keyword=" + requestData?.keyword  + "&dynasty=" + requestData?.dynasty,
-    method: "post",
+    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"
   });
 };
 // 鍖诲浜虹墿鐭ヨ瘑搴�
@@ -233,7 +251,7 @@
 };
 // -------------------------P
 
-// 鏈濅唬
+// 鏃舵湡
 export const getDynastyAll = () => {
   return req1({
     url: "/dynasty/list",
@@ -244,6 +262,12 @@
 export const getDynasty = () => {
   return req1({
     url: "/dynasty/listAll",
+    method: "post"
+  });
+};
+export const getDynastyData = () => {
+  return req1({
+    url: "/person/retrieval/dynasty",
     method: "post"
   });
 };
@@ -262,6 +286,15 @@
     method: "post"
   });
 };
+
+export const schoolAtlas = (id) => {
+  return req1({
+    url: "/person/schoolAtlas?schoolId=" + id,
+    method: "post"
+  });
+};
+
+ 
 
 export const searchSchoolPerson = (data) => {
   return req1({
@@ -314,7 +347,7 @@
 
 // -----------
 
-// 涓浗鍖诲浜虹墿鐭ヨ瘑搴�
+// 涓浗鍘嗕唬鍖诲浜虹墿鐭ヨ瘑搴�
 // 鏁版嵁缁熻
 export const getPDataStatistics = () => {
   return req1({
@@ -327,3 +360,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