소스 검색

保存出现提示框

songxy 8 달 전
부모
커밋
4e620a04a0
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      zjugis-business/src/main/resources/templates/FlowContractInvoice/js/apply.js

+ 3 - 1
zjugis-business/src/main/resources/templates/FlowContractInvoice/js/apply.js

@@ -579,6 +579,7 @@
                         relationList.push(z.ui.form.childStringify(mealName));
                     }
                 }
+                z.ui.loading(true, true, 0, "保存中...");
                 z.ui.ajax({
                     url: z.ui.comm.getEntranceUrl("/contract-return-money"),
                     type: 'post',
@@ -595,6 +596,7 @@
                         'relationList': relationList
                     }),
                     success: function (res) {
+                        z.ui.loading(false);
                         if(res.code === 0){
                             if(!returnId){
                                 tr.find("[name='ContractReturnMoney["+i+"]$id']").val(res.data);
@@ -609,7 +611,7 @@
                         }
                     },
                     error: function () {
-
+                        z.ui.loading(false);
                     }
                 })
             } else if (html === '编辑') {