|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
<template> |
|
|
|
|
<el-dialog title="试题" :close-on-click-modal="false" append-to-body :visible.sync="visible" width="800px" @close="closeDialog"> |
|
|
|
|
<el-dialog title="试题" :close-on-click-modal="false" append-to-body :visible.sync="visible" width="900px" @close="closeDialog"> |
|
|
|
|
<div> |
|
|
|
|
<el-form ref="dialogForm" :model="dialogForm" :rules="dataRule" label-position="left" @keyup.enter.native="dialogFormSubmit()"> |
|
|
|
|
<el-row> |
|
|
|
@ -10,22 +10,52 @@ |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<el-form-item label="选项" prop="question"> |
|
|
|
|
A:<el-input v-model="dialogForm.chooseA" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
|
B:<el-input v-model="dialogForm.chooseB" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
|
C:<el-input v-model="dialogForm.chooseC" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
|
D:<el-input v-model="dialogForm.chooseD" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
|
E:<el-input v-model="dialogForm.chooseE" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
|
F:<el-input v-model="dialogForm.chooseF" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
|
G:<el-input v-model="dialogForm.chooseG" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="选项A" prop="question"> |
|
|
|
|
<el-input v-model="dialogForm.chooseA" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="选项B" prop="question"> |
|
|
|
|
<el-input v-model="dialogForm.chooseB" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="选项C" prop="question"> |
|
|
|
|
<el-input v-model="dialogForm.chooseC" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="选项D" prop="question"> |
|
|
|
|
<el-input v-model="dialogForm.chooseD" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="选项E" prop="question"> |
|
|
|
|
<el-input v-model="dialogForm.chooseE" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="选项F" prop="question"> |
|
|
|
|
<el-input v-model="dialogForm.chooseF" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="选项G" prop="question"> |
|
|
|
|
<el-input v-model="dialogForm.chooseG" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<el-form-item label="答案" prop="trueAnswer"> |
|
|
|
|
<span>{{ dialogForm.trueAnswer }}</span> |
|
|
|
|
<el-input v-model="dialogForm.trueAnswer" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|