|
@@ -16,11 +16,16 @@
|
|
import { formatToDate } from '/@/utils/dateUtil';
|
|
import { formatToDate } from '/@/utils/dateUtil';
|
|
import PlanTree from './planTree.vue';
|
|
import PlanTree from './planTree.vue';
|
|
import { Switch } from 'ant-design-vue';
|
|
import { Switch } from 'ant-design-vue';
|
|
|
|
+ import { useLoading } from '/@/components/Loading';
|
|
|
|
|
|
const searchInfo = reactive<Recordable>({});
|
|
const searchInfo = reactive<Recordable>({});
|
|
|
|
|
|
const { createConfirm, createMessage } = useMessage();
|
|
const { createConfirm, createMessage } = useMessage();
|
|
|
|
|
|
|
|
+ const [openFullLoading, closeFullLoading] = useLoading({
|
|
|
|
+ tip: '处理中...',
|
|
|
|
+ });
|
|
|
|
+
|
|
const [registerTable, { reload, getSelectRowKeys, getForm, clearSelectedRowKeys }] = useTable({
|
|
const [registerTable, { reload, getSelectRowKeys, getForm, clearSelectedRowKeys }] = useTable({
|
|
api: getStudentReportRecordPlanPage,
|
|
api: getStudentReportRecordPlanPage,
|
|
title: '报到计划表',
|
|
title: '报到计划表',
|
|
@@ -50,12 +55,19 @@
|
|
const hasSelected = computed(() => getSelectRowKeys().length > 0);
|
|
const hasSelected = computed(() => getSelectRowKeys().length > 0);
|
|
|
|
|
|
const handleChangeReport = async () => {
|
|
const handleChangeReport = async () => {
|
|
- const keys: Recordable[] = [];
|
|
|
|
- getSelectRowKeys().forEach((item) => {
|
|
|
|
- keys.push({ id: item });
|
|
|
|
- });
|
|
|
|
- if (keys.length > 0) {
|
|
|
|
- await postStudentReportRecordAllSign(keys);
|
|
|
|
|
|
+ try {
|
|
|
|
+ openFullLoading();
|
|
|
|
+ const keys: Recordable[] = [];
|
|
|
|
+ getSelectRowKeys().forEach((item) => {
|
|
|
|
+ keys.push({ id: item });
|
|
|
|
+ });
|
|
|
|
+ if (keys.length > 0) {
|
|
|
|
+ await postStudentReportRecordAllSign(keys);
|
|
|
|
+ clearSelectedRowKeys();
|
|
|
|
+ await reload();
|
|
|
|
+ }
|
|
|
|
+ } finally {
|
|
|
|
+ closeFullLoading();
|
|
}
|
|
}
|
|
};
|
|
};
|
|
const handleChangeStduyStatus = (record: any) => {
|
|
const handleChangeStduyStatus = (record: any) => {
|