26 lines
700 B
JavaScript
26 lines
700 B
JavaScript
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); |