修复添加房产-楼层数据的显示问题

This commit is contained in:
赵毅 2025-08-01 16:39:41 +08:00
parent 1f3e2824ef
commit 5dca603b29

View File

@ -267,8 +267,16 @@ export default {
: item.label : item.label
: "", : "",
}).then((res) => { }).then((res) => {
this.filteredFloorsList = //
this.step == 4 ? this.filteredFloorsList : res.rows; if(this.step != 4) {
res.rows.sort((a, b) => {
//
const floorA = parseInt(a.label.replace(/[^\d]/g, ''));
const floorB = parseInt(b.label.replace(/[^\d]/g, ''));
return floorA - floorB;
});
}
this.filteredFloorsList = this.step == 4 ? this.filteredFloorsList : res.rows;
this.searchList = res.rows; this.searchList = res.rows;
this.searchQuery = ""; this.searchQuery = "";
if (this.step == "1") { if (this.step == "1") {