mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-15 01:33:54 +00:00
refresh search result after removing a term
This commit is contained in:
parent
2c0408e893
commit
aa7485391b
@ -349,7 +349,7 @@ function removeFromActiveTerms() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
function searchLogs() {
|
function searchLogs() {
|
||||||
// addToActiveTerms();
|
addToActiveTerms();
|
||||||
currentSearchTerm.value = "";
|
currentSearchTerm.value = "";
|
||||||
let endpoint = "",
|
let endpoint = "",
|
||||||
instance = "";
|
instance = "";
|
||||||
@ -434,12 +434,38 @@ function removeExcludeContent(index: number) {
|
|||||||
excludingContentStr.value = "";
|
excludingContentStr.value = "";
|
||||||
}
|
}
|
||||||
function setSearchTerm(term: string) {
|
function setSearchTerm(term: string) {
|
||||||
if (!term) return;
|
// if (!term) return;
|
||||||
currentSearchTerm.value = term;
|
currentSearchTerm.value = term;
|
||||||
|
console.log(currentSearchTerm.value);
|
||||||
}
|
}
|
||||||
function cancelSearchTerm() {
|
function cancelSearchTerm() {
|
||||||
|
switch (currentSearchTerm.value) {
|
||||||
|
case "traceId":
|
||||||
|
traceId.value = "";
|
||||||
|
break;
|
||||||
|
case "tags":
|
||||||
|
tagsList.value = [];
|
||||||
|
tagsMap.value = [];
|
||||||
|
break;
|
||||||
|
case "keywords":
|
||||||
|
keywordsOfContent.value = [];
|
||||||
|
break;
|
||||||
|
case "exclude":
|
||||||
|
excludingKeywordsOfContent.value = [];
|
||||||
|
break;
|
||||||
|
case "instance":
|
||||||
|
state.instance.value = "0";
|
||||||
|
break;
|
||||||
|
case "endpoints":
|
||||||
|
state.endpoints.value = "0";
|
||||||
|
break;
|
||||||
|
case "service":
|
||||||
|
state.service.value = "";
|
||||||
|
break;
|
||||||
|
}
|
||||||
removeFromActiveTerms();
|
removeFromActiveTerms();
|
||||||
currentSearchTerm.value = "";
|
currentSearchTerm.value = "";
|
||||||
|
init()
|
||||||
}
|
}
|
||||||
watch(
|
watch(
|
||||||
() => selectorStore.currentService,
|
() => selectorStore.currentService,
|
||||||
|
Loading…
Reference in New Issue
Block a user