From 8991931f3a939e66aeb305ef2f4ddfbfd4089bdd Mon Sep 17 00:00:00 2001
From: zhoutianchi <1305666981@qq.com>
Date: Wed, 4 Feb 2026 14:01:03 +0800
Subject: [PATCH] 1
---
src/api/basic/basicasynctask.ts | 30 +++++++++++++++++++
src/api/professional/professionalfile.ts | 4 +--
.../teacherbase/export-teacher-info.vue | 4 +--
src/views/professional/teacherbase/index.vue | 16 +++++-----
4 files changed, 42 insertions(+), 12 deletions(-)
create mode 100644 src/api/basic/basicasynctask.ts
diff --git a/src/api/basic/basicasynctask.ts b/src/api/basic/basicasynctask.ts
new file mode 100644
index 0000000..bad7dc1
--- /dev/null
+++ b/src/api/basic/basicasynctask.ts
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2018-2025, cyweb All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * Neither the name of the pig4cloud.com developer nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ */
+
+import request from '/@/utils/request';
+
+/**
+ * 获取列表
+ * @param query
+ */
+export const fetchList = (query?: any) => {
+ return request({
+ url: '/basic/basicAsyncTask/page',
+ method: 'get',
+ params: query,
+ });
+};
diff --git a/src/api/professional/professionalfile.ts b/src/api/professional/professionalfile.ts
index 3c5d078..cbceb39 100644
--- a/src/api/professional/professionalfile.ts
+++ b/src/api/professional/professionalfile.ts
@@ -1,9 +1,9 @@
import request from '/@/utils/request';
-export const exportTeacherInfoBySelf = (data?: any) => {
+export const makeExportTeacherInfoBySelfTask = (data?: any) => {
return request({
- url: '/professional/file/exportTeacherInfoBySelf',
+ url: '/professional/file/makeExportTeacherInfoBySelfTask',
method: 'post',
data: data,
});
diff --git a/src/views/professional/teacherbase/export-teacher-info.vue b/src/views/professional/teacherbase/export-teacher-info.vue
index 492442a..40e7225 100644
--- a/src/views/professional/teacherbase/export-teacher-info.vue
+++ b/src/views/professional/teacherbase/export-teacher-info.vue
@@ -68,7 +68,7 @@ import { ElNotification } from 'element-plus';
import { Download } from '@element-plus/icons-vue';
import global from '/@/components/tools/commondict.vue';
import request from '/@/utils/request';
-import { exportTeacherInfoBySelf } from '/@/api/professional/professionalfile';
+import { makeExportTeacherInfoBySelfTask } from '/@/api/professional/professionalfile';
// Props
const props = defineProps<{
@@ -224,7 +224,7 @@ const exportTeacherInfo = async () => {
teacherBaseDTO: searchData,
};
- exportTeacherInfoBySelf(params).then((res:any)=>{
+ makeExportTeacherInfoBySelfTask(params).then((res:any)=>{
ElNotification.success({
title: '下载后台进行中',
message: '操作成功'
diff --git a/src/views/professional/teacherbase/index.vue b/src/views/professional/teacherbase/index.vue
index cb2df30..c00a3c4 100644
--- a/src/views/professional/teacherbase/index.vue
+++ b/src/views/professional/teacherbase/index.vue
@@ -215,14 +215,14 @@
icon="Lock"
@click="dialogVisible.statusDialogFormVisible=true">状态锁定
- 导出WORD
-
+
+
+
+
+
+
+
+