feat: add activeOnly parameter to institution queries
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s
This commit is contained in:
parent
4040da58f9
commit
63036b03fd
2 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ export const useInstitution = defineStore('institution-store', () => {
|
|||
payload?: { group?: string[] };
|
||||
startDate?: string;
|
||||
endDate?: string;
|
||||
activeOnly?: boolean;
|
||||
}) {
|
||||
const { payload, ...params } = opts || {};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue