|
|
|
@ -34,7 +34,7 @@ |
|
|
|
|
</el-radio-group> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item class="is-required" prop="stem" label="题干"> |
|
|
|
|
<UeditorPlus ref="stem" @ready="stemReady" v-model="form.stem" /> |
|
|
|
|
<UeditorPlus ref="stem" :config="editorConfig" @ready="stemReady" v-model="form.stem" /> |
|
|
|
|
|
|
|
|
|
<Upload v-if="form.questionType === 'essay'" class="m-t-10" |
|
|
|
|
accept=".csv,.xlsx,.xls,.docx,.doc,.pdf,.jpg,.png,.zip,.rar,.7z" :max-size="50" :file-list="uploadList" |
|
|
|
@ -61,8 +61,8 @@ |
|
|
|
|
<div v-if="item.optionText" v-html="item.optionText"></div> |
|
|
|
|
<p v-else class="default">请输入</p> |
|
|
|
|
</div> |
|
|
|
|
<UeditorPlus v-else class="opt-editor" :ref="'opt' + item.optionNumber" v-model="item.optionText" |
|
|
|
|
@ready="editor => optReady(editor, item)" /> |
|
|
|
|
<UeditorPlus v-else class="opt-editor" :ref="'opt' + item.optionNumber" :config="editorConfig" |
|
|
|
|
v-model="item.optionText" @ready="editor => optReady(editor, item)" /> |
|
|
|
|
<template v-if="form.questionType !== 'judgement'"> |
|
|
|
|
<i class="icon el-icon-circle-plus-outline" @click="addOpt(i)"></i> |
|
|
|
|
<i class="icon el-icon-remove-outline" @click="delOpt(i)"></i> |
|
|
|
@ -124,7 +124,8 @@ |
|
|
|
|
</el-radio-group> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item v-if="form.allowAttachment" prop="uploadInstructions" label="上传要求说明"> |
|
|
|
|
<UeditorPlus ref="uploadInstructions" @ready="uploadInstructionsReady" v-model="form.uploadInstructions" /> |
|
|
|
|
<UeditorPlus ref="uploadInstructions" :config="editorConfig" @ready="uploadInstructionsReady" |
|
|
|
|
v-model="form.uploadInstructions" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="判分标准" class="is-required"> |
|
|
|
|
<el-select :value="form.questionAnswerVersions[0].gradingStandard" placeholder="请选择判分标准" disabled> |
|
|
|
@ -132,13 +133,14 @@ |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="referenceAnswer" label="参考答案"> |
|
|
|
|
<UeditorPlus ref="referenceAnswer" @ready="referenceAnswerReady" |
|
|
|
|
<UeditorPlus ref="referenceAnswer" :config="editorConfig" @ready="referenceAnswerReady" |
|
|
|
|
v-model="form.questionAnswerVersions[0].referenceAnswer" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<el-form-item prop="answerAnalysis" label="解析"> |
|
|
|
|
<UeditorPlus ref="answerAnalysis" @ready="answerAnalysisReady" v-model="answerAnalysis" /> |
|
|
|
|
<UeditorPlus ref="answerAnalysis" :config="editorConfig" @ready="answerAnalysisReady" |
|
|
|
|
v-model="answerAnalysis" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
|
<span v-if="detailType !== 2" slot="footer" class="dialog-footer"> |
|
|
|
@ -221,6 +223,9 @@ export default { |
|
|
|
|
questionTypes: Const.questionTypes, |
|
|
|
|
knowledges: [], |
|
|
|
|
|
|
|
|
|
editorConfig: { |
|
|
|
|
zIndex: 2500, |
|
|
|
|
}, |
|
|
|
|
richEditor: { |
|
|
|
|
object: null, |
|
|
|
|
parameterName: '', |
|
|
|
|