From f1c155b95bd9ed950b15bc7f60f50155895bb6ff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=8F=E8=82=A5=E7=BE=8A?= <1048382248@qq.com>
Date: Fri, 28 Nov 2025 10:35:10 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=97=A0=E6=B3=95?=
=?UTF-8?q?=E5=AF=BC=E5=85=A5=E7=94=A8=E6=88=B7=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/student/index.vue | 11 ++++++++---
src/views/teacher/index.vue | 7 ++++++-
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/src/views/student/index.vue b/src/views/student/index.vue
index 8bd6b01..20f4949 100644
--- a/src/views/student/index.vue
+++ b/src/views/student/index.vue
@@ -63,7 +63,7 @@
- 导入用户
+ 导入用户
下载学生模板
@@ -692,7 +692,6 @@ const importUpdateStudent = () => {
};
const importData = (api = null) => {
console.log("批量导入");
- api = api ?? ImportStudent;
let fileE = document.createElement("input");
fileE.type = "file";
var formData = new window.FormData();
@@ -719,7 +718,13 @@ const importData = (api = null) => {
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
- ElMessage.success("导入失败,已导出错误数据");
+ ElMessage.warning("导入失败,已导出错误数据");
+ ElMessage({
+ showClose: true,
+ type: "warning",
+ message: "导入失败,已导出错误数据.",
+ duration: 0,
+ });
};
try {
fileE.click();
diff --git a/src/views/teacher/index.vue b/src/views/teacher/index.vue
index 262283e..305d143 100644
--- a/src/views/teacher/index.vue
+++ b/src/views/teacher/index.vue
@@ -742,7 +742,12 @@ const importData = () => {
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
- ElMessage.success("导入失败,已导出错误数据");
+ ElMessage({
+ showClose: true,
+ type: 'warning',
+ message: '导入失败,已导出错误数据.',
+ duration: 0,
+ })
};
try {
fileE.click();
--
2.40.1