Browse Source

Merge branch 'otherWrit220308' into test

1178232204@qq.com 3 years ago
parent
commit
5cdb8cd56e
2 changed files with 12 additions and 4 deletions
  1. 11 3
      src/js/index.js
  2. 1 1
      src/js/modal.js

+ 11 - 3
src/js/index.js

@@ -106,12 +106,17 @@ $(function () {
   if (isPlacefile == 0) {
     $(this).find('.qiehuan i').html('切换病案质控')
     $('.subtitle').html('AI运行质控平台')
-    getAuditNumber()
+    if(onAppeal>0){
+      getAuditNumber()
+    }
+    
     getMenu()
   } else if (isPlacefile == 1) {
     $(this).find('.qiehuan i').html('切换运行质控')
     $('.subtitle').html('AI病案质控平台')
-    getAuditNumber()
+    if(onAppeal>0){
+      getAuditNumber()
+    }
     getMenu()
   }
   $(".header .title .qiehuan").click(function () {
@@ -126,7 +131,9 @@ $(function () {
       setCookie("isPlacefile", 1)
     }
     $('#contentIframe').attr('src', $('#contentIframe').attr('src'));
-    getAuditNumber()
+    if(onAppeal>0){
+      getAuditNumber()
+    }
     getMenu();
   })
   $(".header .title .qiehuan").mouseenter(function () {
@@ -340,6 +347,7 @@ function getAuditNumber() {
     analyzeType:isPlacefile
   }).then(res => {
     if (res.data.code == '0') {
+      $.alerModal({ "message": res.data.msg, type: "tip", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
       auditNumber = res.data.data > 99 ? '99+' : res.data.data
     } else {
       const token = localStorage.getItem('accessToken');

+ 1 - 1
src/js/modal.js

@@ -109,7 +109,7 @@ const jQuery = require('jquery');
         }
         if (ops.type == 'tip') {
             setTimeout(function () {
-                box.remove();
+                $(".divModal").remove();
             }, ops.time);
         }
         if (ops.callback && typeof ops.callback === 'function') {