|
@@ -22,7 +22,13 @@ let global_activeTabCode = '1'; //激活的tab code
|
|
|
let isPlacefile = getCookie('isPlacefile')||1
|
|
|
|
|
|
$(function() {
|
|
|
- const tabs = getCookie('checkAuth').replace(/[^456]/g,'');
|
|
|
+ const checkAuth = getCookie('checkAuth');
|
|
|
+ if(!checkAuth){
|
|
|
+ $(".tabs").hide();
|
|
|
+ toast("没有质控核查权限!");
|
|
|
+ return
|
|
|
+ }
|
|
|
+ const tabs = checkAuth.replace(/[^456]/g,'');
|
|
|
if(tabs.length<2){
|
|
|
//只有一个权限,隐藏tab切换
|
|
|
global_activeTabCode=tabs;
|