|
@@ -1808,6 +1808,16 @@ Page({
|
|
checked: true
|
|
checked: true
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+ }else{
|
|
|
|
+ for (var i = 0; i < this.data.oldInfo[this.data.activeIndex].oldType.length; i++) {
|
|
|
|
+ if (this.data.oldInfo[this.data.activeIndex].oldType[i].name == '失能老人') {
|
|
|
|
+ this.data.oldInfo[this.data.activeIndex].oldType.splice(i, 1);
|
|
|
|
+ }
|
|
|
|
+ this.setData({
|
|
|
|
+ [Info]:this.data.oldInfo[this.data.activeIndex].oldType
|
|
|
|
+ })
|
|
|
|
+ console.log(this.data.oldInfo[this.data.activeIndex].oldType,'------------')
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.SubmitOldmanInfo({
|
|
this.SubmitOldmanInfo({
|
|
id: this.data.nameArr[this.data.activeIndex]._id,
|
|
id: this.data.nameArr[this.data.activeIndex]._id,
|
|
@@ -2282,7 +2292,7 @@ Page({
|
|
let revise2 = "oldInfo[" + this.data.activeIndex + "].oldType[1].disable";
|
|
let revise2 = "oldInfo[" + this.data.activeIndex + "].oldType[1].disable";
|
|
let revise3 = "oldInfo[" + this.data.activeIndex + "].oldType[2].disable";
|
|
let revise3 = "oldInfo[" + this.data.activeIndex + "].oldType[2].disable";
|
|
let revise4 = "oldInfo[" + this.data.activeIndex + "].oldType[3].disable";
|
|
let revise4 = "oldInfo[" + this.data.activeIndex + "].oldType[3].disable";
|
|
- // let revise5 = "oldInfo[" + this.data.activeIndex + "].oldType[4].checked";
|
|
|
|
|
|
+ let revise5 = "oldInfo[" + this.data.activeIndex + "].oldType[3].checked";
|
|
this.SubmitOldmanInfo({
|
|
this.SubmitOldmanInfo({
|
|
id: this.data.nameArr[this.data.activeIndex]._id,
|
|
id: this.data.nameArr[this.data.activeIndex]._id,
|
|
oldType: JSON.stringify(e.detail.value)
|
|
oldType: JSON.stringify(e.detail.value)
|
|
@@ -2320,7 +2330,7 @@ Page({
|
|
[revise2]: true,
|
|
[revise2]: true,
|
|
[revise3]: true,
|
|
[revise3]: true,
|
|
[revise4]: true,
|
|
[revise4]: true,
|
|
- // [revise5]: true
|
|
|
|
|
|
+ [revise5]: true
|
|
})
|
|
})
|
|
return false;
|
|
return false;
|
|
} else if (index4 >= 0) {
|
|
} else if (index4 >= 0) {
|