fix:单位产品电耗日期查询清空时错误改正

This commit is contained in:
shijing 2024-07-30 15:00:55 +08:00
parent 09991ac6c9
commit f40ef04e36
8 changed files with 100 additions and 91 deletions

View File

@ -388,6 +388,7 @@ export default {
},
dateChange(val) {
console.log(val);
if (val !== null) {
if (this.typeRadio == "day") {
let year = val.split("-")[0];
let month = val.split("-")[1];
@ -400,7 +401,7 @@ export default {
} else {
this.getMonthData(val);
}
this.searchDate;
}
},
getTableHourData() {
let that = this;

View File

@ -336,6 +336,7 @@ export default {
},
dateChange(val) {
console.log(val);
if (val !== null) {
if (this.typeRadio == "day") {
let year = val.split("-")[0];
let month = val.split("-")[1];
@ -348,7 +349,7 @@ export default {
} else {
this.getMonthData(val);
}
this.searchDate;
}
},
getTableHourData() {
let that = this;

View File

@ -503,6 +503,7 @@ export default {
},
dateChange(val) {
console.log(val);
if (val !== null) {
if (this.typeRadio == "day") {
let year = val.split("-")[0];
let month = val.split("-")[1];
@ -515,7 +516,7 @@ export default {
} else {
this.getMonthData(val);
}
this.searchDate;
}
},
getTableHourData() {
let that = this;

View File

@ -340,6 +340,7 @@ export default {
},
dateChange(val) {
console.log(val);
if (val !== null) {
if (this.typeRadio == "day") {
let year = val.split("-")[0];
let month = val.split("-")[1];
@ -352,7 +353,7 @@ export default {
} else {
this.getMonthData(val);
}
this.searchDate;
}
},
getTableHourData() {
let that = this;

View File

@ -460,6 +460,7 @@ export default {
},
dateChange(val) {
console.log(val);
if (val !== null) {
if (this.typeRadio == "day") {
let year = val.split("-")[0];
let month = val.split("-")[1];
@ -472,7 +473,7 @@ export default {
} else {
this.getMonthData(val);
}
this.searchDate;
}
},
getTableHourData() {
let that = this;

View File

@ -437,6 +437,7 @@ export default {
},
dateChange(val) {
console.log(val);
if (val !== null) {
if (this.typeRadio == "day") {
let year = val.split("-")[0];
let month = val.split("-")[1];
@ -449,7 +450,7 @@ export default {
} else {
this.getMonthData(val);
}
this.searchDate;
}
},
getTableHourData() {
let that = this;

View File

@ -331,6 +331,7 @@ export default {
},
dateChange(val) {
console.log(val);
if (val !== null) {
if (this.typeRadio == "day") {
let year = val.split("-")[0];
let month = val.split("-")[1];
@ -343,6 +344,7 @@ export default {
} else {
this.getMonthData(val);
}
}
},
getTableHourData() {
let that = this;

View File

@ -322,6 +322,7 @@ export default {
},
dateChange(val) {
console.log(val);
if (val !== null) {
if (this.typeRadio == "month") {
let year = val.split("-")[0];
let month = val.split("-")[1];
@ -330,7 +331,7 @@ export default {
} else {
this.getMonthData(val);
}
this.searchDate;
}
},
getTableHourData() {
let that = this;