Forráskód Böngészése

Merge remote-tracking branch 'origin/master' into referMaster

zhouna 3 éve
szülő
commit
65de6f4aef
2 módosított fájl, 4 hozzáadás és 12 törlés
  1. 3 11
      src/js/index.js
  2. 1 1
      src/js/modal.js

+ 3 - 11
src/js/index.js

@@ -106,17 +106,12 @@ $(function () {
   if (isPlacefile == 0) {
     $(this).find('.qiehuan i').html('切换病案质控')
     $('.subtitle').html('AI运行质控平台')
-    if(onAppeal>0){
-      getAuditNumber()
-    }
-    
+    getAuditNumber()
     getMenu()
   } else if (isPlacefile == 1) {
     $(this).find('.qiehuan i').html('切换运行质控')
     $('.subtitle').html('AI病案质控平台')
-    if(onAppeal>0){
-      getAuditNumber()
-    }
+    getAuditNumber()
     getMenu()
   }
   $(".header .title .qiehuan").click(function () {
@@ -131,9 +126,7 @@ $(function () {
       setCookie("isPlacefile", 1)
     }
     $('#contentIframe').attr('src', $('#contentIframe').attr('src'));
-    if(onAppeal>0){
-      getAuditNumber()
-    }
+    getAuditNumber()
     getMenu();
   })
   $(".header .title .qiehuan").mouseenter(function () {
@@ -347,7 +340,6 @@ 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 () {
-                $(".divModal").remove();
+                box.remove();
             }, ops.time);
         }
         if (ops.callback && typeof ops.callback === 'function') {