mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-19 16:37:36 +00:00
query endpoints
This commit is contained in:
parent
d53fe5ed73
commit
45545815c2
@ -71,9 +71,9 @@ limitations under the License. -->
|
|||||||
:options="selectorStore.destPods"
|
:options="selectorStore.destPods"
|
||||||
size="small"
|
size="small"
|
||||||
placeholder="Select a data"
|
placeholder="Select a data"
|
||||||
@change="changePods"
|
@change="changeDestPods"
|
||||||
class="selectorPod"
|
class="selectorPod"
|
||||||
@query="searchPods"
|
@query="searchDestPods"
|
||||||
:isRemote="dashboardStore.entity === 'EndpointRelation'"
|
:isRemote="dashboardStore.entity === 'EndpointRelation'"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -325,6 +325,14 @@ function changePods(pod: any) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function changeDestPods(pod: any) {
|
||||||
|
if (pod[0]) {
|
||||||
|
selectorStore.setCurrentDestPod(pod[0]);
|
||||||
|
} else {
|
||||||
|
selectorStore.setCurrentDestPod(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function changeMode() {
|
function changeMode() {
|
||||||
if (dashboardStore.editMode) {
|
if (dashboardStore.editMode) {
|
||||||
ElMessage.warning(t("editWarning"));
|
ElMessage.warning(t("editWarning"));
|
||||||
@ -494,12 +502,18 @@ function getTools() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function searchPods(query: string) {
|
function searchPods(query: string) {
|
||||||
|
const param = {
|
||||||
|
keyword: query,
|
||||||
|
};
|
||||||
|
fetchPods(EntityType[2].value, selectorStore.currentService.id, false, param);
|
||||||
|
}
|
||||||
|
function searchDestPods(query: string) {
|
||||||
const param = {
|
const param = {
|
||||||
keyword: query,
|
keyword: query,
|
||||||
};
|
};
|
||||||
fetchPods(
|
fetchPods(
|
||||||
dashboardStore.entity,
|
EntityType[6].value,
|
||||||
selectorStore.currentService.id,
|
selectorStore.currentDestService.id,
|
||||||
false,
|
false,
|
||||||
param
|
param
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user