feat: search institution
This commit is contained in:
parent
2a4da33770
commit
86a3247732
1 changed files with 8 additions and 0 deletions
|
|
@ -17,6 +17,8 @@ import FloatingActionButton from 'src/components/FloatingActionButton.vue';
|
|||
import CreateButton from 'src/components/AddButton.vue';
|
||||
import NoData from 'src/components/NoData.vue';
|
||||
import AgenciesDialog from './AgenciesDialog.vue';
|
||||
import { computed } from 'vue';
|
||||
import { watch } from 'vue';
|
||||
|
||||
const { t } = useI18n();
|
||||
const navigatorStore = useNavigator();
|
||||
|
|
@ -211,6 +213,7 @@ async function fetchData() {
|
|||
const ret = await institutionStore.getInstitutionList({
|
||||
page: page.value,
|
||||
pageSize: pageSize.value,
|
||||
query: pageState.inputSearch,
|
||||
});
|
||||
|
||||
if (ret) {
|
||||
|
|
@ -226,6 +229,11 @@ onMounted(async () => {
|
|||
|
||||
await fetchData();
|
||||
});
|
||||
|
||||
watch(
|
||||
() => pageState.inputSearch,
|
||||
() => fetchData(),
|
||||
);
|
||||
</script>
|
||||
<template>
|
||||
<FloatingActionButton
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue