加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Ext.Ajax.request的waitMsg

发布时间:2020-12-15 22:09:04 所属栏目:百科 来源:网络整理
导读:var nwin = new Ext.Window({ title: '编辑',modal : true,closeAction : 'close',buttonAlign : 'center',width : 400,height : 300,layout : 'fit',items: assignmentZDGrid,buttons: [{text: '确定',handler: function(){ var myMask = new Ext.LoadMask(
var nwin = new Ext.Window({
            title: '编辑',modal : true,closeAction : 'close',buttonAlign : 'center',width : 400,height : 300,layout : 'fit',items: assignmentZDGrid,buttons: [{text: '确定',handler: function(){
                var myMask = new Ext.LoadMask(Ext.getBody(),{
                        msg: '正在保存,请稍后!',removeMask: true //完成后移除
                    });
                myMask.show();
                var ids="";
                var codes="";
                for(var i=0;i <assignmentZDGrid.getStore().getCount();i++)
                {    var id=assignmentZDGrid.getStore().getAt(i).get("type")+":"+assignmentZDGrid.getStore().getAt(i).get("id");
                    ids+=id+",";
                    var code=assignmentZDGrid.getStore().getAt(i).get("codeid");
                    codes+=code+",";
                } 
                Ext.Ajax.request({
                    url : './flow/saveProcessorsForCurrent.html',method : 'POST',params : {ids : ids,codes : codes},success : function(response,options) {
                        var responseArray = Ext.util.JSON.decode(response.responseText);
                            myMask.hide();
                            formView.grid.getStore().load();
                            Ext.Msg.alert('消息',responseArray.msg);
                            nwin.close();
                    }
                });                       

            }},{text: '取消',handler :function(){nwin.close();}}]
    });

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读