fix:电量报表查询条件改动

This commit is contained in:
shijing 2024-05-14 13:41:55 +08:00
parent 2f0401534d
commit 1667f02408
3 changed files with 5 additions and 11 deletions

View File

@ -247,10 +247,10 @@ export default {
var nowDate = new Date();
let year = nowDate.getFullYear();
let month = nowDate.getMonth() + 1;
month = month > 9 ? month : "0" + month;
that.search_date = year + "-" + month;
let month_s = month > 9 ? month : "0" + month;
that.year = year;
that.month = month;
that.search_date = year + "-" + month_s;
that.days = new Date(year, month, 0).getDate();
that.timeStamp = nowDate.getTime();
that.headerLength = that.days + 4;
@ -313,8 +313,6 @@ export default {
obj.type = "day";
obj.year = that.year;
obj.month = that.month;
obj.mpoint__material__code = "elec";
obj.mpoint__need_display = 1;
obj.mpoint = id;
obj.page = 0;
this.$API.enm.mpoint.stat.req(obj).then((res) => {

View File

@ -293,12 +293,12 @@ export default {
let month = nowDate.getMonth() + 1;
let day = nowDate.getDate();
that.timeStamp = nowDate.getTime();
month = month > 9 ? month : "0" + month;
day = day > 9 ? day : "0" + day;
let month_s = month > 9 ? month : "0" + month;
let day_s = day > 9 ? day : "0" + day;
that.day = day;
that.year = year;
that.month = month;
that.search_date = year + "-" + month + "-" + day;
that.search_date = year + "-" + month_s + "-" + day_s;
for (let i = 0; i < that.tableDatas.length; i++) {
for (let j = 0; j < 24; j++) {
let k = 3 + j;
@ -380,8 +380,6 @@ export default {
obj.year = that.year;
obj.month = that.month;
obj.day = that.day;
obj.mpoint__material__code = "elec";
obj.mpoint__need_display = 1;
obj.mpoint = id;
obj.page = 0;
this.$API.enm.mpoint.stat.req(obj).then((res) => {

View File

@ -298,8 +298,6 @@ export default {
let obj = {};
obj.type = "month";
obj.year = that.year;
obj.mpoint__material__code = "elec";
obj.mpoint__need_display = 1;
obj.mpoint = id;
obj.page = 0;
this.$API.enm.mpoint.stat.req(obj).then((res) => {