From be5b7495edc7dbf7d3d934ba5a82782b7fbaf790 Mon Sep 17 00:00:00 2001
From: 杨磊 <505174330@qq.com>
Date: 星期三, 05 六月 2024 19:16:51 +0800
Subject: [PATCH] 图谱分页加载

---
 src/api/index.js |   41 +++++++++++++++++++++++++++++++++++++----
 1 files changed, 37 insertions(+), 4 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index bc821c5..c1d9702 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",
@@ -123,6 +121,14 @@
     params: data
   });
 };
+// 鍖诲浜虹墿鐭ヨ瘑搴� 浜虹墿鍏崇郴
+export const getNodeCount = (data) => {
+  return req1({
+    url: "/inheritMedical/nodeCount",
+    method: "post",
+    data: data
+  });
+};
 
 // 鍖诲浜虹墿鐭ヨ瘑搴� 钁楄堪
 export const getPersonWritings = (data) => {
@@ -171,8 +177,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"
   });
 };
 // 鍖诲浜虹墿鐭ヨ瘑搴�
@@ -319,3 +344,11 @@
 export const getImg = (path) => {
   return baseUrl + "/picture/getImageByFilePath?filePath=" + path;
 };
+
+export const getRelationTypeTreeList = () => {
+  return req1({
+    url: "/personRelationType/getRelationTypeTreeList",
+    method: "post"
+  });
+};
+

--
Gitblit v1.9.1