1178232204@qq.com 2 年 前
コミット
178a54c5a0
2 ファイル変更11 行追加9 行削除
  1. 10 8
      src/js/index.js
  2. 1 1
      src/js/roleManager.js

+ 10 - 8
src/js/index.js

@@ -108,17 +108,17 @@ $(function () {
     $('.subtitle').html('AI运行质控平台')
     getMenu()
     getAuditNumber()
-    if(getCookie('checkAuth') == '5'){
+    if (getCookie('checkAuth') == '5') {
       getNewsCount()
     }
-    
-    
+
+
   } else if (isPlacefile == 1) {
     $(this).find('.qiehuan i').html('切换运行质控')
     $('.subtitle').html('AI病案质控平台')
     getMenu()
     getAuditNumber()
-    if(getCookie('checkAuth') == '5'){
+    if (getCookie('checkAuth') == '5') {
       getNewsCount()
     }
   }
@@ -136,10 +136,10 @@ $(function () {
     $('#contentIframe').attr('src', $('#contentIframe').attr('src'));
     getMenu();
     getAuditNumber()
-    if(getCookie('checkAuth') == '5'){
+    if (getCookie('checkAuth') == '5') {
       getNewsCount()
     }
-    
+
   })
   $(".header .title .qiehuan").mouseenter(function () {
     $(this).parent().find('img').attr('src', require('../images/qiehuan1.png'))
@@ -516,12 +516,14 @@ function getMenu() {
       setCookie("hospitalid", data.basHospitalInfoDTO.id)
       getAllCode(data.menuWrappers);
       for (let i = 0; i < data.menuWrappers.length; i++) {
-        if (isPlacefile === '0' && data.menuWrappers[i].code === 'YH-ZKHC') {
+        if (isPlacefile === '0' && (data.menuWrappers[i].code === 'YH-ZKHC' || data.menuWrappers[i].code === 'YH-XXTZ')) {
           $(".menuList .YH-ZKHC").hide()
           $(".menu-mini .YH-ZKHC").hide()
-
+          $(".menuList .YH-XXTZ").hide()
+          $(".menu-mini .YH-XXTZ").hide()
         }
       }
+
       if (newsNumber == 0) {
         $(".menu .page", parent.document).children('.redNews').hide()
       } else {

+ 1 - 1
src/js/roleManager.js

@@ -112,7 +112,7 @@ $(function(){
             let grandParentId = $(this).parents(".mainSys").attr("data-menuId")
             let grandIndex = $(this).parents(".mainSys").attr("data-index")
             let tmpSelectData = null,tmpSelectDataOr=[];
-            const parentIdArr = ['3','2','17','18','61','69','72','81','100'];
+            const parentIdArr = ['3','2','17','18','61','69','72','81','100','130','140'];
             if(parentIdArr.includes(grandParentId)){//循环
                 // console.log(curData[grandIndex])
                 let tmpData = curData[grandIndex];