Commit 4d4267d2 by Sweet Zhang

孩子健康标题修改

parent f2e0eceb
...@@ -110,6 +110,10 @@ export class ChildrenHealthComponent implements OnInit { ...@@ -110,6 +110,10 @@ export class ChildrenHealthComponent implements OnInit {
this.curPageData = res['data']['survey'].pages['12']; this.curPageData = res['data']['survey'].pages['12'];
this.lastQuestions = this.commonService.todosCopy.filter(item => item.pageId == 13).pop(); this.lastQuestions = this.commonService.todosCopy.filter(item => item.pageId == 13).pop();
this.id = this.route.snapshot.params['childId']; this.id = this.route.snapshot.params['childId'];
for (let j = 0; j < this.curPageData['questions'].length; j++) {
this.curPageData['questions'][j]['questionName'] = '孩子' + this.id + '的健康状态';
break;
}
if (this.lastQuestions) { if (this.lastQuestions) {
this.childTotalQuestions = this.lastQuestions['questions']; this.childTotalQuestions = this.lastQuestions['questions'];
for (let i = 0; i < this.lastQuestions['questions'].length; i++) { for (let i = 0; i < this.lastQuestions['questions'].length; i++) {
...@@ -132,6 +136,7 @@ export class ChildrenHealthComponent implements OnInit { ...@@ -132,6 +136,7 @@ export class ChildrenHealthComponent implements OnInit {
} }
} }
} }
console.log(this.curPageData['questions'])
} }
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment