|
@@ -189,8 +189,6 @@ export default {
|
|
|
queryNums: {
|
|
|
start_time: Math.round((new Date().getTime()) / 1000 - (5 * 60)),
|
|
|
end_time: Math.round(new Date().getTime() / 1000),
|
|
|
- // start_time:0,
|
|
|
- // end_time:0,
|
|
|
pageSize: 10,
|
|
|
pageIndex: 1,
|
|
|
app_ids: 0
|
|
@@ -202,13 +200,25 @@ export default {
|
|
|
times: {
|
|
|
start_time: Math.round((new Date().getTime()) / 1000 - (1 * 60)),
|
|
|
end_time: Math.round(new Date().getTime() / 1000),
|
|
|
- // start_time:0,
|
|
|
- // end_time:0,
|
|
|
live: false
|
|
|
},
|
|
|
currentRoute: ''
|
|
|
}
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ '$store.state.time.globalTimes': {
|
|
|
+ handler(newValue, oldValue) {
|
|
|
+ if (newValue) {
|
|
|
+ this.queryNums.start_time = newValue.startTime
|
|
|
+ this.queryNums.end_time = newValue.endTime
|
|
|
+ this.times.start_time = newValue.startTime
|
|
|
+ this.times.end_time = newValue.endTime
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ deep: true
|
|
|
+ },
|
|
|
+ },
|
|
|
computed: {
|
|
|
...mapGetters([
|
|
|
'sidebar',
|
|
@@ -245,6 +255,8 @@ export default {
|
|
|
this.queryNums.start_time = start_time
|
|
|
this.queryNums.end_time = end_time
|
|
|
this.queryNums.app_ids = this.appItem.id
|
|
|
+ this.times.start_time = start_time
|
|
|
+ this.times.end_time = end_time
|
|
|
this.getList()
|
|
|
this.getEventNums()
|
|
|
}
|
|
@@ -320,6 +332,8 @@ export default {
|
|
|
this.getEventNums()
|
|
|
const start_time = this.times.start_time
|
|
|
const end_time = this.times.end_time
|
|
|
+ console.log('start_time---', start_time, end_time)
|
|
|
+
|
|
|
const obj = val
|
|
|
obj.live = this.times.live
|
|
|
obj.start_time = this.times.start_time
|