Browse Source

各科室缺陷

luolei 4 years ago
parent
commit
e364a3ea26
3 changed files with 6 additions and 3 deletions
  1. 1 1
      src/html/index.html
  2. 1 1
      src/js/console.js
  3. 4 1
      src/js/index.js

+ 1 - 1
src/html/index.html

@@ -17,7 +17,7 @@
     {{/if}}
         <ul>
             {{each subMenuList}}
-                {{if isPlacefile!=1&&code!='YH-ZKK-BASYHGLZB_XQ'&&code!='YH-ZKK-GKSQXZB_XQ'&&code!='YH-ZKK-CYRSTJ'&&code!='YH-ZKK-ZKHCTJ'}}
+                {{if isPlacefile!=1&&code!='YH-ZKK-BASYHGLZB_XQ'&&code!='YH-ZKK-CYRSTJ'&&code!='YH-ZKK-ZKHCTJ'}}
                     <li class="page" code="${code}">${name}</li>
                 {{else}}
                     {{if isPlacefile==1&&code!='YH-ZKK-RYRSTJ'}}

+ 1 - 1
src/js/console.js

@@ -911,7 +911,7 @@ function lineChartSpecial(dataX,dataY,dom){
             $(".binganshouye").css("display","none")
         }
     }
-    console.log(999,dataX,dataY,dom)
+    // console.log(999,dataX,dataY,dom)
 
     var myCharts = echarts.init(document.getElementById(dom));
     $(window).resize(function(){

+ 4 - 1
src/js/index.js

@@ -9,7 +9,6 @@ let userInfo={};
 let isPlacefile = getCookie('isPlacefile')||1
 
 $(function(){
-  getMenu();
   getOwnDept();
   setInterval(() => {
       getTimeDetail()
@@ -36,9 +35,11 @@ $(function(){
   if(isPlacefile==0){
     $(this).find('i').html('切换病案质控')
     $('.subtitle').html('AI运行质控平台')
+    getMenu()
   }else if(isPlacefile==1){
     $(this).find('i').html('切换运行质控')
     $('.subtitle').html('AI病案质控平台')
+    getMenu()
   }
   $(".header .title .qiehuan").click(function(){
     getMenu();
@@ -181,6 +182,8 @@ function getOwnDept(){
   // }
 }
 function getMenu(){
+  // console.log(api.getMenu)
+  isPlacefile = getCookie('isPlacefile')||1
   post(api.getMenu).then(function(res){
     if(res.data.code==='0'){
       const data = res.data.data;