更新 attendance-teacher.html
parent
652c95bff9
commit
f7fb8bdece
|
|
@ -105,21 +105,11 @@
|
|||
$row.append(`<td>${item.credits}</td>`);
|
||||
$row.append(`<td>${item.class_name}</td>`);
|
||||
$row.append(`<td>${item.major}</td>`);
|
||||
$row.append(`
|
||||
<td>
|
||||
<div class="layui-btn-group">
|
||||
<button class="layui-btn layui-btn-normal layui-btn-sm dropdown-toggle" type="button">
|
||||
签到 <span class="layui-icon layui-icon-down"></span>
|
||||
</button>
|
||||
<dl class="dropdown-menu" style="display:none;">
|
||||
<dd><a href="javascript:void(0);" onclick="markAttendance(this, 'present')">出勤</a></dd>
|
||||
<dd><a href="javascript:void(0);" onclick="markAttendance(this, 'absent')">缺席</a></dd>
|
||||
<dd><a href="javascript:void(0);" onclick="markAttendance(this, 'late')">迟到</a></dd>
|
||||
<dd><a href="javascript:void(0);" onclick="markAttendance(this, 'excused')">请假</a></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</td>
|
||||
`);
|
||||
$row.append(`<td>
|
||||
<div class="btn-container">
|
||||
<a class="layui-btn layui-btn-normal layui-btn-sm" lay-event="checkin">签到<i class="layui-icon layui-icon-down"></i></a>
|
||||
</div>
|
||||
</td>`)
|
||||
$tbody.append($row);
|
||||
|
||||
});
|
||||
|
|
|
|||
Reference in New Issue