GroupingRollCall fix mobile view proplem

This commit is contained in:
SamSys
2025-04-07 23:02:43 +03:30
parent 090a47fc70
commit 67b2d3ab55

View File

@@ -249,44 +249,43 @@ function loadEmployeeAjax(groupSettingId) {
}
htmlEmployee += `<div></div>
<div class="my-1 Rtable-row align-items-center position-relative itemResultEmployee" data-employee-id="${itemEmployee.employeeId}">
<div class="Rtable-cell width1 widthMobile1">
<div class="Rtable-cell--content">
<span class="d-flex justify-content-center row-index2">
${indexEmployee++}
</span>
</div>
</div>
<div class="Rtable-cell width2 widthMobile2">
<div class="Rtable-cell--heading d-none">نام پرسنل:</div>
<div class="Rtable-cell--content">
<div class="d-flex d-md-none">نام پرسنل:</div>
<div class="itemEmployeeName">${itemEmployee
.name} </div>
</div>
</div>
<div class="my-1 Rtable-row align-items-center position-relative itemResultEmployee" data-employee-id="${itemEmployee.employeeId}">
<div class="Rtable-cell width1 widthMobile1">
<div class="Rtable-cell--content">
<span class="d-flex justify-content-center row-index2">
${indexEmployee++}
</span>
</div>
</div>
<div class="Rtable-cell width2 widthMobile2">
<div class="Rtable-cell--heading d-none">نام پرسنل:</div>
<div class="Rtable-cell--content">
<div class="d-flex d-md-none">نام پرسنل:</div>
<div class="itemEmployeeName">${itemEmployee.name} </div>
</div>
</div>
<div class="Rtable-cell width3 widthMobile2">
<div class="Rtable-cell--heading d-none">نام پرسنل:</div>
<div class="Rtable-cell width3 widthMobile2 d-none d-md-block">
<div class="Rtable-cell--heading d-none">نوع ساعت کاری:</div>
<div class="Rtable-cell--content">
<div class="d-flex d-md-none">نام پرسنل:</div>
<div class="d-flex d-md-none">نوع ساعت کاری:</div>
<div class="text-center">`;
if (itemEmployee.workshopShiftStatus === 0) {
htmlEmployee += `منظم`;
} else if (itemEmployee.workshopShiftStatus === 1) {
htmlEmployee += `مختلط`;
} else {
htmlEmployee += `گردشی`;
}
htmlEmployee += `</div>
if (itemEmployee.workshopShiftStatus === 0) {
htmlEmployee += `منظم`;
} else if (itemEmployee.workshopShiftStatus === 1) {
htmlEmployee += `مختلط`;
} else {
htmlEmployee += `گردشی`;
}
htmlEmployee += `</div>
</div>
</div>
<div class="Rtable-cell width4 widthMobile2 text-center d-none d-md-block">
<div class="Rtable-cell--heading d-none">ساعت کاری:</div>
<div class="Rtable-cell--content d-flex text-center">
<div class="d-flex d-md-none mx-1">ساعت کاری: </div>
<div class="w-100">`;
<div class="Rtable-cell width4 widthMobile2 text-center d-none d-md-block">
<div class="Rtable-cell--heading d-none">ساعت کاری:</div>
<div class="Rtable-cell--content d-flex text-center">
<div class="d-flex d-md-none mx-1">ساعت کاری: </div>
<div class="w-100">`;
if (itemEmployee.workshopShiftStatus === 0) {
itemEmployee.rollCallWorkshopShifts.forEach(function (itemEmployeeShifts) {