|
|
@@ -1480,6 +1480,8 @@ let repositoryGljObj = {
|
|
|
}
|
|
|
if (updateArr.length > 0 || addArr.length > 0) {
|
|
|
me.mixUpdateRequest(updateArr, addArr, []);
|
|
|
+ } else {
|
|
|
+ $.bootstrapLoading.end();
|
|
|
}
|
|
|
if(updateBasePrcArr.length > 0 && me.rationLibs.length > 0){
|
|
|
me.updateRationBasePrcRq(updateBasePrcArr);
|
|
|
@@ -1488,7 +1490,9 @@ let repositoryGljObj = {
|
|
|
updateRationBasePrcRq: function (basePrcArr, workBook, callback) {
|
|
|
let me = this;
|
|
|
me.prevent = true;
|
|
|
- $.bootstrapLoading.start();
|
|
|
+ if (!$.bootstrapLoading.isLoading()) {
|
|
|
+ $.bootstrapLoading.start();
|
|
|
+ }
|
|
|
$.ajax({
|
|
|
type: 'post',
|
|
|
url: 'api/updateRationBasePrc',
|
|
|
@@ -1508,7 +1512,9 @@ let repositoryGljObj = {
|
|
|
if(callback){
|
|
|
callback();
|
|
|
}
|
|
|
- $.bootstrapLoading.end();
|
|
|
+ if ($.bootstrapLoading.isLoading()) {
|
|
|
+ $.bootstrapLoading.end();
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
},
|