weixin_36882430 2017-02-09 05:41 采纳率: 37%
浏览 1218
已采纳

ext 弹窗提交之后 不论成功还是失败都刷新本页面

// 创建或更改审核不通过信息
ast.feiliao91.admin.certification.certificationFailLog = function() {
var form = new ast.feiliao91.admin.certification.UpdateInfoForm({});
var win = new Ext.Window({
id : "certificationfaillog",
title : "请选择审核不通过原因",
width : 557,
resizable:false,
height : 144,
modal:true,
items : [ form ]
});
win.show();
}

ast.feiliao91.admin.certification.UpdateInfoForm = Ext
.extend(
Ext.form.FormPanel,
{
targetGrid : null,
constructor : function(config) {
config = config || {};
Ext.apply(this, config);
var form = this;
var c = {
defaults : {
labelSeparator : " ",
},
items : [ {
layout : "form",
items : [
{
xtype : "radio",
name : "failResonSearch",
inputValue : "1",
boxLabel : "您上传的证件图片不清晰,请重新上传清晰的图片"
},
{
xtype : "radio",
name : "failResonSearch",
inputValue : "2",
boxLabel : "您上传的证件信息不齐全,请按样图标准上传图片"
},
{
xtype : "radio",
name : "failResonSearch",
inputValue : "3",
boxLabel : "您上传的证件图片不完整,请重新上传,请耐心等待图片加载完整后再提交"
} ]
} ],
buttonAlign : "right",
buttons : [ {
text : "保存",
handler : function(btn) {
if (form.getForm().isValid()) {
form
.getForm()
.submit(
{
url : Context.ROOT
+ Context.PATH
+ "/admin/certification/certificationFailLog.htm?companyId="+id,
method : "post",
type : "json",
success : function() {
Ext.MessageBox.show({

title : Context.MSG_TITLE,
msg : "信息已审核",
buttons : Ext.MessageBox.OK,
icon : Ext.MessageBox.INFO
});
win.hide();
},
failure : function() {
Ext.MessageBox.show({
title : Context.MSG_TITLE,
msg : "发生错误,信息未审核",
buttons : Ext.MessageBox.OK,
icon : Ext.MessageBox.ERROR
});
}
});
} else {
Ext.MessageBox.show({
title : Context.MSG_TITLE,
msg : "验证未通过",
buttons : Ext.MessageBox.OK,
icon : Ext.MessageBox.ERROR
});
}
}
} ]
}
ast.feiliao91.admin.certification.UpdateInfoForm.superclass.constructor
.call(this, c);
}
})

  • 写回答

1条回答 默认 最新

  • weixin_36882430 2017-02-10 09:03
    关注

    已经解决:
    Ext.getCmp("certificationfaillog").close();
    grid.getStore().reload();

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘