Commit 8b9e3acf by 宋祥

1.数值比较错误问题

parent bf5f384b
...@@ -54,9 +54,9 @@ $(function () { ...@@ -54,9 +54,9 @@ $(function () {
var deviceType = options.model['deviceType']; var deviceType = options.model['deviceType'];
if(deviceType) { if(deviceType) {
// 返回我们过滤后的数据集 // 返回我们过滤后的数据集
return _.filter(deviceCodeBox, function (item) { return _.filter(deviceCodeBox, function (item) {
return item["param1Field"]==deviceType && item["param3Field"] == "true"; return item["param1Field"] == deviceType && item["param3Field"] === "1";
}) })
} }
return deviceCodeBox; return deviceCodeBox;
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment