@eeplatform/nuxt-layer-common 1.7.0 → 1.7.1
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 +6 -0
- package/components/EnrollmentForm.vue +14 -16
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<v-row no-gutters>
|
|
3
|
-
<v-col cols="12" class="mb-4">
|
|
3
|
+
<v-col v-if="prop.selfService" cols="12" class="mb-4">
|
|
4
4
|
<v-row>
|
|
5
5
|
<v-col cols="3" class="pb-0">
|
|
6
6
|
<v-row no-gutters>
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
</v-row>
|
|
54
54
|
</v-col>
|
|
55
55
|
|
|
56
|
-
<v-col cols="12" class="mb-4">
|
|
56
|
+
<v-col v-if="prop.selfService" cols="12" class="mb-4">
|
|
57
57
|
<v-row>
|
|
58
58
|
<v-col cols="6" class="pb-0">
|
|
59
59
|
<v-row no-gutters>
|
|
@@ -1282,6 +1282,10 @@ const prop = defineProps({
|
|
|
1282
1282
|
type: Boolean,
|
|
1283
1283
|
default: false,
|
|
1284
1284
|
},
|
|
1285
|
+
school: {
|
|
1286
|
+
type: String,
|
|
1287
|
+
default: "",
|
|
1288
|
+
},
|
|
1285
1289
|
});
|
|
1286
1290
|
|
|
1287
1291
|
import { VMaskInput } from "vuetify/labs/VMaskInput";
|
|
@@ -1293,6 +1297,10 @@ const enrollment = defineModel<TTLearner>({
|
|
|
1293
1297
|
|
|
1294
1298
|
const { cookieConfig } = useRuntimeConfig().public;
|
|
1295
1299
|
|
|
1300
|
+
if (prop.school) {
|
|
1301
|
+
enrollment.value.school = prop.school ?? "school";
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1296
1304
|
enrollment.value.createdBy = useCookie("user", cookieConfig).value ?? "";
|
|
1297
1305
|
|
|
1298
1306
|
const { getAll: getAllPSGC } = usePSGC();
|
|
@@ -1480,20 +1488,10 @@ const gradeLevelOffering = ref<Record<string, any>[]>([]);
|
|
|
1480
1488
|
|
|
1481
1489
|
const { getAll: getGradeLevels } = useGradeLevel();
|
|
1482
1490
|
|
|
1483
|
-
const { data: getGradeLevelReq
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
getGradeLevels({
|
|
1488
|
-
limit: 100,
|
|
1489
|
-
status: "active",
|
|
1490
|
-
school: enrollment.value.school,
|
|
1491
|
-
}),
|
|
1492
|
-
{
|
|
1493
|
-
watch: [() => enrollment.value.school],
|
|
1494
|
-
immediate: false,
|
|
1495
|
-
}
|
|
1496
|
-
);
|
|
1491
|
+
const { data: getGradeLevelReq } = await useLazyAsyncData(
|
|
1492
|
+
"get-grade-level-offerings" + enrollment.value.school,
|
|
1493
|
+
() => getGradeLevels({ school: enrollment.value.school, limit: 100 })
|
|
1494
|
+
);
|
|
1497
1495
|
|
|
1498
1496
|
watchEffect(() => {
|
|
1499
1497
|
if (getGradeLevelReq.value && getGradeLevelReq.value.items) {
|