@eeplatform/nuxt-layer-common 1.4.7 → 1.4.9
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
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @eeplatform/nuxt-layer-common
|
|
2
2
|
|
|
3
|
+
## 1.4.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 26680ae: Add createdBy filter to enrollment getAll()
|
|
8
|
+
|
|
9
|
+
## 1.4.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 272d6fd: Set createdBy value in EnrollmentForm.vue
|
|
14
|
+
|
|
3
15
|
## 1.4.7
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1290,6 +1290,10 @@ const enrollment = defineModel<TTLearner>({
|
|
|
1290
1290
|
default: () => useEnrollment().enrollment,
|
|
1291
1291
|
});
|
|
1292
1292
|
|
|
1293
|
+
const { cookieConfig } = useRuntimeConfig().public;
|
|
1294
|
+
|
|
1295
|
+
enrollment.value.createdBy = useCookie("user", cookieConfig).value ?? "";
|
|
1296
|
+
|
|
1293
1297
|
const { getAll: getAllPSGC } = usePSGC();
|
|
1294
1298
|
|
|
1295
1299
|
const region = ref("");
|
|
@@ -95,9 +95,10 @@ export default function useEnrollment() {
|
|
|
95
95
|
page = 1,
|
|
96
96
|
limit = 10,
|
|
97
97
|
search = "",
|
|
98
|
+
createdBy = "",
|
|
98
99
|
} = {}) {
|
|
99
100
|
return $fetch<Record<string, any>>("/api/basic-education/enrollments", {
|
|
100
|
-
query: {
|
|
101
|
+
query: { status, page, limit, search, createdBy, school },
|
|
101
102
|
});
|
|
102
103
|
}
|
|
103
104
|
|