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('获取人材机失败');
             }
         });
     },