mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
试卷的图片显示
This commit is contained in:
@@ -189,10 +189,16 @@
|
||||
</div>
|
||||
</div>
|
||||
<div style="padding: 15px;">
|
||||
<div>{{ item.title }}</div>
|
||||
<div>
|
||||
<div> {{ item.title }}</div>
|
||||
<div v-if="item.images" class="xuanxiangimg"><img :src="imageBaseUrl + item.images" alt=""> </div>
|
||||
</div>
|
||||
<div v-if="qpaper.optShow">
|
||||
<div v-if="item.type == 3">{{item.answer=='true'?'正确':'错误'}}</div>
|
||||
<div v-else v-for="(opt, optIdx) in item.optionList" :key="optIdx">{{ optIdx + 1 }}, {{ opt.content }}</div>
|
||||
<div v-else v-for="(opt, optIdx) in item.optionList" :key="optIdx">
|
||||
<div>{{ optIdx + 1 }}, {{ opt.content }}</div>
|
||||
<div v-if="opt.images" class="xuanxiangimg"><img :src="imageBaseUrl + opt.images" alt=""> </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -218,7 +224,7 @@
|
||||
</span>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog title="【B10】新员工入模培训 基础知识篇" :visible.sync="showPreviewDialog" width="800px">
|
||||
<el-dialog title="试卷预览" :visible.sync="showPreviewDialog" width="800px">
|
||||
<div><img :src="`${webBaseUrl}/temp/exam_paper.png`" style="width: 760px" /></div>
|
||||
<span slot="footer" class="dialog-footer"><el-button @click="showPreviewDialog = false">关闭</el-button></span>
|
||||
</el-dialog>
|
||||
@@ -227,7 +233,6 @@
|
||||
<div class="test-info">{{index+1}}.【{{typeFilter(item.type)}}】{{item.title}}
|
||||
<div v-if="item.images" class="tiganimg"><img :src="imageBaseUrl + item.images" alt=""> </div>
|
||||
</div>
|
||||
|
||||
<div style="padding: 10px" v-if="item.type == 3">
|
||||
<div class="test-info"><span>正确答案:{{item.answer=='true'? '正确': '错误'}}</span></div>
|
||||
</div>
|
||||
@@ -729,8 +734,7 @@ export default {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
})
|
||||
.then(() => {
|
||||
}).then(() => {
|
||||
apiPaper.del(row.id).then((res)=>{
|
||||
if(res.status === 200) {
|
||||
this.$message.success('删除成功!');
|
||||
|
||||
Reference in New Issue
Block a user