From 26ac0c266ae778635c5497b53d9fb61457db7115 Mon Sep 17 00:00:00 2001 From: heimawl <1785969728@qq.com> Date: 星期四, 15 六月 2023 10:15:02 +0800 Subject: [PATCH] 封装api接口,宣教管理模块搭建 --- src/api/patient/homepage.js | 65 +++++++++++++++++++++++++++++++- 1 files changed, 63 insertions(+), 2 deletions(-) diff --git a/src/api/patient/homepage.js b/src/api/patient/homepage.js index 713159b..6f3bf90 100644 --- a/src/api/patient/homepage.js +++ b/src/api/patient/homepage.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import { parseStrEmpty } from "@/utils/ruoyi"; +import { parseStrEmpty } from "@/utils/ruoyi";//澶勭悊瀛楃涓�,und,null杞崲涓�''; // 鏌ヨ鎮h�呭垪琛� export function listpatient(query) { @@ -8,4 +8,65 @@ method: 'get', params: query }) -} \ No newline at end of file +}; +// 鐢ㄦ埛淇℃伅鏌ヨ鎮h�呭垪琛� +export function messagelistpatient(data) { + return request({ + url: '/smartor/patarchive/patInfoByContion', + method: 'post', + data: data + }) +}; +// 鏍囩鏌ヨ鎮h�呭垪琛� +export function taglistpatient(data) { + return request({ + url: '/smartor/patarchive/patTagByContion', + method: 'post', + data: data + }) +}; +// 淇敼鎮h�呮。妗� +export function alterpatient(data) { + return request({ + url: '/smartor/patarchive', + method: 'put', + data: data + }) +}; +// 鏂板鎮h�� +export function addpatient(data) { + return request({ + url: '/smartor/patarchive', + method: 'post', + data: data + }) +}; +// 鎮h�呰鎯� +export function particularpatient(userId) { + return request({ + url: '/smartor/patarchive/' + userId, + method: 'get', + }) +}; +// 鍒犻櫎鎮h�呭垪琛� +export function deletepatient(userId) { + return request({ + url: '/smartor/patarchive/' + userId, + method: 'delete', + }) +}; + +// 瀵煎嚭鎮h�呴敊璇俊鎭� +export function Exporterrorpatient(userId) { + return request({ + url: '/smartor/patarchive/patTagByContion/'+userId, + method: 'get', + }) +}; +// 瀵煎叆鎮h�呮枃浠跺鐞� +export function toleadpatient(userId) { + return request({ + url: '/smartor/patarchive/patTagByContion/'+userId, + method: 'get', + }) +}; -- Gitblit v1.9.3