只需要在  table.render 中添加 where 就可以将条件添加进去,如下图所示
 

  table.render({
    elem: '#test'
    ,url:'{:url('recyclejsondata')}'
    ,where:{id:'recycle'}
    //,type: "post"
    ,toolbar: '#toolbarDemo'
    ,title: '回收站数据表'
    ,cols: [[
      {type: 'checkbox', fixed: 'left'}
      ,{field:'id', title:'ID', width:80, fixed: 'left', unresize: true, sort: true}
      ,{field:'title', title:'标题', width:120, edit: 'text'}
      ,{fixed: 'right', title:'操作', toolbar: '#barDemo', width:150}
    ]]
    ,page: true
  });

 

最后修改于 2020-05-11 13:16:36
如果觉得我的文章对你有用,请随意赞赏
扫一扫支付
上一篇