feat: prepare data for self evaluation submit component
This commit is contained in:
parent
9a601e0169
commit
09b2586262
|
|
@ -11,6 +11,7 @@ import { useRouteQuery } from "@vueuse/router";
|
|||
import { computed, onUnmounted } from "vue";
|
||||
import { getPreviousRoute } from "@/router/history";
|
||||
import { getCompetenceNaviUrl } from "@/utils/utils";
|
||||
import SelfEvaluationSubmit from "@/pages/learningPath/selfEvaluationPage/SelfEvaluationSubmit.vue";
|
||||
|
||||
log.debug("LearningContent.vue setup");
|
||||
|
||||
|
|
@ -152,9 +153,11 @@ onUnmounted(() => {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
<span>Sali zeme, Abgooob</span>
|
||||
</div>
|
||||
<SelfEvaluationSubmit
|
||||
v-else
|
||||
:learning-unit="props.learningUnit"
|
||||
:criteria="questions"
|
||||
/>
|
||||
</LearningContentMultiLayout>
|
||||
</LearningContentContainer>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,25 @@
|
|||
<script setup lang="ts">
|
||||
import type { LearningUnit, LearningUnitPerformanceCriteria } from "@/types";
|
||||
|
||||
defineProps<{
|
||||
learningUnit: LearningUnit;
|
||||
criteria: LearningUnitPerformanceCriteria[];
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<code>ABGABE SCREEN</code>
|
||||
<code>LUID: {{ learningUnit.id }}</code>
|
||||
</div>
|
||||
<div v-for="(pc, index) in criteria" :key="pc.id">
|
||||
<code>
|
||||
{{ pc.title }} =>
|
||||
<b>{{ pc.completion_status }}</b>
|
||||
<br />
|
||||
<a :href="`${learningUnit.evaluate_url}?step=${index}`">[[EDIT]]</a>
|
||||
</code>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
Loading…
Reference in New Issue