zhouna 4 年之前
父节点
当前提交
915bdd4a3c
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/js/allotCheckTask.js

+ 3 - 3
src/js/allotCheckTask.js

@@ -497,7 +497,7 @@ function getCheckerList(){
 }
 
 //获取质控员任务列表
-function getTasksList(param={}){console.log(222,global_activeTabCode)
+function getTasksList(param={}){
     post(ywCheckApi.getTaskByUserId,{...param,jobType:global_activeTabCode,checkId:global_CheckerId,deptList:[global_DeptMId]}).then(res =>{
         if(res.data.code == '0'){
             const list = res.data.data||{};
@@ -651,12 +651,12 @@ function bindCheckerSelect(){
         $('.selectChecker').attr('title',itemName)
         $(".checkerList").css("display", "none")
         global_DeptAllId="";
+        const totalArr = global_DeptId?global_DeptCheckers[global_DeptId]:global_Checkers[+global_activeTabCode+4];
         if(!itemId.trim()){
-            renderCheckerTable();
+            renderCheckerTable(totalArr);
             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&&dept===it.deptId);
         renderCheckerTable([arr]);
     })