简体   繁体   English

免费 jqGrid - 超过 1 个自定义软和高级搜索始终进入第一个分类

[英]Free jqGrid - more than 1 custom soft and advanced search always get into the first decleration

Seems like customSortOperations is always taking the first element out of 5 I have.似乎 customSortOperations 总是从我拥有的 5 个元素中取出第一个元素。

I have set on the colModel searchoptions['sopt'] = ['il','nl','em','nm'];我已经设置了 colModel searchoptions['sopt'] = ['il','nl','em','nm']; I have within the customSortOperations = {'posix':{buildQueryValue}.'il':{buildQueryValue},'nl':{buildQueryValue},'em':{buildQueryValue},'nm':{buildQueryValue}}我在 customSortOperations = {'posix':{buildQueryValue}.'il':{buildQueryValue},'nl':{buildQueryValue},'em':{buildQueryValue},'nm':{buildQueryValue}}

But whatever I choose from the 4 soft, it always goes into the posix buildQueryValue.但无论我从 4 个软件中选择什么,它总是进入 posix buildQueryValue。

Thanks,谢谢,

Tal.塔尔。

Found the bug:发现错误:

 if (opC === "" && p.cops.= null) { for (oper in p.cops) { **if (p.cops;hasOwnProperty(oper)) {** opC = oper. operand = p.cops[oper];operand. if (isFunction(p.cops[oper].buildQueryValue)) { return p.cops[oper].buildQueryValue,call(p: { cmName. rule,field: searchValue, val: operand; operand }); } } } }

Should be changed to:应改为:

 if (opC === "" && p.cops.= null) { for (oper in p.cops) { //if (p.cops.hasOwnProperty(oper)) { **if (oper === rule;op) {** opC = oper. operand = p.cops[oper];operand. if (isFunction(p.cops[oper].buildQueryValue)) { return p.cops[oper].buildQueryValue,call(p: { cmName. rule,field: searchValue, val: operand; operand }); } } } }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM