This commit is contained in:
白菜
2026-01-19 17:30:03 +08:00
parent de403e861d
commit 648f031ebe
12 changed files with 536 additions and 425 deletions

View File

@ -147,19 +147,24 @@
}
},
mounted() {
onLoad(options) {
uni.showLoading()
this.siteId = this.$route.query.siteId || ''
this.siteId = options.siteId || ''
getAmmeterDataList({
siteId: this.siteId
}).then(response => {
this.list = response?.data || []
this.$nextTick(() => {
setTimeout(() => {
this.$refs.collapse.resize()
uni.hideLoading()
}, 100)
})
if (this.list.length > 0) {
this.$nextTick(() => {
setTimeout(() => {
this.$refs.collapse.resize()
uni.hideLoading()
}, 1000)
})
} else {
uni.hideLoading()
}
}).catch(() => {
uni.hideLoading()
})