修复添加房产选择房产是的bug

This commit is contained in:
赵毅 2025-08-12 11:19:18 +08:00
parent f34ffdd1c4
commit bfc285ff57

View File

@ -259,12 +259,13 @@ export default {
this.fName = this.fName =
this.step == 4 ? this.fName : this.facilityName ? item.label : ""; this.step == 4 ? this.fName : this.facilityName ? item.label : "";
await request(apiArr.commRoomSelect, "POST", { await request(apiArr.commRoomSelect, "POST", {
community_ids: item.community_id ? item.community_id : this.communityId, community_ids: [item.community_id ? item.community_id : this.communityId],
facility_names: this.facilityName, facility_names: this.facilityName ? [this.facilityName] : [],
floors: this.facilityName floors: this.facilityName
? this.facilityName == this.fName ? this.facilityName == this.fName
? "" ? ""
: item.label : [item.label]
: "", : "",
}).then((res) => { }).then((res) => {
// //
@ -339,7 +340,7 @@ export default {
// //
getRoomSelect() { getRoomSelect() {
request(apiArr.commRoomSelect, "POST", { request(apiArr.commRoomSelect, "POST", {
community_ids: this.currentCommunity.community_id, community_ids: [this.currentCommunity.community_id],
}).then((res) => { }).then((res) => {
console.log(res); console.log(res);
this.step = 2; this.step = 2;