Commit 52b60940 authored by youjie's avatar youjie

修复bug

parent 4f862683
...@@ -201,6 +201,7 @@ export default { ...@@ -201,6 +201,7 @@ export default {
}, },
ageChange(e,index,indexs){ ageChange(e,index,indexs){
this.parameters.searchroomGroup[index].ChildAgeTexts[indexs].number = e this.parameters.searchroomGroup[index].ChildAgeTexts[indexs].number = e
this.parameters.searchroomGroup[index].ChildAgeDetails = this.parameters.searchroomGroup[index].ChildAgeTexts[indexs].number
}, },
etChange(e,index){ etChange(e,index){
this.parameters.searchroomGroup[index].numberOfChildren = e.value; this.parameters.searchroomGroup[index].numberOfChildren = e.value;
...@@ -213,7 +214,7 @@ export default { ...@@ -213,7 +214,7 @@ export default {
if(length==0){ if(length==0){
this.parameters.searchroomGroup[index].ChildAgeDetails = null this.parameters.searchroomGroup[index].ChildAgeDetails = null
}else{ }else{
this.parameters.searchroomGroup[index].ChildAgeDetails = this.parameters.searchroomGroup[index].ChildAgeTexts[length-1] this.parameters.searchroomGroup[index].ChildAgeDetails = this.parameters.searchroomGroup[index].ChildAgeTexts[length-1].number
} }
} }
}else if(e.value>this.parameters.searchroomGroup[index].ChildAgeTexts.length){ }else if(e.value>this.parameters.searchroomGroup[index].ChildAgeTexts.length){
...@@ -222,6 +223,7 @@ export default { ...@@ -222,6 +223,7 @@ export default {
this.parameters.searchroomGroup[index].ChildAgeTexts.push({ this.parameters.searchroomGroup[index].ChildAgeTexts.push({
number: 1, number: 1,
}) })
this.parameters.searchroomGroup[index].ChildAgeDetails = 1
} }
} }
this.peopleChange() this.peopleChange()
......
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