更新 attendance-teacher.html
parent
5fb451fa97
commit
ebd95f9413
|
|
@ -58,8 +58,7 @@
|
||||||
<th>课程名称</th>
|
<th>课程名称</th>
|
||||||
<th>课程代码</th>
|
<th>课程代码</th>
|
||||||
<th>学分</th>
|
<th>学分</th>
|
||||||
<th>班级名称</th>
|
<th>班级专业</th>
|
||||||
<th>专业</th>
|
|
||||||
<th>签到</th>
|
<th>签到</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
@ -93,13 +92,11 @@
|
||||||
$row.append(`<td>${item.course_name}</td>`);
|
$row.append(`<td>${item.course_name}</td>`);
|
||||||
$row.append(`<td>${item.course_code}</td>`);
|
$row.append(`<td>${item.course_code}</td>`);
|
||||||
$row.append(`<td>${item.credits}</td>`);
|
$row.append(`<td>${item.credits}</td>`);
|
||||||
$row.append(`<td>${item.class_name}</td>`);
|
$row.append(`<td>${item.class_name + item.major}</td>`);
|
||||||
$row.append(`<td>${item.major}</td>`);
|
$row.append(`<td><div class="layui-btn-container">
|
||||||
$row.append(`<td>
|
<button type="button" class="layui-btn">签到</button>
|
||||||
<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>
|
</div>
|
||||||
</td>`)
|
</td>`)
|
||||||
$tbody.append($row);
|
$tbody.append($row);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
@ -118,11 +115,6 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleDropdown(dropdown) {
|
|
||||||
$(dropdown).find('.dropdown-menu').toggle(); // 显示或隐藏下拉菜单
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// 初始加载第一页
|
// 初始加载第一页
|
||||||
renderTable(1);
|
renderTable(1);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Reference in New Issue