diff --git a/src/views/report/ingredientReport/day.vue b/src/views/report/ingredientReport/day.vue index 47473fe2..64d37df4 100644 --- a/src/views/report/ingredientReport/day.vue +++ b/src/views/report/ingredientReport/day.vue @@ -143,7 +143,7 @@ export default { valueFormat: "timestamp", rangeSeparator: '-', param: 'checkTime', - defaultSelect: Date.now() - 24 * 60 * 60 * 1000, + defaultSelect: Date.now(), width: 150 }, { @@ -170,7 +170,7 @@ export default { mounted() { // this.formConfig[1].defaultSelect[] this.listQuery.startTime = Date.now() - this.time = moment(new Date((Date.now())).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') + moment(new Date(Date.now())).format('YYYY-MM-DD HH:mm:ss') + this.time = moment(new Date((Date.now())).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') + moment(new Date(Date.now() + 24*60*60*1000).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') this.listQuery.endTime = Date.now() // this.formConfig[0].defaultSelect[0] = Date.now()-24*60*60-1000 this.getDataList() @@ -551,6 +551,10 @@ export default { };