|
@@ -226,10 +226,36 @@ export default defineComponent({
|
|
|
resizeSwipeItemHeight()
|
|
|
}}
|
|
|
>
|
|
|
- {state.questionList.map(
|
|
|
- (item: any, index: number) =>
|
|
|
- item.questionTypeCode === QuestionType.CHECKBOX && (
|
|
|
- <SwipeItem>
|
|
|
+ {state.questionList.map((item: any, index: number) => (
|
|
|
+ // item.questionTypeCode === QuestionType.CHECKBOX && (
|
|
|
+ // <SwipeItem>
|
|
|
+ // <ChoiceQuestion
|
|
|
+ // v-model:value={item.userAnswer}
|
|
|
+ // index={index + 1}
|
|
|
+ // data={item}
|
|
|
+ // readOnly
|
|
|
+ // type="checkbox"
|
|
|
+ // showRate={item.showRate}
|
|
|
+ // showAnalysis={item.showAnalysis}
|
|
|
+ // analysis={item.analysis}
|
|
|
+ // />
|
|
|
+ // </SwipeItem>
|
|
|
+ // )
|
|
|
+ <SwipeItem>
|
|
|
+ <div class="swipe-item-question">
|
|
|
+ {item.questionTypeCode === QuestionType.RADIO && (
|
|
|
+ <ChoiceQuestion
|
|
|
+ v-model:value={item.userAnswer}
|
|
|
+ index={index + 1}
|
|
|
+ data={item}
|
|
|
+ readOnly
|
|
|
+ type="radio"
|
|
|
+ showRate={item.showRate}
|
|
|
+ showAnalysis={item.showAnalysis}
|
|
|
+ analysis={item.analysis}
|
|
|
+ />
|
|
|
+ )}
|
|
|
+ {item.questionTypeCode === QuestionType.CHECKBOX && (
|
|
|
<ChoiceQuestion
|
|
|
v-model:value={item.userAnswer}
|
|
|
index={index + 1}
|
|
@@ -240,71 +266,44 @@ export default defineComponent({
|
|
|
showAnalysis={item.showAnalysis}
|
|
|
analysis={item.analysis}
|
|
|
/>
|
|
|
- </SwipeItem>
|
|
|
- )
|
|
|
- // <SwipeItem>
|
|
|
- // <div class="swipe-item-question">
|
|
|
- // {item.questionTypeCode === QuestionType.RADIO && (
|
|
|
- // <ChoiceQuestion
|
|
|
- // v-model:value={item.userAnswer}
|
|
|
- // index={index + 1}
|
|
|
- // data={item}
|
|
|
- // readOnly
|
|
|
- // type="radio"
|
|
|
- // showRate={item.showRate}
|
|
|
- // showAnalysis={item.showAnalysis}
|
|
|
- // analysis={item.analysis}
|
|
|
- // />
|
|
|
- // )}
|
|
|
- // {item.questionTypeCode === QuestionType.CHECKBOX && (
|
|
|
- // <ChoiceQuestion
|
|
|
- // v-model:value={item.userAnswer}
|
|
|
- // index={index + 1}
|
|
|
- // data={item}
|
|
|
- // readOnly
|
|
|
- // type="checkbox"
|
|
|
- // showRate={item.showRate}
|
|
|
- // showAnalysis={item.showAnalysis}
|
|
|
- // analysis={item.analysis}
|
|
|
- // />
|
|
|
- // )}
|
|
|
- // {item.questionTypeCode === QuestionType.SORT && (
|
|
|
- // <DragQuestion
|
|
|
- // readOnly
|
|
|
- // v-model:value={item.userAnswer}
|
|
|
- // data={item}
|
|
|
- // index={index + 1}
|
|
|
- // showRate={item.showRate}
|
|
|
- // showAnalysis={item.showAnalysis}
|
|
|
- // analysis={item.analysis}
|
|
|
- // />
|
|
|
- // )}
|
|
|
- // {item.questionTypeCode === QuestionType.LINK && (
|
|
|
- // <KeepLookQuestion
|
|
|
- // readOnly
|
|
|
- // v-model:value={item.userAnswer}
|
|
|
- // data={item}
|
|
|
- // index={index + 1}
|
|
|
- // showRate={item.showRate}
|
|
|
- // showAnalysis={item.showAnalysis}
|
|
|
- // analysis={item.analysis}
|
|
|
- // />
|
|
|
- // )}
|
|
|
- // {item.questionTypeCode === QuestionType.PLAY && (
|
|
|
- // <PlayQuestion
|
|
|
- // readOnly
|
|
|
- // v-model:value={item.userAnswer}
|
|
|
- // data={item}
|
|
|
- // index={index + 1}
|
|
|
- // unitId={state.id as any}
|
|
|
- // showRate={item.showRate}
|
|
|
- // showAnalysis={item.showAnalysis}
|
|
|
- // analysis={item.analysis}
|
|
|
- // />
|
|
|
- // )}
|
|
|
- // </div>
|
|
|
- // </SwipeItem>
|
|
|
- )}
|
|
|
+ )}
|
|
|
+ {item.questionTypeCode === QuestionType.SORT && (
|
|
|
+ <DragQuestion
|
|
|
+ readOnly
|
|
|
+ v-model:value={item.userAnswer}
|
|
|
+ data={item}
|
|
|
+ index={index + 1}
|
|
|
+ showRate={item.showRate}
|
|
|
+ showAnalysis={item.showAnalysis}
|
|
|
+ analysis={item.analysis}
|
|
|
+ />
|
|
|
+ )}
|
|
|
+ {item.questionTypeCode === QuestionType.LINK && (
|
|
|
+ <KeepLookQuestion
|
|
|
+ readOnly
|
|
|
+ v-model:value={item.userAnswer}
|
|
|
+ data={item}
|
|
|
+ index={index + 1}
|
|
|
+ showRate={item.showRate}
|
|
|
+ showAnalysis={item.showAnalysis}
|
|
|
+ analysis={item.analysis}
|
|
|
+ />
|
|
|
+ )}
|
|
|
+ {item.questionTypeCode === QuestionType.PLAY && (
|
|
|
+ <PlayQuestion
|
|
|
+ readOnly
|
|
|
+ v-model:value={item.userAnswer}
|
|
|
+ data={item}
|
|
|
+ index={index + 1}
|
|
|
+ unitId={state.id as any}
|
|
|
+ showRate={item.showRate}
|
|
|
+ showAnalysis={item.showAnalysis}
|
|
|
+ analysis={item.analysis}
|
|
|
+ />
|
|
|
+ )}
|
|
|
+ </div>
|
|
|
+ </SwipeItem>
|
|
|
+ ))}
|
|
|
</Swipe>
|
|
|
|
|
|
<OSticky position="bottom" background="white">
|