瀏覽代碼

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

master
yxq 1 月之前
父節點
當前提交
58da6961cc
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      SafeCampus.WEB/src/views/screen/stureturn.vue

+ 2
- 2
SafeCampus.WEB/src/views/screen/stureturn.vue 查看文件

@@ -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…
取消
儲存