|
@@ -181,33 +181,37 @@ export default {
|
|
|
},
|
|
|
daterangeLeft() {
|
|
|
if (this.pickerVal2.length > 0) {
|
|
|
- let dateTime = new Date(this.pickerVal2[0]);
|
|
|
- let newData = this.formatter(
|
|
|
- new Date(dateTime.setDate(dateTime.getDate() - 1))
|
|
|
- );
|
|
|
- this.pickerVal2[0] =
|
|
|
- newData.slice(0, 4) +
|
|
|
- "." +
|
|
|
- newData.slice(4, 6) +
|
|
|
- "." +
|
|
|
- newData.slice(6, 8);
|
|
|
+ // let dateTime = new Date(this.pickerVal2[0]);
|
|
|
+ // let newData = this.formatter(
|
|
|
+ // new Date(dateTime.setDate(dateTime.getDate() - 1))
|
|
|
+ // );
|
|
|
+ this.pickerVal2[0] = this.pickerVal2[0] - 24 * 60 * 60 * 1000;
|
|
|
+ // this.pickerVal2[0] =
|
|
|
+ // newData.slice(0, 4) +
|
|
|
+ // "." +
|
|
|
+ // newData.slice(4, 6) +
|
|
|
+ // "." +
|
|
|
+ // newData.slice(6, 8);
|
|
|
this.pickerVal2 = [this.pickerVal2[0], this.pickerVal2[1]];
|
|
|
+ this.query(0);
|
|
|
}
|
|
|
},
|
|
|
daterangeRight() {
|
|
|
if (this.pickerVal2.length > 0) {
|
|
|
- let dateTime = new Date(this.pickerVal2[1]);
|
|
|
- let newData = this.formatter(
|
|
|
- new Date(dateTime.setDate(dateTime.getDate() + 1))
|
|
|
- );
|
|
|
- this.pickerVal2[1] =
|
|
|
- newData.slice(0, 4) +
|
|
|
- "." +
|
|
|
- newData.slice(4, 6) +
|
|
|
- "." +
|
|
|
- newData.slice(6, 8);
|
|
|
+ // let dateTime = new Date(this.pickerVal2[1]);
|
|
|
+ // let newData = this.formatter(
|
|
|
+ // new Date(dateTime.setDate(dateTime.getDate() + 1))
|
|
|
+ // );
|
|
|
+ // this.pickerVal2[1] =
|
|
|
+ // newData.slice(0, 4) +
|
|
|
+ // "." +
|
|
|
+ // newData.slice(4, 6) +
|
|
|
+ // "." +
|
|
|
+ // newData.slice(6, 8);
|
|
|
+ this.pickerVal2[1] = this.pickerVal2[1] + 24 * 60 * 60 * 1000;
|
|
|
}
|
|
|
this.pickerVal2 = [this.pickerVal2[0], this.pickerVal2[1]];
|
|
|
+ this.query(0);
|
|
|
}
|
|
|
}
|
|
|
};
|