Browse Source

类型报错处理

master
suyanyan 4 months ago
parent
commit
03fe355a02
1 changed files with 12 additions and 4 deletions
  1. +12
    -4
      SafeCampus.WEB/src/views/attendance/roolcall/detail.vue

+ 12
- 4
SafeCampus.WEB/src/views/attendance/roolcall/detail.vue View File

@@ -27,6 +27,7 @@
><div class="grid-content"> ><div class="grid-content">
<div class="imgBox" :class="{ active: item.status === 1 ? true : false }"> <div class="imgBox" :class="{ active: item.status === 1 ? true : false }">
<el-image <el-image
v-if="item.faces && item.faces.length > 0"
style="width: 100px; height: 100px" style="width: 100px; height: 100px"
:src="item.faces[0].faceUrl" :src="item.faces[0].faceUrl"
:preview-src-list="[item.faces[0].faceUrl]" :preview-src-list="[item.faces[0].faceUrl]"
@@ -41,7 +42,7 @@
</div> </div>
<div class="desc"> <div class="desc">
<span class="label">所属分组:</span> <span class="label">所属分组:</span>
{{ item.personSets[0].personSetName }}
{{ item.personSetName }}
</div> </div>
</div> </div>
</div></el-col </div></el-col
@@ -55,6 +56,7 @@
<li class="imgBox" v-for="(item, index) in UnrecognizedD" :key="index"> <li class="imgBox" v-for="(item, index) in UnrecognizedD" :key="index">
<el-image <el-image
style="width: 80px; height: 80px" style="width: 80px; height: 80px"
v-if="item.snapshotUrl"
:src="item.snapshotUrl" :src="item.snapshotUrl"
:preview-src-list="[item.snapshotUrl]" :preview-src-list="[item.snapshotUrl]"
:initial-index="4" :initial-index="4"
@@ -71,13 +73,19 @@
<el-col :xl="6" :lg="6" :md="8" v-for="(item, index) in UnRollCallData" :key="index" <el-col :xl="6" :lg="6" :md="8" v-for="(item, index) in UnRollCallData" :key="index"
><div class="grid-content gridContentDialog" :class="{ active: checkIndex == index }" @click="checkOut(item, index)"> ><div class="grid-content gridContentDialog" :class="{ active: checkIndex == index }" @click="checkOut(item, index)">
<div class="imgBox" :class="{ active: item.status === 1 ? true : false }"> <div class="imgBox" :class="{ active: item.status === 1 ? true : false }">
<el-image
<img
v-if="item.faces && item.faces.length > 0"
:src="item.faces[0].faceUrl"
alt=""
style="width: 100px; height: 100px; object-fit: cover"
/>
<!-- <el-image
style="width: 100px; height: 100px" style="width: 100px; height: 100px"
:src="item.faces[0].faceUrl" :src="item.faces[0].faceUrl"
:preview-src-list="[item.faces[0].faceUrl]" :preview-src-list="[item.faces[0].faceUrl]"
:initial-index="4" :initial-index="4"
fit="cover" fit="cover"
/>
/> -->
</div> </div>
<div class="info"> <div class="info">
<div class="desc"> <div class="desc">
@@ -86,7 +94,7 @@
</div> </div>
<div class="desc"> <div class="desc">
<span class="label">所属分组:</span> <span class="label">所属分组:</span>
{{ item.personSets[0].personSetName }}
{{ item.personSetName }}
</div> </div>
</div> </div>
</div></el-col </div></el-col


Loading…
Cancel
Save