zhongzewei 7 лет назад
Родитель
Сommit
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) {
     getSelGljItems: function(stdGljLibId, callback) {
+        $.bootstrapLoading.start();
         let me = this;
         let me = this;
         $.ajax({
         $.ajax({
             type:"POST",
             type:"POST",
@@ -47,7 +48,7 @@ let gljSelOprObj = {
             data:{"repositoryId": stdGljLibId},
             data:{"repositoryId": stdGljLibId},
             dataType:"json",
             dataType:"json",
             cache:false,
             cache:false,
-            timeout:20000,
+            timeout:240000,
             success:function(result){
             success:function(result){
                 if(!result.error) {
                 if(!result.error) {
                     if(priceProperties && priceProperties.length > 0){
                     if(priceProperties && priceProperties.length > 0){
@@ -63,9 +64,11 @@ let gljSelOprObj = {
                         callback();
                         callback();
                     }
                     }
                 }
                 }
+                $.bootstrapLoading.end();
             },
             },
             error:function(err){
             error:function(err){
-                alert(err.responseJSON.error);
+                $.bootstrapLoading.end();
+                alert('获取人材机失败');
             }
             }
         });
         });
     },
     },