Make charts responsive to params.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-01-10 14:04:37 -07:00
parent 8cc2ceecc6
commit e3bf6f03d7
14 changed files with 429 additions and 46 deletions

View File

@@ -36,6 +36,28 @@ html {
overflow-x:auto;
}
@media print {
.vehicleDetailTabContainer {
background-color: #fff;
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
margin: 0;
font-size: 14px;
line-height: 18px;
color: #000 !important;
overflow: visible;
}
td {
color: #000 !important;
}
th {
color: #000 !important;
}
}
.chartContainer{
height:30vh;
overflow:auto;
@@ -57,6 +79,10 @@ html {
}
}
.reportsCheckBoxContainer {
padding: 0.375rem 2.25rem 0.375rem 0.75rem;
}
.bell-shake {
animation: bellshake .5s;
backface-visibility: hidden;
@@ -99,4 +125,5 @@ html {
100% {
transform: rotate(0);
}
}
}

View File

@@ -22,7 +22,7 @@ $(document).ready(function () {
getVehicleTaxRecords(vehicleId);
break;
case "report-tab":
getVehicleReport();
getVehicleReport(vehicleId);
break;
case "reminder-tab":
getVehicleReminders(vehicleId);
@@ -115,8 +115,8 @@ function getVehicleReminders(vehicleId) {
}
});
}
function getVehicleReport() {
$.get(`/Vehicle/GetReportPartialView`, function (data) {
function getVehicleReport(vehicleId) {
$.get(`/Vehicle/GetReportPartialView?vehicleId=${vehicleId}`, function (data) {
if (data) {
$("#report-tab-pane").html(data);
}