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