@@ -330,6 +330,7 @@
export default {
data() {
return {
+ kWhList: [],
title: '',
queryDay:'',
showTop: [0, 0, 0, 0, 0, 0, 0, 0],
@@ -502,7 +503,7 @@
uni.hideLoading()
this.kWhList = res.data.data;
for (var i = 0; i < this.kWhList.length; i++) {
- if(this.kWhList[i].id = this.FormData.meterId) {
+ if(this.kWhList[i].id == this.FormData.meterId) {
this.title = this.kWhList[i].name;
}