搜索拓展

This commit is contained in:
LJH-rgsze
2026-01-04 16:53:38 +08:00
parent a2023a65c0
commit 9b6620dd4a
4 changed files with 32 additions and 1 deletions
+9 -1
View File
@@ -136,7 +136,15 @@ export default {
}
this.devices = this.originalDevices.filter(device => {
return this.searchRegex.test(device.agentName);
// 搜索智能体名称
if (this.searchRegex.test(device.agentName)) {
return true;
}
// 搜索关联设备的MAC地址
if (device.macAddresses && device.macAddresses.length > 0) {
return device.macAddresses.some(macAddress => this.searchRegex.test(macAddress));
}
return false;
});
},
// 搜索更新智能体列表