@eeplatform/nuxt-layer-common 1.7.5 → 1.7.7
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 +12 -0
- package/components/EnrollmentForm.vue +8 -1
- package/composables/useEnrollment.ts +13 -0
- package/package.json +1 -1
- package/types/user.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @eeplatform/nuxt-layer-common
|
|
2
2
|
|
|
3
|
+
## 1.7.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6df6d39: Add enrollment data generation request
|
|
8
|
+
|
|
9
|
+
## 1.7.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 0985570: Enrollment management - fix enrollment form special program selection
|
|
14
|
+
|
|
3
15
|
## 1.7.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -164,7 +164,10 @@
|
|
|
164
164
|
</v-row>
|
|
165
165
|
</v-col>
|
|
166
166
|
|
|
167
|
-
<v-col
|
|
167
|
+
<v-col
|
|
168
|
+
v-if="enrollment.specialProgram && selectedProgram.gwa"
|
|
169
|
+
cols="12"
|
|
170
|
+
>
|
|
168
171
|
<v-row no-gutters>
|
|
169
172
|
<v-col cols="12">
|
|
170
173
|
<v-row no-gutters>
|
|
@@ -1537,6 +1540,10 @@ watchEffect(() => {
|
|
|
1537
1540
|
});
|
|
1538
1541
|
|
|
1539
1542
|
const hasSpecialProgram = computed(() => {
|
|
1543
|
+
if (!programs.value.length) {
|
|
1544
|
+
return false;
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1540
1547
|
const juniorHigh = ["grade-7", "grade-8", "grade-9", "grade-10"];
|
|
1541
1548
|
|
|
1542
1549
|
const isJuniorHigh = juniorHigh.includes(enrollment.value.gradeLevel);
|
|
@@ -124,11 +124,24 @@ export default function useEnrollment() {
|
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
function generateEnrollmentData(value: {
|
|
128
|
+
gradeLevel: string;
|
|
129
|
+
specialProgram: string;
|
|
130
|
+
numberOfApplications: number;
|
|
131
|
+
schoolYear: string;
|
|
132
|
+
}) {
|
|
133
|
+
return $fetch("/api/basic-education/enrollments/generate", {
|
|
134
|
+
method: "POST",
|
|
135
|
+
body: value,
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
|
|
127
139
|
return {
|
|
128
140
|
enrollment,
|
|
129
141
|
add,
|
|
130
142
|
getAll,
|
|
131
143
|
updateStatusById,
|
|
132
144
|
updateStatusWithId,
|
|
145
|
+
generateEnrollmentData,
|
|
133
146
|
};
|
|
134
147
|
}
|
package/package.json
CHANGED