|
@@ -1,7 +1,9 @@
|
|
-import axios from 'axios';
|
|
|
|
|
|
+import axios, { AxiosResponse } from 'axios';
|
|
import {
|
|
import {
|
|
ScanCousreListPageParam,
|
|
ScanCousreListPageParam,
|
|
|
|
+ ScanCourseListFilter,
|
|
ScanPointListPageParam,
|
|
ScanPointListPageParam,
|
|
|
|
+ ScanPointListFilter,
|
|
ScanListPageRes,
|
|
ScanListPageRes,
|
|
SignPaperStatListPageParam,
|
|
SignPaperStatListPageParam,
|
|
SignPaperStatListPageRes,
|
|
SignPaperStatListPageRes,
|
|
@@ -12,19 +14,40 @@ import {
|
|
export function getScanCourseList(
|
|
export function getScanCourseList(
|
|
params: ScanCousreListPageParam
|
|
params: ScanCousreListPageParam
|
|
): Promise<ScanListPageRes> {
|
|
): Promise<ScanListPageRes> {
|
|
- return axios.post('/api/student/list', {}, { params });
|
|
|
|
|
|
+ return axios.post('/api/admin/scan/subject', {}, { params });
|
|
}
|
|
}
|
|
|
|
|
|
// 按考点统计列表
|
|
// 按考点统计列表
|
|
export function getScanPointList(
|
|
export function getScanPointList(
|
|
params: ScanPointListPageParam
|
|
params: ScanPointListPageParam
|
|
): Promise<ScanListPageRes> {
|
|
): Promise<ScanListPageRes> {
|
|
- return axios.post('/api/student/list', {}, { params });
|
|
|
|
|
|
+ return axios.post('/api/admin/scan/examSite', {}, { params });
|
|
}
|
|
}
|
|
|
|
|
|
// 签到表统计列表
|
|
// 签到表统计列表
|
|
export function getSignPaperStatList(
|
|
export function getSignPaperStatList(
|
|
params: SignPaperStatListPageParam
|
|
params: SignPaperStatListPageParam
|
|
): Promise<SignPaperStatListPageRes> {
|
|
): Promise<SignPaperStatListPageRes> {
|
|
- return axios.post('/api/student/list', {}, { params });
|
|
|
|
|
|
+ return axios.post('/api/admin/scan/package', {}, { params });
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// 按考点导出
|
|
|
|
+export function exportScanStatByPoint(
|
|
|
|
+ params: ScanPointListFilter
|
|
|
|
+): Promise<AxiosResponse<Blob>> {
|
|
|
|
+ return axios.post(
|
|
|
|
+ '/api/admin/scan/examSite/export',
|
|
|
|
+ {},
|
|
|
|
+ { params, responseType: 'blob' }
|
|
|
|
+ );
|
|
|
|
+}
|
|
|
|
+// 按科目导出
|
|
|
|
+export function exportScanStatByCourse(
|
|
|
|
+ params: ScanCourseListFilter
|
|
|
|
+): Promise<AxiosResponse<Blob>> {
|
|
|
|
+ return axios.post(
|
|
|
|
+ '/api/admin/scan/subject/export',
|
|
|
|
+ {},
|
|
|
|
+ { params, responseType: 'blob' }
|
|
|
|
+ );
|
|
}
|
|
}
|