Index: ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js =================================================================== diff -u -r36648 -r36727 --- ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js (.../packingView.js) (revision 36648) +++ ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js (.../packingView.js) (revision 36727) @@ -341,9 +341,11 @@ count = 0 } if (pNode.childNodes && pNode.childNodes.length > 0) { - Ext4.each(pNode.childNodes, function (lastNode) { - lastNode.set('checked', checked) - }); + setTimeout(function() { + Ext4.each(pNode.childNodes, function (lastNode) { + lastNode.set('checked', checked) + }); + }, 1000); } }); if (count <= 1) { @@ -367,11 +369,13 @@ if (rootNode != null) { Ext4.each(rootNode.childNodes, function (pNode) { pNode.set('checked', checked); - if (pNode.childNodes && pNode.childNodes.length > 0) { - Ext4.each(pNode.childNodes, function (lastNode) { - lastNode.set('checked', checked); - }); - } + setTimeout(function() { + if (pNode.childNodes && pNode.childNodes.length > 0) { + Ext4.each(pNode.childNodes, function (lastNode) { + lastNode.set('checked', checked); + }); + } + }, 1000); }); } Ext4.getCmp('waitPackingTreeGrid').getView().refresh(); @@ -4269,7 +4273,7 @@ } function showPackingTousseBtnClick_mask() { - packingTousseBtnClick_mask = new Ext4.LoadMask({ msg: "正在装配,请稍候...", target: Ext4.getCmp('packingViewTab0') }); + packingTousseBtnClick_mask = new Ext4.LoadMask({ msg: "正在处理,请稍候...", target: Ext4.getCmp('packingViewTab0') }); packingTousseBtnClick_mask.show(); } function hidePackingTousseBtnClick_mask() { @@ -6503,46 +6507,6 @@ setGridColumnsWidth(root, waitPackingTreeGrid, 'waitPackingTreeGrid'); } }, - render: function () { - //滚动加载数据 - // $('#waitPackingTreeGrid-body .x4-tree-view').on('scroll', function (e) { - // if ((e.target.scrollTop + e.target.clientHeight >= e.target.scrollHeight)) { - // if (pageNow < waitPackingPageNumber) { - // waitPackColumnTreeGrid.getEl().mask("数据加载中..."); - // setTimeout(function () { - // pageNow++; - // Ext4.Ajax.request({ - // url: WWWROOT + '/disinfectSystem/packingAction!loadWaitPackingTaskJson.do', - // params: { - // taskGroup: taskGroup, - // sort: '[{ "property": "leaf", "direction": "ASC" }]', - // node: 'data', - // pageIndex: pageNow, - // pageSize: waitPackingPageSize - // }, - // success: function (response, options) { - // var result = Ext4.JSON.decode(response.responseText); - // var rootNode = waitPackingTaskStore.getRootNode(); - // if (result.length > 0) { - // for (var i = 0; i < result.length; i++) { - // var parentNode = addTaskNode(result[i]); - // if (result[i].children.length > 0) { - // for (var j = 0; j < result[i].children.length; j++) { - // var childNode = addTaskNode(result[i].children[j]); - // parentNode.appendChild(childNode); - // } - // } - // rootNode.appendChild(parentNode); - // } - // } - // waitPackColumnTreeGrid.getEl().unmask(); - // } - // }); - // }, 200); - // } - // } - // }) - }, checkchange: function (node, checked, eOpts) { if (!node.get('leaf')) { Ext4.each(node.childNodes, function (pNode) {