refactor(health): 前端适配后端API重构
- 新增 medicationTask.js 替代 medicationRecord.js - 新增 medicationTask/index.vue 服药任务页面 - 更新 medicationAdherence.js 参数名 personId -> memberId - 状态值适配:0-待服药 1-已服药 2-漏服 3-跳过
This commit is contained in:
@@ -19,11 +19,11 @@ export function getDailyAdherence(query) {
|
||||
}
|
||||
|
||||
// 获取日历视图数据
|
||||
export function getCalendarData(personId, yearMonth) {
|
||||
export function getCalendarData(memberId, yearMonth) {
|
||||
return request({
|
||||
url: '/health/adherence/calendar',
|
||||
method: 'get',
|
||||
params: { personId, yearMonth }
|
||||
params: { memberId, yearMonth }
|
||||
})
|
||||
}
|
||||
|
||||
@@ -36,38 +36,11 @@ export function getTimeSlotAdherence(query) {
|
||||
})
|
||||
}
|
||||
|
||||
// 获取各药品依从性统计
|
||||
export function getMedicineAdherence(query) {
|
||||
return request({
|
||||
url: '/health/adherence/medicine',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获取各人员依从性统计
|
||||
export function getPersonAdherence(query) {
|
||||
return request({
|
||||
url: '/health/adherence/person',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获取漏服原因统计
|
||||
export function getMissedReasonStats(query) {
|
||||
return request({
|
||||
url: '/health/adherence/missedReason',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获取仪表盘概览数据
|
||||
export function getDashboard(personId) {
|
||||
export function getDashboard(memberId) {
|
||||
return request({
|
||||
url: '/health/adherence/dashboard',
|
||||
method: 'get',
|
||||
params: { personId }
|
||||
params: { memberId }
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user