From 13a727c58400a256af3f7582b62d8237b227329e Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期一, 29 四月 2024 19:05:42 +0800 Subject: [PATCH] 人物详情和地图 --- src/api/index.js | 61 ++++++++++++++++++++++++------ 1 files changed, 48 insertions(+), 13 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index eb5ef3c..6c25b8c 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,17 @@ return req1({ url: "/person/getPersonInfo", method: "post", - data: Obj + 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 +221,36 @@ }; // -------------------------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 getDataStatistics = () => { @@ -235,11 +268,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 +286,6 @@ // ----------- - - // 涓浗鍖诲浜虹墿鐭ヨ瘑搴� // 鏁版嵁缁熻 export const getPDataStatistics = () => { @@ -264,3 +295,7 @@ }); }; // ---------------- + +export const getImg = (path) => { + return baseUrl + "/picture/getImageByFilePath?filePath=" + path; +}; -- Gitblit v1.9.1