|
@@ -4,10 +4,6 @@
|
|
import { searchFormSchema, tableColumns } from './data.config';
|
|
import { searchFormSchema, tableColumns } from './data.config';
|
|
import ClassTree from '/@/views/educational/basicInformation/components/tree.vue';
|
|
import ClassTree from '/@/views/educational/basicInformation/components/tree.vue';
|
|
import { computed, reactive } from 'vue';
|
|
import { computed, reactive } from 'vue';
|
|
- import {
|
|
|
|
- postBaseNewStudentReportExportQuery,
|
|
|
|
- getBaseNewStudentReportPage,
|
|
|
|
- } from '/@/services/apis/BaseNewStudentController';
|
|
|
|
import { Recordable } from 'vite-plugin-mock';
|
|
import { Recordable } from 'vite-plugin-mock';
|
|
import { useModal } from '/@/components/Modal';
|
|
import { useModal } from '/@/components/Modal';
|
|
import FormEdit from './edit.vue';
|
|
import FormEdit from './edit.vue';
|
|
@@ -15,8 +11,13 @@
|
|
import { formatToDate } from '/@/utils/dateUtil';
|
|
import { formatToDate } from '/@/utils/dateUtil';
|
|
import { downloadByData } from '/@/utils/file/download';
|
|
import { downloadByData } from '/@/utils/file/download';
|
|
import { useLoading } from '/@/components/Loading';
|
|
import { useLoading } from '/@/components/Loading';
|
|
- import { postStudentReportRecordUpdateStduyStatus } from '/@/services/apis/StudentReportRecordController';
|
|
|
|
import FormAdjust from './adjust.vue';
|
|
import FormAdjust from './adjust.vue';
|
|
|
|
+ import {
|
|
|
|
+ getTryReadingReportPage,
|
|
|
|
+ postTryReadingReportAllSign,
|
|
|
|
+ postTryReadingReportExportQuery,
|
|
|
|
+ postTryReadingReportUpdateStduyStatus,
|
|
|
|
+ } from '/@/services/apis/StudentTryReadingReportController';
|
|
|
|
|
|
const searchInfo = reactive<Recordable>({});
|
|
const searchInfo = reactive<Recordable>({});
|
|
|
|
|
|
@@ -28,7 +29,7 @@
|
|
});
|
|
});
|
|
|
|
|
|
const [registerTable, { reload, getSelectRowKeys, getForm, clearSelectedRowKeys }] = useTable({
|
|
const [registerTable, { reload, getSelectRowKeys, getForm, clearSelectedRowKeys }] = useTable({
|
|
- api: getBaseNewStudentReportPage,
|
|
|
|
|
|
+ api: getTryReadingReportPage,
|
|
title: '学生列表',
|
|
title: '学生列表',
|
|
rowKey: 'id',
|
|
rowKey: 'id',
|
|
columns: tableColumns,
|
|
columns: tableColumns,
|
|
@@ -87,7 +88,7 @@
|
|
const handleExport = async () => {
|
|
const handleExport = async () => {
|
|
const postData = getForm().getFieldsValue();
|
|
const postData = getForm().getFieldsValue();
|
|
downloadByData(
|
|
downloadByData(
|
|
- (await postBaseNewStudentReportExportQuery({ ...postData, ...searchInfo })).data,
|
|
|
|
|
|
+ (await postTryReadingReportExportQuery({ ...postData, ...searchInfo })).data,
|
|
`新生列表${formatToDate(new Date())}.xlsx`,
|
|
`新生列表${formatToDate(new Date())}.xlsx`,
|
|
);
|
|
);
|
|
};
|
|
};
|
|
@@ -95,12 +96,12 @@
|
|
const handleChangeReport = async () => {
|
|
const handleChangeReport = async () => {
|
|
try {
|
|
try {
|
|
openFullLoading();
|
|
openFullLoading();
|
|
- const keys: Recordable[] = [];
|
|
|
|
|
|
+ const keys: string[] = [];
|
|
getSelectRowKeys().forEach((item) => {
|
|
getSelectRowKeys().forEach((item) => {
|
|
- keys.push({ id: item });
|
|
|
|
|
|
+ keys.push(item);
|
|
});
|
|
});
|
|
if (keys.length > 0) {
|
|
if (keys.length > 0) {
|
|
- // await postStudentReportRecordAllSign(keys);
|
|
|
|
|
|
+ await postTryReadingReportAllSign(keys);
|
|
clearSelectedRowKeys();
|
|
clearSelectedRowKeys();
|
|
await reload();
|
|
await reload();
|
|
}
|
|
}
|
|
@@ -116,7 +117,7 @@
|
|
content: '确认切换当前学生就读方式?',
|
|
content: '确认切换当前学生就读方式?',
|
|
onOk: async () => {
|
|
onOk: async () => {
|
|
try {
|
|
try {
|
|
- await postStudentReportRecordUpdateStduyStatus({ id: record.id });
|
|
|
|
|
|
+ await postTryReadingReportUpdateStduyStatus({ id: record.id });
|
|
createMessage.success('切换成功');
|
|
createMessage.success('切换成功');
|
|
await reload();
|
|
await reload();
|
|
} catch (e) {
|
|
} catch (e) {
|
|
@@ -138,7 +139,7 @@
|
|
|
|
|
|
<template>
|
|
<template>
|
|
<PageWrapper dense contentFullHeight fixedHeight contentClass="flex">
|
|
<PageWrapper dense contentFullHeight fixedHeight contentClass="flex">
|
|
- <ClassTree class="w-1/3 xl:w-1/4" @select="handleSelect" />
|
|
|
|
|
|
+ <ClassTree class="w-1/3 xl:w-1/4" @select="handleSelect" title="年级列表" />
|
|
<BasicTable class="w-2/3 xl:w-3/4" @register="registerTable" :searchInfo="searchInfo">
|
|
<BasicTable class="w-2/3 xl:w-3/4" @register="registerTable" :searchInfo="searchInfo">
|
|
<template #toolbar>
|
|
<template #toolbar>
|
|
<a-button type="primary" @click="handleDeleteBatch">报到日期设置</a-button>
|
|
<a-button type="primary" @click="handleDeleteBatch">报到日期设置</a-button>
|