|
|
@@ -42,21 +42,21 @@ export default {
|
|
|
this.timeRange = ''
|
|
|
if (i == 1) {
|
|
|
this.queryInfo.begin = parseInt((Date.now() - 24 * 3600000) / 1000)
|
|
|
- this.queryInfo.end = parseInt(Date.now() / 1000)
|
|
|
+ this.queryInfo.end = parseInt((Date.now() + 24 * 3600000) / 1000)
|
|
|
} else if (i == 2) {
|
|
|
this.queryInfo.begin = parseInt((Date.now() - 24 * 3600000 * 30) / 1000)
|
|
|
- this.queryInfo.end = parseInt(Date.now() / 1000)
|
|
|
+ this.queryInfo.end = parseInt((Date.now() + 24 * 3600000) / 1000)
|
|
|
} else if (i == 3) {
|
|
|
this.queryInfo.begin = parseInt(
|
|
|
(Date.now() - 24 * 3600000 * 30 * 6) / 1000
|
|
|
)
|
|
|
- this.queryInfo.end = parseInt(Date.now() / 1000)
|
|
|
+ this.queryInfo.end = parseInt((Date.now() + 24 * 3600000) / 1000)
|
|
|
} else if (i == 4) {
|
|
|
this.queryInfo.begin = parseInt(
|
|
|
(Date.now() - 24 * 3600000 * 30 * 12) / 1000
|
|
|
)
|
|
|
- this.queryInfo.end = parseInt(Date.now() / 1000)
|
|
|
- }
|
|
|
+ this.queryInfo.end = parseInt((Date.now() + 24 * 3600000) / 1000)
|
|
|
+ }
|
|
|
this.$emit('dateChange',this.queryInfo)
|
|
|
},
|
|
|
DateChange() {
|
|
|
@@ -66,12 +66,12 @@ export default {
|
|
|
new Date(this.timeRange[0]).getTime() / 1000
|
|
|
)
|
|
|
this.queryInfo.end = parseInt(
|
|
|
- new Date(this.timeRange[1]).getTime() / 1000
|
|
|
+ parseInt(new Date(this.timeRange[1]).getTime()+ 24 * 3600000) / 1000
|
|
|
)
|
|
|
} else {
|
|
|
this.btnSelected = 2
|
|
|
this.queryInfo.begin = parseInt((Date.now() - 24 * 3600000 * 30) / 1000)
|
|
|
- this.queryInfo.end = parseInt(Date.now() / 1000)
|
|
|
+ this.queryInfo.end = parseInt((Date.now() + 24 * 3600000) / 1000)
|
|
|
}
|
|
|
this.$emit('dateChange',this.queryInfo)
|
|
|
}
|