|
|
@@ -66,7 +66,7 @@ |
|
|
|
<el-table-column prop="personName" label="姓名" align="center"> </el-table-column> |
|
|
|
<el-table-column prop="dormitName" label="所在宿舍" align="center"> </el-table-column> |
|
|
|
<el-table-column prop="gender" label="宿舍性别" align="center" :formatter="genderFormatter"> </el-table-column> |
|
|
|
<el-table-column prop="$status" label="归寝状态" align="center"> </el-table-column> |
|
|
|
<el-table-column prop="$status" label="出入状态" align="center"> </el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@@ -88,7 +88,7 @@ const getStuReturnInfo = async obj => { |
|
|
|
screenApi.getStudentReturnBed({ buildId: buildInfo.value.value }).then(res => { |
|
|
|
if (res.code == 200) { |
|
|
|
res.data.attendList = res.data.attendList.map(e => { |
|
|
|
e.$status = e.cameraId == buildInfo.value.outCameraId ? "未归寝" : e.cameraId == buildInfo.value.insCameraId ? "归寝" : ""; |
|
|
|
e.$status = e.cameraId == buildInfo.value.outCameraId ? "外出" : e.cameraId == buildInfo.value.insCameraId ? "进入" : ""; |
|
|
|
return e; |
|
|
|
}); |
|
|
|
screenData.value = res.data; |
|
|
|