From f67d29de422b39a271f4b6679c66e3284df2e5cb Mon Sep 17 00:00:00 2001
From: YM <479443481@qq.com>
Date: 星期六, 11 五月 2024 21:21:20 +0800
Subject: [PATCH] 1

---
 src/api/index.js |   77 ++++++++++++++++++++++++++++++++------
 1 files changed, 64 insertions(+), 13 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index eb5ef3c..74e0d05 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -1,6 +1,6 @@
 import req from "@/utils/request/req1.js";
-import req1 from "@/utils/request/req1.js";
 import qs from "querystring";
+import req1, { baseUrl } from "@/utils/request/req1";
 // 娉ㄥ唽鐧诲綍
 export const getaddLogin = (Obj) => {
   return req1({
@@ -87,7 +87,7 @@
   return req1({
     url: "/person/source",
     method: "post",
-    data: data
+    params: data
   });
 };
 // 浜虹墿鐩稿叧鐨� 涓汉鏃剁┖鍦板浘
@@ -95,7 +95,7 @@
   return req1({
     url: "/person/spaceTime",
     method: "post",
-    data: data
+    params: data
   });
 };
 
@@ -104,7 +104,7 @@
   return req1({
     url: "/person/images",
     method: "post",
-    data: data
+    params: data
   });
 };
 // 鍖诲浜虹墿鐭ヨ瘑搴� 涓汉浜嬭抗
@@ -112,7 +112,7 @@
   return req1({
     url: "/person/biog",
     method: "post",
-    data: data
+    params: data
   });
 };
 // 鍖诲浜虹墿鐭ヨ瘑搴� 浜虹墿鍏崇郴
@@ -120,7 +120,7 @@
   return req1({
     url: "/person/personRelationAtSchool",
     method: "post",
-    data: data
+    params: data
   });
 };
 
@@ -129,7 +129,7 @@
   return req1({
     url: "/person/writings",
     method: "post",
-    data: data
+    params: data
   });
 };
 // 鍖诲浜虹墿鐭ヨ瘑搴� 浜虹墿璇︽儏
@@ -137,14 +137,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,
+    url: "/person/fuzzySearch",
     method: "post",
+    params: {
+      keyword: requestData?.keyword
+    }
   });
 };
 
@@ -218,6 +229,44 @@
 };
 // -------------------------P
 
+// 鏈濅唬
+export const getDynastyAll = () => {
+  return req1({
+    url: "/dynasty/list",
+    method: "post"
+  });
+};
+
+export const getDynasty = () => {
+  return req1({
+    url: "/dynasty/listAll",
+    method: "post"
+  });
+};
+
+// 瀛︽湳娴佹淳
+export const getDynastyStatistics = () => {
+  return req1({
+    url: "/school/dynasty/statistics",
+    method: "get"
+  });
+};
+
+export const getIntroduction = (id) => {
+  return req1({
+    url: "/school/introduction?id=" + id,
+    method: "post"
+  });
+};
+
+export const searchSchoolPerson = (data) => {
+  return req1({
+    url: "/person/searchSchoolPerson",
+    method: "post",
+    params: data
+  });
+};
+
 // 鍖讳簨鍒跺害
 // 鏁版嵁缁熻
 export const getDataStatistics = () => {
@@ -235,11 +284,11 @@
   });
 };
 // 璇︽儏
-export const getMedicalDetails = (Obj) => {
+export const getMedicalDetails = (data) => {
   return req1({
     url: "/medical/details",
     method: "post",
-    data: Obj
+    data: data
   });
 };
 // 鍙栧�硷細RDF銆丯T銆乆ML銆丣SON
@@ -253,8 +302,6 @@
 
 // -----------
 
-
-
 // 涓浗鍖诲浜虹墿鐭ヨ瘑搴�
 // 鏁版嵁缁熻
 export const getPDataStatistics = () => {
@@ -264,3 +311,7 @@
   });
 };
 // ----------------
+
+export const getImg = (path) => {
+  return baseUrl + "/picture/getImageByFilePath?filePath=" + path;
+};

--
Gitblit v1.9.1