@eeplatform/nuxt-layer-common 1.7.14 → 1.7.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1500,7 +1500,7 @@ const programs = ref<Array<Record<string, any>>>([]);
|
|
|
1500
1500
|
const enrollmentSchool = computed(() => enrollment.value.school);
|
|
1501
1501
|
|
|
1502
1502
|
const { data: getPrograms } = await useLazyAsyncData(
|
|
1503
|
-
`get-programs-as-options-enrollment-form`,
|
|
1503
|
+
`get-programs-as-options-enrollment-form-${enrollment.value.school}`,
|
|
1504
1504
|
() =>
|
|
1505
1505
|
getAll({
|
|
1506
1506
|
limit: 20,
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
density="comfortable"
|
|
22
22
|
hide-details
|
|
23
23
|
rounded="xl"
|
|
24
|
+
@keydown.enter="setSearchValue()"
|
|
24
25
|
/>
|
|
25
26
|
</v-col>
|
|
26
27
|
</v-row>
|
|
@@ -239,12 +240,9 @@ const _search = ref("");
|
|
|
239
240
|
|
|
240
241
|
const search = defineModel("search", { type: String });
|
|
241
242
|
|
|
242
|
-
|
|
243
|
-
_search
|
|
244
|
-
|
|
245
|
-
search.value = value;
|
|
246
|
-
}, 1000)
|
|
247
|
-
);
|
|
243
|
+
function setSearchValue() {
|
|
244
|
+
search.value = _search.value;
|
|
245
|
+
}
|
|
248
246
|
|
|
249
247
|
const { redirect, drawer } = useLocal();
|
|
250
248
|
|
|
@@ -15,9 +15,9 @@ export default function useGradeLevel() {
|
|
|
15
15
|
status = "active",
|
|
16
16
|
school = "",
|
|
17
17
|
} = {}) {
|
|
18
|
-
return $fetch<Record<string, any>>(`/api/${resource}`, {
|
|
18
|
+
return $fetch<Record<string, any>>(`/api/${resource}/school/${school}`, {
|
|
19
19
|
method: "GET",
|
|
20
|
-
query: { page, limit, search, status
|
|
20
|
+
query: { page, limit, search, status },
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -23,10 +23,11 @@ export function useProgram() {
|
|
|
23
23
|
limit = 10,
|
|
24
24
|
status = "active",
|
|
25
25
|
school = "",
|
|
26
|
+
gradeLevel = "",
|
|
26
27
|
} = {}) {
|
|
27
28
|
return $fetch<Record<string, any>>(`/api/${resource}`, {
|
|
28
29
|
method: "GET",
|
|
29
|
-
query: { page, limit, search, status, school },
|
|
30
|
+
query: { page, limit, search, status, school, gradeLevel },
|
|
30
31
|
});
|
|
31
32
|
}
|
|
32
33
|
|