add new fictures
This commit is contained in:
@@ -100,6 +100,15 @@ nav{
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
.datatable{
|
||||
background-color: whitesmoke;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@media print {
|
||||
|
||||
*{
|
||||
|
||||
35
static/js/allmatc.js
Normal file
35
static/js/allmatc.js
Normal file
@@ -0,0 +1,35 @@
|
||||
function getAllData(){
|
||||
$.ajax({
|
||||
|
||||
url: "/getall",
|
||||
type: "get",
|
||||
contentType: 'application/json',
|
||||
dataType: 'json',
|
||||
|
||||
success: function(response){
|
||||
console.log(response)
|
||||
let data = response;
|
||||
$('#datatable tbody').empty();
|
||||
$.each(response, function(index, item) {
|
||||
$('#datatable tbody').append(
|
||||
'<tr>' +
|
||||
'<td>' + item.invNumber + '</td>' +
|
||||
'<td>' + item.nazvanie + '</td>' +
|
||||
'<td>' + item.raspologenie + '</td>' +
|
||||
'<td>' + item.numberved + '</td>' +
|
||||
'<td>' + item.buhnumberpp + '</td>' +
|
||||
'<td>' + item.kolichestvo + '</td>' +
|
||||
'<td>' + item.balancenumber + '</td>' +
|
||||
'</tr>'
|
||||
);
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
getAllData()
|
||||
})
|
||||
Reference in New Issue
Block a user