Преглед изворни кода

造价书各库拉取loading

zhongzewei пре 7 година
родитељ
комит
bfee00001f

+ 4 - 0
web/building_saas/main/js/views/std_billsGuidance_lib.js

@@ -469,6 +469,7 @@ const billsGuidance = (function () {
     //@param {Number}libID @return {void}
     //@param {Number}libID @return {void}
     function libInitSel(libID){
     function libInitSel(libID){
         //获取清单
         //获取清单
+        $.bootstrapLoading.start();
         CommonAjax.post('/billsGuidance/api/getLibWithBills', {libID: libID}, function(rstData){
         CommonAjax.post('/billsGuidance/api/getLibWithBills', {libID: libID}, function(rstData){
             //获取清单库中的工作内容和项目特征
             //获取清单库中的工作内容和项目特征
             initJobAndCharacter(rstData.guidanceLib.billsLibId);
             initJobAndCharacter(rstData.guidanceLib.billsLibId);
@@ -480,6 +481,9 @@ const billsGuidance = (function () {
             setTagForHint(bills.tree.items);
             setTagForHint(bills.tree.items);
             //默认初始节点
             //默认初始节点
             billsInitSel(0);
             billsInitSel(0);
+            $.bootstrapLoading.end();
+        }, function () {
+            $.bootstrapLoading.end();
         });
         });
     }
     }
     //初始化清单指引库
     //初始化清单指引库

+ 3 - 1
web/building_saas/main/js/views/std_bills_lib.js

@@ -200,7 +200,7 @@ var billsLibObj = {
                 showBillsRemark(node);
                 showBillsRemark(node);
             }
             }
         };
         };
-
+        $.bootstrapLoading.start();
         CommonAjax.post('/stdBillsEditor/getJobContent', {userId: userID, billsLibId: stdBillsLibID}, function (datas) {
         CommonAjax.post('/stdBillsEditor/getJobContent', {userId: userID, billsLibId: stdBillsLibID}, function (datas) {
             stdBillsJobData = datas;
             stdBillsJobData = datas;
         }, function () {
         }, function () {
@@ -253,8 +253,10 @@ var billsLibObj = {
                     args.sheet.repaint();
                     args.sheet.repaint();
                 }
                 }
             });
             });
+            $.bootstrapLoading.end();
         }, function () {
         }, function () {
             that.stdBillsSpread.unbind(GC.Spread.Sheets.Events.CellDoubleClick);
             that.stdBillsSpread.unbind(GC.Spread.Sheets.Events.CellDoubleClick);
+            $.bootstrapLoading.end();
         });
         });
 
 
         $('#stdBillsSearch>span>button').click(function () {
         $('#stdBillsSearch>span>button').click(function () {

+ 3 - 0
web/building_saas/main/js/views/std_ration_lib.js

@@ -53,6 +53,7 @@ var rationLibObj = {
         }
         }
     },
     },
     loadStdRation: function (rationLibID) {
     loadStdRation: function (rationLibID) {
+        $.bootstrapLoading.start();
         var that = this;
         var that = this;
         var showRationChapterTree = function (datas) {
         var showRationChapterTree = function (datas) {
             var rationChapterTree = idTree.createNew({id: 'ID', pid: 'ParentID', nid: 'NextSiblingID', rootId: -1, autoUpdate: false});
             var rationChapterTree = idTree.createNew({id: 'ID', pid: 'ParentID', nid: 'NextSiblingID', rootId: -1, autoUpdate: false});
@@ -86,8 +87,10 @@ var rationLibObj = {
 
 
         CommonAjax.post('/complementaryRation/api/getRationTree', {userId: userID, rationRepId: rationLibID}, function (datas) {
         CommonAjax.post('/complementaryRation/api/getRationTree', {userId: userID, rationRepId: rationLibID}, function (datas) {
             showRationChapterTree(datas);
             showRationChapterTree(datas);
+            $.bootstrapLoading.end();
         }, function () {
         }, function () {
             showRationChapterTree([]);
             showRationChapterTree([]);
+            $.bootstrapLoading.end();
         });
         });
     },
     },
     //双击隐藏显示
     //双击隐藏显示