From f3e5b489e30a921c03ef8b97e1cd845b65ea5d9d Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期三, 05 六月 2024 18:17:16 +0800 Subject: [PATCH] 1 --- src/api/index.js | 50 ++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 42 insertions(+), 8 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index cfdaad6..42aaa5d 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) => { @@ -140,6 +146,14 @@ params: Obj }); }; +export const getWebBasic = (Obj) => { + return req1({ + url: "/person/webBasic", + method: "post", + params: Obj + }); +}; + // 鍖诲浜虹墿鐭ヨ瘑搴� 鍩虹妫�绱� export const getFuzzySearch = (requestData) => { return req1({ @@ -163,12 +177,16 @@ // 涓浗鍦板煙鍦拌氨妫�绱汉鐗� 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" }); }; // 鍖诲浜虹墿鐭ヨ瘑搴� @@ -292,6 +310,14 @@ }); }; +export const getPersonDataOutput = (Obj) => { + return req1({ + url: "/person/dataOutput", + method: "post", + params: Obj + }); +}; + // ----------- // 涓浗鍖诲浜虹墿鐭ヨ瘑搴� @@ -307,3 +333,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