Browse Source

错误停止加载

xiezhiming 9 months ago
parent
commit
5451e856aa
1 changed files with 4 additions and 9 deletions
  1. 4 9
      src/js/qcScore.js

+ 4 - 9
src/js/qcScore.js

@@ -1188,21 +1188,21 @@ $(function () {
       switch (global_activeTab) {
         case "病案首页":
           saveOrUpdate().then((res) => {
-
+            // 刷新页面
             getRecordDetailUpdate().then(res => {
               hideLoading()
               $.alerModal({ "message": "保存成功", type: "tip", time: '1000', win: true });
               isEditing[global_activeTab] = false
               $(this).text('编辑');
+            }).catch(err => {
+              hideLoading()
             })
-
           }).catch(err => {
             hideLoading()
             $.alerModal({ "message": err, type: "tip", time: '1000', win: 'default' });
           })
           break
         case "入院记录":
-
           admissionRecordUpdate().then(res => {
             hideLoading()
             $(this).text('编辑');
@@ -1211,22 +1211,17 @@ $(function () {
           break
         case "首次病程录":
           firstRecordUpdate().then(res => {
-
             getRecordDetailUpdate().then(res => {
               hideLoading()
               $.alerModal({ "message": "保存成功", type: "tip", time: '1000', win: true });
               isEditing[global_activeTab] = false
               $(this).text('编辑');
             }).catch(err => {
-
+              hideLoading()
             })
-
-
-
           }).catch(err => {
             hideLoading()
             $.alerModal({ "message": err, type: "tip", time: '1000', win: 'default' });
-
           })
           break
         default: