- Ext.Ajax.request({
- url : "./rehearsal/queryTableData.action",
- params : {
- search_place : rehearsal_place,
- search_time : dt
- .format('Y-m-d'),
- search_valuation : null,
- search_subject : search_subject
- },
- waitMsg : '正在提交数据',
- waitTitle : '提示',
- method : "POST",
- success : function(response) {
- var respText = Ext.util.JSON
- .decode(response.responseText);
- if (respText.success) {
- szcdc_rehearsal_one_grid
- .getStore()
- .loadData(respText.mes);
- }
- },
- failure : function(response) {
- Ext.Msg.alert('提示',
- "操作失败:输入非法字符!!!");
- }
- });
- }
- search_form.submit({
- url : "./rehearsal/queryTableData.action",
- baseParams : {
- search_place : rehearsal_place,
- search_time : search_time,
- search_valuation : search_valuation,
- search_subject : search_subject
- },
- waitMsg : '正在提交数据',
- waitTitle : '提示',
- method : "POST",
- success : function(form, action) {
- // 得到数据
- var result = Ext.util.JSON
- .decode(action.response.responseText);// 就可以取出来。如果是数组,那么很简单
- // 把数据放到结果里面
- szcdc_rehearsal_one_grid.getStore()
- .loadData(result);
- },
- failure : function(form, action) {
- Ext.Msg.alert('提示', "操作失败:输入非法字符!!!");
- }
- });