调整搜索实现-从前端过滤改为后端查询

This commit is contained in:
LJH-rgsze
2026-01-05 10:10:17 +08:00
parent 9c111b2d5e
commit e25ca3d1d3
8 changed files with 118 additions and 34 deletions
+20
View File
@@ -382,4 +382,24 @@ export default {
});
}).send();
},
// 搜索智能体
searchAgent(keyword, searchType, callback) {
RequestService.sendRequest()
.url(`${getServiceUrl()}/agent/search`)
.method('GET')
.data({
keyword: keyword,
searchType: searchType // searchType: 'name' 或 'mac'
})
.success((res) => {
RequestService.clearRequestTime();
callback(res);
})
.networkFail(() => {
RequestService.reAjaxFun(() => {
this.searchAgent(keyword, searchType, callback);
});
}).send();
},
}