|
@@ -399,6 +399,8 @@ export default {
|
|
|
this.room = 'true';
|
|
|
} else {
|
|
|
this.timePeriod.splice(inx, 1);
|
|
|
+ this.formData.FnroomNumberid.splice(inx, 1);
|
|
|
+ console.log(this.formData.FnroomNumberid);
|
|
|
this.room = 'false';
|
|
|
}
|
|
|
},
|
|
@@ -413,9 +415,9 @@ export default {
|
|
|
if (this.params.todo == 'edit') {
|
|
|
url = '/sc-community-web/business/edit';
|
|
|
}
|
|
|
- let houseIds = [];
|
|
|
+ // let houseIds = [];
|
|
|
this.timePeriod.map((item) => {
|
|
|
- houseIds.push(item.roomNumberid);
|
|
|
+ // houseIds.push(item.roomNumberid);
|
|
|
});
|
|
|
let installparams = {
|
|
|
id: this.params.data,
|
|
@@ -426,7 +428,7 @@ export default {
|
|
|
demandSource: this.formData.demandType,
|
|
|
intentionGrade: this.formData.intentionLevel,
|
|
|
remark: this.formData.remarks,
|
|
|
- houseIds: houseIds,
|
|
|
+ houseIds: this.formData.FnroomNumberid,
|
|
|
userId: this.formData.userId,
|
|
|
username: this.formData.username
|
|
|
};
|
|
@@ -512,10 +514,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
changeInformroomNumber (items) {
|
|
|
- // if (this.room == 'false') {
|
|
|
- // this.formData.FnroomNumberid = [];
|
|
|
- // }
|
|
|
- // this.formData.FnroomNumberid.push(items.value);
|
|
|
+ this.formData.FnroomNumberid.push(items.value);
|
|
|
},
|
|
|
findUserToggle () {
|
|
|
this.formData.username = this.$refs.userName.getCheckedNodes()[0].label;
|