Browse Source

判断条件有误

luolei 4 years ago
parent
commit
a4f3b45ba5
1 changed files with 1 additions and 8 deletions
  1. 1 8
      src/js/dept/uncorrectedCasesStatisticsDept.js

+ 1 - 8
src/js/dept/uncorrectedCasesStatisticsDept.js

@@ -55,7 +55,7 @@ $(function(){
     if(!statisticsType){
         setDatePicker($("#datepicker"),$("#datepicker2"),"default")
     }
-    if(deptId){
+    if(deptId&&from==2){
         $(".selectDept").html(deptId).attr({
             "data-id":deptId,
             "title":deptId
@@ -64,13 +64,6 @@ $(function(){
     }else{
         getDeptList(1)
     }
-    if(from != 2){
-        deptId=deptIdTemp = deptList[0]&&deptList[0].deptName
-        $(".selectDept").html(deptId).attr({
-            "data-id":deptId,
-            "title":deptId
-        }).append(`<img class="arrow" src=${iconDown} alt="下拉">`)
-    }
 })
 
 $(".abnormalClear").click(function(){