电表箱支持按建筑筛选,倍率必填,拆表传id

This commit is contained in:
2025-11-14 17:22:11 +08:00
parent f138fabce9
commit 771bacdafa
5 changed files with 10 additions and 6 deletions

View File

@@ -19,6 +19,7 @@ Component({
type: String,
show: Boolean,
park: String,
building: String,
isBack: Boolean,
filterBind: Boolean,
},
@@ -248,8 +249,8 @@ Component({
})
},
async onSearchMeterBox() {
const { park } = this.data;
const { code, message, data = [] } = await getParkBoxList({park});
const { park, building } = this.data;
const { code, message, data = [] } = await getParkBoxList({park, building});
if (code !== OK) {
alertInfo(message)
return