|
|
@ -131,12 +131,16 @@ export default { |
|
|
|
}, |
|
|
|
handleSearch(data) { |
|
|
|
if (data.type == 'range'){ |
|
|
|
data.timestamp = data.timeRange[0] + " 00:00:01"; |
|
|
|
data.timestamp = data.timeRange[0] + " 00:00:00"; |
|
|
|
data.endTime = data.timeRange[1] + " 23:59:59"; |
|
|
|
} else { |
|
|
|
data.timestamp = data.startTime + " 00:00:01"; |
|
|
|
} |
|
|
|
this.searchData = { ...data }; |
|
|
|
// this.searchData = { ...data }; |
|
|
|
this.searchData.type = data.type |
|
|
|
this.searchData.timestamp = data.timestamp |
|
|
|
this.searchData.startTime = data.startTime |
|
|
|
this.searchData.endTime = data.endTime |
|
|
|
this.initData(); |
|
|
|
}, |
|
|
|
indexMethod(index) { |
|
|
|