From 1e264767dd2ac93e83b57b4e8e6626621fff4c6f Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期二, 20 五月 2025 22:41:03 +0800 Subject: [PATCH] 修改了bug --- ruoyi-ui/src/api/healthy/index.js | 65 +++++++++++++++++++++++++++++--- 1 files changed, 58 insertions(+), 7 deletions(-) diff --git a/ruoyi-ui/src/api/healthy/index.js b/ruoyi-ui/src/api/healthy/index.js index fb77407..9045f72 100644 --- a/ruoyi-ui/src/api/healthy/index.js +++ b/ruoyi-ui/src/api/healthy/index.js @@ -45,10 +45,60 @@ data: data }) } + +// 鏌ヨ鍘嗗勾浣撴鎯呭喌 +export function listExamination(query) { + return request({ + url: '/physcial/all', + method: 'get', + params: query + }) +} + + +// // 鏍规嵁id鏌ヨ璇︾粏淇℃伅 +export function getExaminationInfo(queryParameters) { + return request({ + url: '/physcial' , + method: 'get', + params: queryParameters + }) +} + +//澧炲姞瀹跺涵璁惧 +export function addExamination(data) +{ + return request({ + url: '/physcial', + method: 'post', + data: data + }) +} + +// 鍒犻櫎瀹跺涵璁惧 +export function delExamination(Ids) { + return request({ + url: '/physcial/' + Ids, + method: 'delete' + }) +} +//淇敼瀹跺涵璁惧 +export function updateExamination(data) { + return request({ + url: '/physcial', + method: 'put', + data: data + }) +} + + + + + //涓婁紶鏂囦欢 export function uploadPic(data) { return request({ - url: '/common/upload', + url: '/common/uploads', method: 'post', data: data }) @@ -62,6 +112,7 @@ responseType: 'blob' }) } + //涓婁紶鏂囦欢 export function enload(data) { return request({ @@ -85,7 +136,7 @@ export function updateHealthBase(data) { return request({ url: '/zHealthBase', - method: 'put', + method: 'post', data: data }) } @@ -113,7 +164,7 @@ export function updateHealthHabit(data) { return request({ url: '/zHealthHabit', - method: 'put', + method: 'post', data: data }) } @@ -133,7 +184,7 @@ export function updateHealthHuli(data) { return request({ url: '/zHealthInfo', - method: 'put', + method: 'post', data: data }) } @@ -152,7 +203,7 @@ export function updateHealthNow(data) { return request({ url: '/zHealthNow', - method: 'put', + method: 'post', data: data }) } @@ -160,7 +211,7 @@ //鑾峰緱鎵�鏈� export function listHealthNote(query) { return request({ - url: '/zHealthNote/all', + url: '/zHealthNote', method: 'get', params: query }) @@ -170,7 +221,7 @@ export function updateHealthNote(data) { return request({ url: '/zHealthNote', - method: 'put', + method: 'post', data: data }) } -- Gitblit v1.9.1