| | |
| | | <h3>{{ titleItem.title }}</h3> |
| | | <el-card class="exampaper-item-box" v-if="titleItem.questionList.length !== 0"> |
| | | <el-form-item :key="questionItem.itemOrder" :label="questionItem.itemOrder + '.'" |
| | | v-for="questionItem in titleItem.questionList" class="exam-question-item" |
| | | label-width="50px" :id="'question-' + questionItem.itemOrder"> |
| | | v-for="questionItem in titleItem.questionList" class="exam-question-item" label-width="50px" |
| | | :id="'question-' + questionItem.itemOrder"> |
| | | <MarkPaperShow :qType="questionItem.questionType" :question="questionItem" :answer="form.navbar"/> |
| | | </el-form-item> |
| | | </el-card> |
| | | </el-row> |
| | | </el-form> |
| | | </div> |
| | | <el-empty v-if="empty" style="width:1200px;height:500px;"></el-empty> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | examPaperAnswerApi.read(id).then(re => { |
| | | this.formLoading = true |
| | | this.form = re.data |
| | | console.log('this.form', this.form); |
| | | if (!this.form.titleItems) this.empty = true; |
| | | this.formLoading = false |
| | | }) |
| | | } |
| | | }, |
| | | data () { |
| | | return { |
| | | empty: false, |
| | | paperQuestionList: [], |
| | | form: {}, |
| | | formLoading: false, |
| | |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | .paper-container { |
| | | display: flex; |
| | | flex-direction: row; |
| | |
| | | } |
| | | |
| | | .paper-form { |
| | | flex: 1; /* 占据剩余空间 */ |
| | | flex: 1; |
| | | /* 占据剩余空间 */ |
| | | margin-left: 300px; |
| | | } |
| | | |
| | |
| | | font-size: 14px; |
| | | margin-top: 10px; |
| | | } |
| | | |
| | | </style> |