zhouna 4 years ago
parent
commit
ab5a18448f
2 changed files with 5 additions and 5 deletions
  1. 1 0
      src/css/allotCheckTask.less
  2. 4 5
      src/js/allotCheckTask.js

+ 1 - 0
src/css/allotCheckTask.less

@@ -450,6 +450,7 @@ border-right: 6px solid #4D4D4D;
 
 
 .tabBox {
 .tabBox {
     .tabs{
     .tabs{
+      display: none;
         padding: 22px 0 4px  20px;
         padding: 22px 0 4px  20px;
         border-bottom: 10px #EFF1F6 solid;
         border-bottom: 10px #EFF1F6 solid;
     }
     }

+ 4 - 5
src/js/allotCheckTask.js

@@ -41,13 +41,12 @@ $(function() {
     }*/
     }*/
     const tabs = (checkAuth||'').replace(/[^456]/g,'');
     const tabs = (checkAuth||'').replace(/[^456]/g,'');
     if(tabs.length===0){
     if(tabs.length===0){
-        $(".tabs").hide();
+        //$(".tabs").hide();
         toast("没有质控核查权限!");
         toast("没有质控核查权限!");
         return;
         return;
-    }else if(tabs.length<2){
-        //只有一个权限,隐藏tab切换
-        $(".tabs").hide();
-    }else{//隐藏没有权限的tab
+    }else if(tabs.length>1){
+        //多于一个权限,显示tab切换
+        $(".tabs").show();
         const last = "456".replace(tabs,'');
         const last = "456".replace(tabs,'');
         $(".tabs [data-code="+(last-4)+"]").parent().hide();
         $(".tabs [data-code="+(last-4)+"]").parent().hide();
     }
     }