@eeplatform/nuxt-layer-common 1.7.13 → 1.7.15
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,
|
|
@@ -70,6 +70,12 @@
|
|
|
70
70
|
</template>
|
|
71
71
|
</v-list-group>
|
|
72
72
|
</template>
|
|
73
|
+
|
|
74
|
+
<slot v-if="noData" name="no-data">
|
|
75
|
+
<v-list-item>
|
|
76
|
+
<v-list-item-title>No data</v-list-item-title>
|
|
77
|
+
</v-list-item>
|
|
78
|
+
</slot>
|
|
73
79
|
</v-list>
|
|
74
80
|
</v-card>
|
|
75
81
|
</v-input>
|
|
@@ -90,4 +96,8 @@ const selectedActionCount = (resource: string) => {
|
|
|
90
96
|
return selected.value.filter((permission) => permission.startsWith(resource))
|
|
91
97
|
.length;
|
|
92
98
|
};
|
|
99
|
+
|
|
100
|
+
const noData = computed(() => {
|
|
101
|
+
return Object.keys(props.items).length === 0;
|
|
102
|
+
});
|
|
93
103
|
</script>
|
|
@@ -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
|
|
|
@@ -283,10 +283,10 @@ watchEffect(() => {
|
|
|
283
283
|
|
|
284
284
|
watchEffect(() => {
|
|
285
285
|
if (role.value) {
|
|
286
|
-
name.value = role.value.name;
|
|
286
|
+
name.value = role.value.name as any;
|
|
287
287
|
|
|
288
|
-
selectedPermissions.value = role.value.permissions;
|
|
289
|
-
originalPermissions.value = role.value.permissions;
|
|
288
|
+
selectedPermissions.value = role.value.permissions as any;
|
|
289
|
+
originalPermissions.value = role.value.permissions as any;
|
|
290
290
|
}
|
|
291
291
|
});
|
|
292
292
|
|
|
@@ -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
|
|