|
@@ -69,7 +69,7 @@
|
|
|
<div>
|
|
|
<h3 class="p10">单项选择题</h3>
|
|
|
<el-row :gutter="24" class="ml20">
|
|
|
- <el-col :span="4" v-for="(item,index) in info.answers" :key="index" class="select-item" v-if="item.type==2">
|
|
|
+ <el-col :span="3" v-for="(item,index) in info.answers" :key="index" class="select-item" v-if="item.type==2">
|
|
|
<el-button :class="'b-grid '+getStyle(index)" @click="gotoQuestion(index)" >
|
|
|
{{index+1}}
|
|
|
<span class="red">
|
|
@@ -81,7 +81,7 @@
|
|
|
|
|
|
<h3 class="p10">多选题</h3>
|
|
|
<el-row :gutter="24" class="ml20">
|
|
|
- <el-col :span="4" v-for="(item,index) in info.answers" :key="index" class="select-item" v-if="item.type==3">
|
|
|
+ <el-col :span="3" v-for="(item,index) in info.answers" :key="index" class="select-item" v-if="item.type==3">
|
|
|
<el-button :class="'b-grid '+getStyle(index)" @click="gotoQuestion(index)" >
|
|
|
{{index+1}}
|
|
|
<span class="red">
|
|
@@ -93,7 +93,7 @@
|
|
|
|
|
|
<h3 class="p10">判断题</h3>
|
|
|
<el-row :gutter="24" class="ml20">
|
|
|
- <el-col :span="4" v-for="(item,index) in info.answers" :key="index" class="select-item" v-if="item.type==1">
|
|
|
+ <el-col :span="3" v-for="(item,index) in info.answers" :key="index" class="select-item" v-if="item.type==1">
|
|
|
<el-button :class="'b-grid '+getStyle(index)" @click="gotoQuestion(index)" >
|
|
|
{{index+1}}
|
|
|
<span class="red">
|
|
@@ -212,7 +212,7 @@ export default {
|
|
|
let {id} = item;
|
|
|
httpServer("course.loadAnswer", {id} ).then(res => {
|
|
|
if( res.code != 200) return;
|
|
|
- Object.assign( item, res.data)
|
|
|
+ Object.assign( item, res.data, {id})
|
|
|
this.doLoadQuestion( item )
|
|
|
})
|
|
|
}else{
|