|
@@ -675,8 +675,8 @@ $(document).ready(() => {
|
|
|
search(keyword) {
|
|
|
this.searchResult = [];
|
|
|
for (const node of this.tree.nodes) {
|
|
|
- const code = node.code || '', name = node.name || '';
|
|
|
- if (code.indexOf(keyword) >= 0 || name.indexOf(keyword) >= 0) this.searchResult.push(node);
|
|
|
+ const code = node.code || '', name = node.name || '', b_code = node.b_code || '';
|
|
|
+ if (code.indexOf(keyword) >= 0 || b_code.indexOf(keyword) >= 0 || name.indexOf(keyword) >= 0) this.searchResult.push(node);
|
|
|
}
|
|
|
$('#rela-bw-search-result').html(`结果:${this.searchResult.length}`);
|
|
|
this.locate = 0;
|