|
|
@@ -46,8 +46,22 @@ export default {
|
|
46
|
46
|
}),
|
|
47
|
47
|
async created() {
|
|
48
|
48
|
this.survey = await surveyFactory.createSurvey(allSteps['usa'])
|
|
|
49
|
+ this.configureAspectStep()
|
|
49
|
50
|
},
|
|
50
|
51
|
methods: {
|
|
|
52
|
+ configureAspectStep(){
|
|
|
53
|
+ // remove all steps regarding aspects
|
|
|
54
|
+ this.survey.steps = this.survey.steps.slice(0,this.survey.steps.length-6)
|
|
|
55
|
+ // insert single step to render Aspects component
|
|
|
56
|
+ this.survey.steps.push({
|
|
|
57
|
+ response_key_id:1,
|
|
|
58
|
+ response_key_category:"profile",
|
|
|
59
|
+ response_key_prompt:"aspects",
|
|
|
60
|
+ response_key_description:"",
|
|
|
61
|
+ responses:[],
|
|
|
62
|
+ component:"Aspects"
|
|
|
63
|
+ })
|
|
|
64
|
+ },
|
|
51
|
65
|
onSubmit() {
|
|
52
|
66
|
console.log(JSON.stringify(this.answered))
|
|
53
|
67
|
},
|