irc_web/.svn/pristine/00/0077d06a3c49dfe717196d04af0...

22 lines
657 B
Plaintext

<template>
<QuestionsPreview v-if="trialCriterionId" :criterion-id="trialCriterionId" :is-system-criterion="isSystemCriterion" :form-type="1" style="padding:10px;" />
</template>
<script>
import QuestionsPreview from './components/QuestionsPreview'
export default {
name: 'CriterionQuestions',
components: { QuestionsPreview },
data() {
return {
trialCriterionId: '',
isSystemCriterion: ''
}
},
mounted() {
console.log(this.$route.query)
this.trialCriterionId = this.$route.query.TrialReadingCriterionId
this.isSystemCriterion = this.$route.query.isSystemCriterion === 'true'
}
}
</script>