|
@@ -3376,7 +3376,18 @@ $(document).ready(function() {
|
|
|
this.searchCur = 0;
|
|
|
if (keyword) {
|
|
|
for (const [i, d] of this.exprSheet.zh_tree.nodes.entries()) {
|
|
|
- if (d.code.indexOf(keyword) >= 0 || d.name.indexOf(keyword) >= 0) this.searchResult.push(d);
|
|
|
+ if (d.code && d.code.indexOf(keyword)) {
|
|
|
+ this.searchResult.push(d);
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ if (d.b_code && d.b_code.indexOf(keyword) >= 0) {
|
|
|
+ this.searchResult.push(d);
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ if (d.name && d.name.indexOf(keyword) >= 0) {
|
|
|
+ this.searchResult.push(d);
|
|
|
+ continue;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
$('#expr_search_count').html(`结果:${this.searchResult.length}`);
|