|
@@ -153,20 +153,10 @@
|
|
|
<a-input
|
|
|
class="normal-input"
|
|
|
:class="{
|
|
|
- 'long-input': question.type
|
|
|
- ? !['SINGLE', 'TRUE_OR_FALSE'].includes(question.type)
|
|
|
- : !group.mainTitle.match(/单选|单项|判断/),
|
|
|
+ 'long-input': question.questionType === 2,
|
|
|
}"
|
|
|
:value="question.answer"
|
|
|
- :maxLength="
|
|
|
- (
|
|
|
- question.type
|
|
|
- ? ['MULTIPLE'].includes(question.type)
|
|
|
- : group.mainTitle.match(/多选|多项|不定项/)
|
|
|
- )
|
|
|
- ? 100
|
|
|
- : 1
|
|
|
- "
|
|
|
+ :maxLength="question.questionType === 2 ? 100 : 1"
|
|
|
@keydown="onPreventAnswerKey"
|
|
|
@input="changeAnswer($event, question)"
|
|
|
@blur="changeAnswer($event, question, '#')"
|