麻烦帮看下: 在正式环境下安装了GoogleChrome Frame 的IE8上运行,通过弹出窗口选择条件后,根据选择的条件执行SQL SERVER存储过程(数据量较大,时间较长,大约3分钟)。在windowDialog的onRecevied事件中接收弹出窗口参数,并执行存储过程,在onRecevied中增加了PopOver组件,存在问题如下: A、不设置setTimeout时,不显示PopOver; B、设置setTimeout200后,能够显示,但是执行到sendBizRequest 时,过渡动画效果静止不动,浏览器会处于假死状态,直到请求处理完毕。 代码: Model.prototype.selectzjhReceived = function(event) { // 接收弹出窗口数据 var gcbh = event.data.row['GCBH'].value.latestValue; var zjh = event.data.row['ZJDH'].value.latestValue; var sl = event.data.row['SL'].value.latestValue;
this.comp("treeData").setFilter("filter", "GCBH = '" + gcbh + "'"); this.comp("treeData").refreshData();
var self = this; this.comp('popOver').show(); var count = this.comp("treeData").getCount(); if (count <= 0) { // 参数 var param = new biz.Request.ActionParam(); param.setString('strZjh', zjh); param.setString('strGcbh', gcbh); param.setFloat('fltXqsl', sl);
// 发送请求 // setTimeout(function() { biz.Request.sendBizRequest({ context : self.getContext(), contentType : biz.Request.JSON_TYPE, dataType : biz.Request.JSON_TYPE, parameters : param, action : 'loadProTreeAction', callback : function(data) { self.comp("treeData").setFilter("filter", "GCBH = '" + gcbh + "'"); self.comp("treeData").refreshData(); self.comp('popOver').hide(); } }); // }, 500); } else { this.comp('popOver').hide(); } };
|