瀏覽代碼

错误提示

zhouna 3 年之前
父節點
當前提交
ab0bceaa0b
共有 2 個文件被更改,包括 12 次插入5 次删除
  1. 6 2
      src/js/appealUserPage.js
  2. 6 3
      src/js/qcScore.js

+ 6 - 2
src/js/appealUserPage.js

@@ -194,8 +194,12 @@ $(function () {
         global_flawDataPay = drgs;
         setBoxHeight();
         changePay()
-      }
-    });
+      }else{
+		$.alerModal({ "message": '接口出错', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
+	  }
+	}).catch(()=>{
+	  $.alerModal({ "message": '接口出错', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
+	});
   }
   function getRecordDetailUpdate() {
     post(api.getRecordDetail, { 'behospitalCode': global_id }).then(function (res) {

+ 6 - 3
src/js/qcScore.js

@@ -203,9 +203,12 @@ $(function () {
         global_flawDataPay = drgs;
         setBoxHeight();
         changePay()
-        
-      }
-    });
+      }else{
+		$.alerModal({ "message": '接口出错', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
+	  }
+    }).catch(()=>{
+	  $.alerModal({ "message": '接口出错', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
+	});
   }
   function getRecordDetailUpdate() {
     post(api.getRecordDetail, { 'behospitalCode': global_id }).then(function (res) {