EasyUI 每次请求后台返回数据都缓存在页面的datagrid上面
如题,下面是请求的函数,通过按下回车调用该函数,
现在要求是:每次输入数据按下回车grid里面展示请求的数据,但是不能刷新grid要保留下来在前台显示。
function getSplicingDate(goSelecct) {
var inv=$("#inv").val();
dataGrid = $('#dataGrid').datagrid({
url: '',
fit: true,
// method:'get',
striped: true,
rownumbers: true,
idFeild: 'inv',
queryParams: {'inv':inv},
pagination: true,
singleSelect: true,
sortOrder: 'ASC',
pageSize: 10,
pageList: [10, 20, 50, 100, 200, 300],
columns:
[[
{ field:'ck',checkbox:true },
{
field: 'inv',
title: '物料INV',
width: 100,
sortable: true
},
{
field: 'qtyOnhand',
title: '数量',
width: 100,
sortable: true
},
{
field: 'controlStateName',
title: '状态',
width: 100,
sortable: true
},
{
field: 'materialNumber',
title: '物料编号',
width: 100,
sortable: true
},
{
field: 'materialName',
title: '物料名称',
width: 100,
sortable: true
},
{
field: 'vender',
title: '供应商代码',
width: 100,
sortable: true
},
{
field: 'wmsStock',
title: 'WMS批次号',
width: 100,
sortable: true
}
]],
toolbar: '#toolbar'
});
}