fix case history bug

This commit is contained in:
MahanCh
2025-04-09 19:08:10 +03:30
parent 811d8c023c
commit 3354e0343c
2 changed files with 23 additions and 3 deletions

View File

@@ -28,6 +28,14 @@
white-space: nowrap;
}
.positive-time {
color: #65a30d !important;
}
.negative-time {
color: #F20E0E !important;
}
.tooltipfull-container:hover .tooltipfull, a:hover .tooltipfull {
opacity: 1;
-webkit-transform: scale(1);

View File

@@ -837,7 +837,13 @@ function caseHistoryLoadAjax() {
</div>`;
html += `<div class="width3 d-block d-md-none" style="width:1% !important;border-right: 1px dashed #CACACA;padding: 0 20px 0 7px;">-</div>`;
html += `<div class="width3 d-block d-md-none" style="width:1% !important;border-right: 1px dashed #CACACA;padding: 0 20px 0 7px;white-space: nowrap;">`;
item.rollCallTimesList.forEach(function (itemTime) {
let { timeDiff, cssClass } = getTimeDiffData(itemTime.entryTimeDifferences);
html += ` <span class="${cssClass}">${timeDiff}</span>`;
});
html += `</div>`;
html += `<div class="width4 d-block d-md-none" style="width:18% !important">`;
if (item.rollCallTimesList.length > 0) {
@@ -871,7 +877,13 @@ function caseHistoryLoadAjax() {
}
html += `</div>`;
html += `<div class="width3 d-block d-md-none" style="width:1% !important;padding: 0 0 0 20px;">-</div>`;
html += `<div class="width3 d-block d-md-none" style="width:1% !important;padding: 0 0 0 20px;white-space: nowrap;">`;
item.rollCallTimesList.forEach(function (itemTime) {
let { timeDiff, cssClass } = getTimeDiffData(itemTime.exitTimeDifferences);
html += ` <span class="${cssClass}">${timeDiff}</span>`;
});
html += `</div>`;
html += `</div>`;
@@ -2031,7 +2043,7 @@ function getSearchParamsFromUrl() {
day: urlParams.get("day") || "",
startDate: urlParams.get("start-date") || "",
endDate: urlParams.get("end-date") || "",
employeeId: urlParams.get("employee") || "0"
employeeId: urlParams.get("employee-id") || "0"
};
}