Browse Source

学生归寝 右下表格状态完善

master
yxq 3 weeks ago
parent
commit
58da6961cc
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      SafeCampus.WEB/src/views/screen/stureturn.vue

+ 2
- 2
SafeCampus.WEB/src/views/screen/stureturn.vue View File

@@ -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;


Loading…
Cancel
Save