소스 검색

定额库人材机timeout

zhongzewei 7 년 전
부모
커밋
7838325189
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      web/maintain/ration_repository/js/gljSelect.js

+ 5 - 2
web/maintain/ration_repository/js/gljSelect.js

@@ -40,6 +40,7 @@ let gljSelOprObj = {
         }
     },
     getSelGljItems: function(stdGljLibId, callback) {
+        $.bootstrapLoading.start();
         let me = this;
         $.ajax({
             type:"POST",
@@ -47,7 +48,7 @@ let gljSelOprObj = {
             data:{"repositoryId": stdGljLibId},
             dataType:"json",
             cache:false,
-            timeout:20000,
+            timeout:240000,
             success:function(result){
                 if(!result.error) {
                     if(priceProperties && priceProperties.length > 0){
@@ -63,9 +64,11 @@ let gljSelOprObj = {
                         callback();
                     }
                 }
+                $.bootstrapLoading.end();
             },
             error:function(err){
-                alert(err.responseJSON.error);
+                $.bootstrapLoading.end();
+                alert('获取人材机失败');
             }
         });
     },