Commit 09cb8c21 by Sweet Zhang

修改

parent b0496b94
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -73,7 +73,19 @@ export class Page11Component implements OnInit {
}
questions[0]['options'].forEach(option => {
if(option['selected']){
this.allOptions.push(option)
this.allOptions.push(option);
const ret = {
// ...this.curPageData,
pageId: this.curPageData['pageId'],
questions: [
{
...this.curPageData['questions'][0],
questionId: this.curPageData['questions'][0].questionId,
options: this.filterItems()
}
]
}
this.getAllAnswer.emit(ret)
}
});
}
......
......@@ -70,7 +70,19 @@ export class Page12Component implements OnInit {
}
questions[0]['options'].forEach(option => {
if(option['selected']){
this.allOptions.push(option)
this.allOptions.push(option);
const ret = {
// ...this.curPageData,
pageId: this.curPageData['pageId'],
questions: [
{
...this.curPageData['questions'][0],
questionId: this.curPageData['questions'][0].questionId,
options: this.filterItems()
}
]
}
this.getAllAnswer.emit(ret)
}
});
}
......
......@@ -67,7 +67,19 @@ export class Page13Component implements OnInit {
}
questions[0]['options'].forEach(option => {
if(option['selected']){
this.allOptions.push(option)
this.allOptions.push(option);
const ret = {
// ...this.curPageData,
pageId: this.curPageData['pageId'],
questions: [
{
...this.curPageData['questions'][0],
questionId: this.curPageData['questions'][0].questionId,
options: this.filterItems()
}
]
}
this.getAllAnswer.emit(ret)
}
});
}
......
......@@ -108,7 +108,8 @@ export class Page14Component implements OnInit {
}
options.forEach(option => {
if (option['selected']) {
this.selectedObj = option
this.selectedObj = option;
this.getAnswer(this.selectedObj);
}
})
}
......
......@@ -111,7 +111,8 @@ export class Page15Component implements OnInit {
}
options.forEach(option => {
if (option['selected']) {
this.selectedObj = option
this.selectedObj = option;
this.getAnswer(this.selectedObj);
}
})
}
......
......@@ -107,7 +107,8 @@ export class Page16Component implements OnInit {
}
options.forEach(option => {
if (option['selected']) {
this.selectedProvinceObj = option
this.selectedProvinceObj = option;
this.getAnswer(this.selectedProvinceObj);
}
})
console.log(this.selectedProvinceObj)
......
......@@ -50,7 +50,17 @@ export class Page2Component implements OnInit {
}
options.forEach(option => {
if (option['selected']) {
this.selectedObj = option
this.selectedObj = option;
const ret = {
pageId: this.curPageData['pageId'],
questions: [
{
questionId: this.curPageData['questions'][0].questionId,
options: [this.selectedObj]
}
]
}
this.getAllAnswer.emit(ret);
}
})
}
......
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