v0.6测试

This commit is contained in:
2026-04-14 19:18:11 +08:00
parent fd3535f884
commit a60ba8352f
23 changed files with 157 additions and 40 deletions

View File

@@ -66,8 +66,8 @@ include __DIR__ . '/../includes/header.php';
</div>
<script>
let currentHistoryPage = 1;
let totalHistoryPages = 1;
var currentHistoryPage = 1;
var totalHistoryPages = 1;
async function loadStudentsForSelect() {
const res = await apiGet('/api/admin/students');
@@ -86,12 +86,14 @@ async function loadHistory(page = 1) {
const endDate = document.getElementById('historyEndDate').value;
const studentId = document.getElementById('historyStudentId').value;
const res = await apiGet('/api/admin/conduct/history', {
const params = {
page, page_size: 20,
start_date: startDate,
end_date: endDate,
student_id: studentId
});
end_date: endDate
};
if (studentId) params.student_id = studentId;
const res = await apiGet('/api/admin/conduct/history', params);
if (res && res.success) {
let html = '';