62,041
社区成员
发帖
与我相关
我的任务
分享
if (rowIndex.cellIndex == 4) {
var record = e.raw;
var operator = record.IsState == 0 ? '下架' : '上架';
var winE = Ext.create('Ext.Window', {
title: '确定' + operator,
closable: true,
closeAction: 'hide',
animateTarget: this,
width: 250,
height: 40,
bodyStyle: 'padding:2px;',
items: [frameSX]
});
winE.show();
}
var frameSX = Ext.create('Ext.form.Panel', {
frame: true,
bodyStyle: 'padding:5px 5px 0',
width: 235,
height: 55,
buttons: [{
text: '确认',
handler: function () {
frameSX.getForm().submit({
url: 'StateEdit.aspx',
waitTitle: '提示',
method: 'POST',
waitMsg: '正在保存数据,请稍后...',
success: function (form, action) {
Ext.MessageBox.alert('系统提示', '提交成功,感谢您的参与!');
if (frameSX.getForm().isValid()) {
var loginResult = action.result.success;
if (loginResult == true) {
Ext.MessageBox.alert('系统提示', '提交成功,感谢您的参与!');
frameSX.form.reset();
frameSX.ownerCt.close();
window.location.reload();
}
if (loginResult == false) {
Ext.MessageBox.alert('系统提示', '纠错提交失败!');
}
}
},
failure: function (form, action) {
Ext.MessageBox.alert('提示', '系统出错');
frameSX.form.reset();
}
});
//post表单结束
}
}, {
text: '取消',
handler: function () {
frameSX.form.reset();
frameSX.ownerCt.close()
}
}]
});