zhouna 4 rokov pred
rodič
commit
c45c2eafd3

+ 4 - 0
src/css/allotCheckTask.less

@@ -69,6 +69,10 @@ h2{
     .operaItem{
         width: 50px;
         position: relative;
+        img{
+            width: 15px;
+            height: 15px;
+        }
     }
     .tabTitle   {
         background: #EFF0F9 !important;

+ 4 - 3
src/js/allotCheckTask.js

@@ -35,12 +35,13 @@ $(function() {
     const tabs = checkAuth.replace(/[^456]/g,'');
     if(tabs.length<2){
         //只有一个权限,隐藏tab切换
-        global_activeTabCode=tabs;
         $(".tabs").hide();
     }else{//隐藏没有权限的tab
-        const last = "456".replace(tabs);
-        $(".tabs [code="+(last-4)+"]").parent().hide();
+        const last = "456".replace(tabs,'');
+        $(".tabs [data-code="+(last-4)+"]").parent().hide();
     }
+    global_activeTabCode=tabs.substr(0,1)-4;
+    $(".tabs [data-code="+global_activeTabCode+"]").addClass("active");
     //初始化日期
     $.datepicker.regional['zh-CN'] = {
         clearText: '清除',

+ 1 - 1
src/js/creatCheckTask.js

@@ -29,7 +29,7 @@ $(function() {
         toast("没有质控核查权限!");
         return
     }
-    const tabs = checkAuth.replace(/[^456]/g,'');console.log('tabs',tabs)
+    const tabs = checkAuth.replace(/[^456]/g,'');
     if(tabs.length<2){
         //只有一个权限,隐藏tab切换
         $(".tabs").hide();