v0.6测试
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user