mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-19 21:37:36 +00:00
remove limit
This commit is contained in:
parent
cdf12af672
commit
a526a4bb28
@ -118,15 +118,13 @@ const dashboardStore = useDashboardStore();
|
|||||||
const chartLoading = ref<boolean>(false);
|
const chartLoading = ref<boolean>(false);
|
||||||
const endpoints = ref<Endpoint[]>([]);
|
const endpoints = ref<Endpoint[]>([]);
|
||||||
const pageSize = 15;
|
const pageSize = 15;
|
||||||
const total = 15;
|
|
||||||
const searchText = ref<string>("");
|
const searchText = ref<string>("");
|
||||||
|
|
||||||
queryEndpoints(total);
|
queryEndpoints();
|
||||||
|
|
||||||
async function queryEndpoints(limit?: number) {
|
async function queryEndpoints() {
|
||||||
chartLoading.value = true;
|
chartLoading.value = true;
|
||||||
const resp = await selectorStore.getEndpoints({
|
const resp = await selectorStore.getEndpoints({
|
||||||
limit,
|
|
||||||
keyword: searchText.value,
|
keyword: searchText.value,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -187,8 +185,7 @@ function changePage(pageIndex: number) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
async function searchList() {
|
async function searchList() {
|
||||||
const limit = searchText.value ? undefined : total;
|
await queryEndpoints();
|
||||||
await queryEndpoints(limit);
|
|
||||||
}
|
}
|
||||||
function getUnit(index: number) {
|
function getUnit(index: number) {
|
||||||
const u =
|
const u =
|
||||||
@ -211,7 +208,7 @@ watch(
|
|||||||
watch(
|
watch(
|
||||||
() => selectorStore.currentService,
|
() => selectorStore.currentService,
|
||||||
() => {
|
() => {
|
||||||
queryEndpoints(total);
|
queryEndpoints();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user