T139 Server returns history to client request
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
var historyJson = {};
|
||||
|
||||
function searchHistory(){
|
||||
var dateFrom = $('#historyFrom').val();
|
||||
var dateTo = $('#historyTo').val();
|
||||
var eventRequest = {
|
||||
clientUUID : json[jsonIndex].clientUUID,
|
||||
localDateTimeFrom : dateFrom,
|
||||
localDateTimeTo : dateTo,
|
||||
mockedResponseId : json[jsonIndex].mockedResponseId
|
||||
};
|
||||
$.ajax({
|
||||
url: host + '/api/event',
|
||||
type: 'POST',
|
||||
data: JSON.stringify(eventRequest, null, 2),
|
||||
contentType: "application/json"
|
||||
}).done(function(data){
|
||||
console.log(data);
|
||||
historyJson = data;
|
||||
});
|
||||
}
|
||||
|
||||
const startSearch = function(){
|
||||
searchHistory();
|
||||
}
|
||||
$('#btn-searchHistory').click(startSearch);
|
||||
Reference in New Issue
Block a user