|
|
@@ -728,6 +728,8 @@ export default {
|
|
|
|
|
|
// 加载家庭成员可见列表
|
|
|
this.loadFamilyMembersVisible()
|
|
|
+ // 加载健康预警(P1-2)
|
|
|
+ this.loadAlerts()
|
|
|
// 加载外部联系人
|
|
|
this.loadContacts()
|
|
|
// 加载推荐阅读
|
|
|
@@ -815,7 +817,7 @@ export default {
|
|
|
var childId = this.selectedChild && this.selectedChild.id
|
|
|
if (!childId) return
|
|
|
var self = this
|
|
|
- api.getActiveAlerts({ childId: childId }).then(function(res) {
|
|
|
+ getActiveAlerts({ childId: childId }).then(function(res) {
|
|
|
if (res.code === 200) {
|
|
|
self.healthAlerts = res.data || []
|
|
|
}
|
|
|
@@ -823,7 +825,7 @@ export default {
|
|
|
},
|
|
|
onAlertDismiss: function(alertId) {
|
|
|
var self = this
|
|
|
- api.dismissAlert({ id: alertId }).then(function(res) {
|
|
|
+ dismissAlert({ id: alertId }).then(function(res) {
|
|
|
if (res.code === 200) {
|
|
|
self.healthAlerts = self.healthAlerts.filter(function(a) { return a.id !== alertId })
|
|
|
}
|