身份
-
+
@@ -39,70 +39,115 @@
+ @import url("./index.css");
+
\ No newline at end of file
diff --git a/packages/community/choseCommunity/index.vue b/packages/community/choseCommunity/index.vue
index 942f3959..8636ba46 100644
--- a/packages/community/choseCommunity/index.vue
+++ b/packages/community/choseCommunity/index.vue
@@ -21,8 +21,7 @@
@@ -117,7 +116,7 @@
{{facilityName + fName + rName}}
@@ -150,13 +149,14 @@
// foloorList: [],
// floorsList: [],
rName: '',
+ roomId: '',
// roomList: [],
page_num: 1,
page_size: 10,
dialogBoxShow: false,
searchQuery: '',
filteredFloorsList: [],
- searchList:[]
+ searchList: []
}
},
methods: {
@@ -212,6 +212,7 @@
} else {
this.dialogBoxShow = true;
this.rName = item.label
+ this.romId = item.value
}
})
},
@@ -221,6 +222,28 @@
item.label.includes(this.searchQuery)
);
},
+ confirmComm() {
+ const params = {
+ changeVal: `${this.cName}${this.facilityName}${this.fName}${this.rName}`,
+ community_id: this.communityId,
+ room_id: this.romId
+ };
+ console.log(params)
+ // 手动创建查询字符串
+ function createQueryString(params) {
+ return Object.keys(params)
+ .map(key => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`)
+ .join('&');
+ }
+
+ // 拼接路径和参数
+ const targetPath = "/packages/community/addCommunity/index";
+ const queryString = createQueryString(params);
+ const fullPath = `${targetPath}?${queryString}`;
+
+ // 调用导航方法
+ NavgateTo(fullPath);
+ }
},
onLoad(options) {