|
@@ -564,7 +564,7 @@ function rendeCheckerList(arr){
|
|
|
}
|
|
|
let str = `<li class="checkerItem ellipsis" data-id=" " data-name="全部">全部</li>`;
|
|
|
for(let i = 0; i < list.length; i++){
|
|
|
- str += `<li class="checkerItem ellipsis" data-id=${list[i]['doctorId']} data-name=${list[i].doctorName}> ${list[i].doctorName}</li>`
|
|
|
+ str += `<li class="checkerItem ellipsis" data-id=${list[i]['doctorId']} data-dept=${list[i]['deptId']} data-name=${list[i].doctorName}> ${list[i].doctorName}</li>`
|
|
|
}
|
|
|
$(".checkerList").html(str)
|
|
|
bindCheckerSelect()
|
|
@@ -610,9 +610,13 @@ function bindCheckerSelect(){
|
|
|
$('.selectChecker').attr('title',itemName)
|
|
|
$(".checkerList").css("display", "none")
|
|
|
global_DeptAllId="";
|
|
|
- global_DeptId=$(this).attr("data-dept");
|
|
|
+ if(!itemId.trim()){
|
|
|
+ renderCheckerTable();
|
|
|
+ return
|
|
|
+ }
|
|
|
+ const dept=$(this).attr("data-dept");
|
|
|
const totalArr = global_DeptId?global_DeptCheckers[global_DeptId]:global_Checkers[+global_activeTabCode+4];
|
|
|
- const arr = totalArr.find((it)=>itemId===it.doctorId);
|
|
|
+ const arr = totalArr.find((it)=>itemId===it.doctorId&&dept===it.deptId);
|
|
|
renderCheckerTable([arr]);
|
|
|
})
|
|
|
}
|