jqGrid使用高级搜索问题求教

godlovme godlovme 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我在用jqGrid做高级搜索时遇到了datepicker()方法的日期控件能够选择日期但是没有传到filters的data中去

colModel的配置
sb.append("{name:'samplingtime',index:'samplingtime',align:'center',frozen:true,searchoptions:{sopt:[\"eq\",\"ne\",\"lt\",\"le\",\"gt\",\"ge\"],dataInit:function(elem){$(elem).datepicker();}},searchrules:{date:true}}");

前端进行高级搜索时选择的时候时能够选择日期的,但是上产的filters中的data却没有数据。
_search true
filters {"groupOp":"AND","rules":[{"field":"samplingtime","op":"eq","data":""}]}

哪位大侠能帮我看看这到底是什么问题,
...全文

相关推荐

评论 4
收藏 已收藏
分享
返回顶部
godlovme
Web 开发 81,108 成员 341,721 内容