|
|
@ -1,5 +1,5 @@ |
|
|
|
<template> |
|
|
|
<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> |
|
|
|
<div> |
|
|
|
<el-form ref="dialogForm" :model="dialogForm" :rules="dataRule" label-position="left" @keyup.enter.native="dialogFormSubmit()"> |
|
|
|
<el-form ref="dialogForm" :model="dialogForm" :rules="dataRule" label-position="left" @keyup.enter.native="dialogFormSubmit()"> |
|
|
|
<el-row> |
|
|
|
<el-row> |
|
|
@ -10,22 +10,52 @@ |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="选项" prop="question"> |
|
|
|
<el-form-item label="选项A" prop="question"> |
|
|
|
A:<el-input v-model="dialogForm.chooseA" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
<el-input v-model="dialogForm.chooseA" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
B:<el-input v-model="dialogForm.chooseB" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
</el-form-item> |
|
|
|
C:<el-input v-model="dialogForm.chooseC" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
</el-col> |
|
|
|
D:<el-input v-model="dialogForm.chooseD" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
<el-col :span="12"> |
|
|
|
E:<el-input v-model="dialogForm.chooseE" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
<el-form-item label="选项B" prop="question"> |
|
|
|
F:<el-input v-model="dialogForm.chooseF" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
<el-input v-model="dialogForm.chooseB" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
G:<el-input v-model="dialogForm.chooseG" 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-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="答案" prop="trueAnswer"> |
|
|
|
<el-form-item label="答案" prop="trueAnswer"> |
|
|
|
<span>{{ dialogForm.trueAnswer }}</span> |
|
|
|
<el-input v-model="dialogForm.trueAnswer" maxlength="200" placeholder="请输入" clearable /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|