diff --git a/src/components/shared/select/SelectInstitution.vue b/src/components/shared/select/SelectInstitution.vue index bf5877c0..4b4ea912 100644 --- a/src/components/shared/select/SelectInstitution.vue +++ b/src/components/shared/select/SelectInstitution.vue @@ -43,6 +43,7 @@ const { getOptions, setFirstValue, getSelectedOption, filter } = const ret = await getList({ query: query === '' ? undefined : query, ...props.params, + activeOnly: true, }); if (ret) return ret.result; }, diff --git a/src/stores/institution/index.ts b/src/stores/institution/index.ts index fedb8328..5c52bfed 100644 --- a/src/stores/institution/index.ts +++ b/src/stores/institution/index.ts @@ -31,6 +31,7 @@ export const useInstitution = defineStore('institution-store', () => { payload?: { group?: string[] }; startDate?: string; endDate?: string; + activeOnly?: boolean; }) { const { payload, ...params } = opts || {};