From d4211fd96865e58217d63efaf4d8f6609fb24ae6 Mon Sep 17 00:00:00 2001 From: mh-two-thousand-and-two <17391232786@163.com> Date: 星期二, 16 四月 2024 17:43:33 +0800 Subject: [PATCH] 更新数据 --- src/api/index.js | 54 ++++++++++++++++++++++++++++++++++++------------------ 1 files changed, 36 insertions(+), 18 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 7880278..e77eeec 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -12,17 +12,14 @@ // 楠岃瘉鐮� /account/verifyCode export const getverifyCode = (req) => { - return new Promise((resolve, reject) => { - return req1.post('/account/verifyCode', { - data: qs.encode(req), - headers: { - "Content-Type": "application/x-www-form-urlencoded", - } - }).then((res) => { - resolve(res) - }).catch((err) => { - reject(err) - }) + console.log(req, qs.encode(req), 'rrr'); + return req1({ + url: "/account/verifyCode", + method: "post", + data: req, + headers: { + 'Content-Type': 'multipart/form-data' + } }) } @@ -126,7 +123,7 @@ data: Obj }) } -// 鍖诲浜虹墿鐭ヨ瘑搴撳熀纭�妫�绱� +// 鍖诲浜虹墿鐭ヨ瘑搴� 鍩虹妫�绱� export const getFuzzySearch = (Obj) => { console.log(Obj, 'sss'); return req1({ @@ -135,7 +132,8 @@ // data:Obj }) } -// 鍖诲浜虹墿鐭ヨ瘑搴撻珮绾ф绱� + +// 鍖诲浜虹墿鐭ヨ瘑搴� 楂樼骇妫�绱� export const getAdvanceSearch = (Obj) => { return req1({ url: '/person/advanceSearch', @@ -157,14 +155,23 @@ } // 鍖诲浜虹墿鐭ヨ瘑搴� +// 妫�绱㈤〉 // 鍩虹銆侀珮绾ф绱� ------------------------------ -export const getList = (person) => { +export const getPList = (person) => { return req1({ url: '/person/list', method: 'post', data: person }) } +// 妫�绱㈡暟鎹埌鍑� +export const getPDownload = () => { + return req1({ + url: '/person/download', + method: 'post' + }) +} +// -------------------------P @@ -182,7 +189,7 @@ return req1({ url: '/medical/list', method: 'post', - data:data + data: data }) } // 璇︽儏 @@ -190,7 +197,7 @@ return req1({ url: '/medical/details', method: 'post', - data:Obj + data: Obj }) } // 鍙栧�硷細RDF銆丯T銆乆ML銆丣SON @@ -198,7 +205,18 @@ return req1({ url: '/medical/dataOutput', method: 'post', - data:Obj + data: Obj }) } -// ----------- \ No newline at end of file + +// ----------- + +// 涓浗鍖诲浜虹墿鐭ヨ瘑搴� +// 鏁版嵁缁熻 +export const getPDataStatistics = () => { + return req1({ + url: '/person/dataStatistics', + method: 'post' + }) +} +// ---------------- \ No newline at end of file -- Gitblit v1.9.1