|
|
@ -28,12 +28,24 @@ function Dashboard(){
|
|
|
|
|
|
|
|
|
|
|
|
const apiString = '/Contact/LastAdd3/' + Session.get("idUser");
|
|
|
|
const apiString = '/Contact/LastAdd3/' + Session.get("idUser");
|
|
|
|
api.get(apiString).then((response) => {
|
|
|
|
api.get(apiString).then((response) => {
|
|
|
|
setInfoContactRecent(response.data);
|
|
|
|
const data = response.data;
|
|
|
|
|
|
|
|
if (data.length > 0){
|
|
|
|
|
|
|
|
setInfoContactRecent(response.data[0]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else{
|
|
|
|
|
|
|
|
setInfoContactRecent("");
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const apiStringKey = '/Sale/KeyNumber/' + Session.get("idUser") + "/" + month + "/" + year;
|
|
|
|
const apiStringKey = '/Sale/KeyNumber/' + Session.get("idUser") + "/" + month + "/" + year;
|
|
|
|
api.get(apiStringKey).then((response) => {
|
|
|
|
api.get(apiStringKey).then((response) => {
|
|
|
|
setDataKey(response.data[0]);
|
|
|
|
const data = response.data;
|
|
|
|
|
|
|
|
if (data.length > 0){
|
|
|
|
|
|
|
|
setDataKey(response.data[0]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else{
|
|
|
|
|
|
|
|
setDataKey("");
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const apiStringBestCustomer = '/Sale/BestCustomer/' + Session.get("idUser");
|
|
|
|
const apiStringBestCustomer = '/Sale/BestCustomer/' + Session.get("idUser");
|
|
|
|