@eeplatform/nuxt-layer-common 1.7.25 → 1.7.26
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 +10 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1450,6 +1450,10 @@ const prop = defineProps({
|
|
|
1450
1450
|
type: String,
|
|
1451
1451
|
default: "",
|
|
1452
1452
|
},
|
|
1453
|
+
schoolId: {
|
|
1454
|
+
type: String,
|
|
1455
|
+
default: "",
|
|
1456
|
+
},
|
|
1453
1457
|
});
|
|
1454
1458
|
|
|
1455
1459
|
import { VMaskInput } from "vuetify/labs/VMaskInput";
|
|
@@ -1463,7 +1467,7 @@ const { cookieConfig } = useRuntimeConfig().public;
|
|
|
1463
1467
|
|
|
1464
1468
|
if (prop.school) {
|
|
1465
1469
|
setTimeout(() => {
|
|
1466
|
-
enrollment.value.schoolId = prop.
|
|
1470
|
+
enrollment.value.schoolId = prop.schoolId ?? "school";
|
|
1467
1471
|
}, 1000);
|
|
1468
1472
|
}
|
|
1469
1473
|
|
|
@@ -1731,11 +1735,13 @@ const gradeLevelOffering = ref<Record<string, any>[]>([]);
|
|
|
1731
1735
|
|
|
1732
1736
|
const { getAll: getGradeLevels } = useGradeLevel();
|
|
1733
1737
|
|
|
1738
|
+
const theSchool = computed(() => prop.school || enrollment.value.school);
|
|
1739
|
+
|
|
1734
1740
|
const { data: getGradeLevelReq } = await useLazyAsyncData(
|
|
1735
|
-
"get-grade-level-offerings" +
|
|
1736
|
-
() => getGradeLevels({ school:
|
|
1741
|
+
"get-grade-level-offerings" + theSchool.value,
|
|
1742
|
+
() => getGradeLevels({ school: theSchool.value, limit: 100 }),
|
|
1737
1743
|
{
|
|
1738
|
-
watch: [
|
|
1744
|
+
watch: [theSchool],
|
|
1739
1745
|
}
|
|
1740
1746
|
);
|
|
1741
1747
|
|