EasyUI 每次请求后台返回数据都缓存在页面的datagrid上面

Lbb0729 2019-07-25 01:47:23
如题,下面是请求的函数,通过按下回车调用该函数,
现在要求是:每次输入数据按下回车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'
});
}
...全文
47 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

87,910

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧