baigl #229

Merged
baigl merged 2 commits from baigl into main 2024-09-19 16:58:15 +08:00
1 changed files with 16 additions and 18 deletions

View File

@ -8,15 +8,15 @@
<div class="teacher_content_con"> <div class="teacher_content_con">
<!-- 题目内容习题训练 --> <!-- 题目内容习题训练 -->
<div v-if="dialogProps.studentObj.worktype == '习题训练'"> <div v-if="dialogProps.studentObj.worktype == '习题训练'">
<div v-for="(stuItem, sIndex) in dialogProps.studentQuizAllList" :key="stuItem.id"> <div v-for="(quItem, qIndex) in dialogProps.quizlist" :key="quItem.id">
<div v-for="quItem in dialogProps.quizlist" :key="quItem.id"> <div v-for="(stuItem, sIndex) in dialogProps.studentQuizAllList" :key="stuItem.id">
<div v-if="stuItem.entpcourseworkid == quItem.id"> <div v-if="stuItem.entpcourseworkid == quItem.id">
<el-card style="max-width: 100%; margin-bottom: 10px"> <el-card style="max-width: 100%; margin-bottom: 10px">
<!-- 题型 分值 --> <!-- 题型 分值 -->
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span <span
>{{ sIndex + 1 }}{{ quItem.worktype }} >{{ qIndex + 1 }}{{ quItem.worktype }}
{{ stuItem.score ? stuItem.score : 0 }}</span {{ stuItem.score ? stuItem.score : 0 }}</span
> >
</div> </div>
@ -94,21 +94,19 @@
</span> </span>
</el-col> </el-col>
<el-col :span="6" style="padding: 10px"> <el-col :span="6" style="padding: 10px">
<div <div v-if="stuItem.imagefile && stuItem.imagefile.length > 0">
v-for="(imageItem, index) in stuItem.imagefile" <div v-for="(imageItem, index) in stuItem.imagefile" :key="index">
v-if="stuItem.imagefile && stuItem.imagefile.length > 0" <el-image
:key="index" style="width: 30px; height: 30px"
> :src="imageItem"
<el-image :zoom-rate="1.2"
style="width: 30px; height: 30px" :max-scale="7"
:src="imageItem" :min-scale="0.2"
:zoom-rate="1.2" :preview-src-list="stuItem.imagefile"
:max-scale="7" :initial-index="4"
:min-scale="0.2" fit="contain"
:preview-src-list="stuItem.imagefile" />
:initial-index="4" </div>
fit="contain"
/>
</div> </div>
</el-col> </el-col>
<el-col :span="6" style="padding: 10px"> <el-col :span="6" style="padding: 10px">