67,513
社区成员
发帖
与我相关
我的任务
分享
Ext.Ajax.request({
url: this.baseUrl + 'update',
method: 'POST',
params: vRecords[0].data,//{datas: vDatas},
timeout: 60,
async : false,
scope: this,
success: function(action,options) {
vLoadMask.hide(); //关闭遮罩窗口
alert("success");
var vResponse = Ext.util.JSON.decode(action.responseText);
alert(vResponse.data);
if (vResponse.success) {
this.store.commitChanges(); //还原数据修改提示
} else {
Ext.MessageBox.show({
title: '标题',
msg: vResponse.message,
buttons: Ext.MessageBox.OK,
icon: Ext.MessageBox.ERROR
});
}
},
failure: function(response) {
vLoadMask.hide(); //关闭遮罩窗口
Ext.MessageBox.show({
title: '直接错误',
msg: response.responseText,
buttons: Ext.MessageBox.OK,
icon: Ext.MessageBox.ERROR
});
}});
pw.write("{\"success\":true,\"data\":\"更新成功\"}");
response.setStatus(HttpServletResponse.SC_OK);
System.out.println("{\"success\":true,\"data\":\"更新成功\"}");
pw.flush();
pw.close();
return SUCCESS;