|
@@ -87,7 +87,7 @@
|
|
|
:class="{ hide: !question.exist }"
|
|
|
>
|
|
|
<span class="question-number">{{ question.subNumber }} </span>
|
|
|
- <a-input
|
|
|
+ <!-- <a-input
|
|
|
class="normal-input"
|
|
|
:class="{
|
|
|
'long-input': question.type
|
|
@@ -110,6 +110,27 @@
|
|
|
@keydown="onPreventAnswerKey"
|
|
|
@input="changeAnswer($event, question)"
|
|
|
@blur="changeAnswer($event, question, '#')"
|
|
|
+ /> -->
|
|
|
+ <a-input
|
|
|
+ class="normal-input"
|
|
|
+ :class="{
|
|
|
+ 'long-input': question.type
|
|
|
+ ? !['SINGLE', 'TRUE_OR_FALSE'].includes(question.type)
|
|
|
+ : !group.mainTitle.match(/单选|单项|判断|/),
|
|
|
+ }"
|
|
|
+ :value="question.answer"
|
|
|
+ :maxLength="
|
|
|
+ (
|
|
|
+ question.type
|
|
|
+ ? ['MULTIPLE'].includes(question.type)
|
|
|
+ : group.mainTitle.match(/多选|多项|不定项/)
|
|
|
+ )
|
|
|
+ ? 100
|
|
|
+ : 1
|
|
|
+ "
|
|
|
+ @keydown="onPreventAnswerKey"
|
|
|
+ @input="changeAnswer($event, question)"
|
|
|
+ @blur="changeAnswer($event, question, '#')"
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|