zhouna 4 years ago
parent
commit
7151142f55
1 changed files with 7 additions and 2 deletions
  1. 7 2
      src/js/allotCheckTask.js

+ 7 - 2
src/js/allotCheckTask.js

@@ -424,7 +424,10 @@ function selectCheckerTb(){
         global_CheckerId=$(this).attr("code");
         global_CheckerName=$(this).attr("data-name");
         global_DeptMId=$(this).attr("data-dept");
-        global_activeTabCode=='0'&&getTabData(1)
+        if(global_activeTabCode=='0'){
+            global_DeptAllId="";
+            getTabData(1)
+        }
         $(".checkerRadio img").attr('src',iconUnRadio);
         $(this).find("img").attr('src',iconRadio);
     });
@@ -652,7 +655,9 @@ function bindDeptSelect(){
     $('.deptItem').on("mousedown",function(){
         const deptItemName = $(this).attr("data-name")
         global_DeptId = $(this).attr("data-id")
-        global_DeptAllId="";
+        if(global_activeTabCode=='0'){
+            global_DeptAllId="";
+        }
         global_DeptMId="";
         $('.selectDept i').text(deptItemName)
         $('.selectDept').attr('title',deptItemName)