From b6b3b5fe58a358df042899efb1048ca24acdf870 Mon Sep 17 00:00:00 2001 From: kgdxpr Date: Fri, 19 Jul 2024 15:36:08 +0800 Subject: [PATCH] 'commit' --- WebRoot/view/ywgl/xswh/import.html | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/WebRoot/view/ywgl/xswh/import.html b/WebRoot/view/ywgl/xswh/import.html index a17cbc4f..27e2d7b8 100644 --- a/WebRoot/view/ywgl/xswh/import.html +++ b/WebRoot/view/ywgl/xswh/import.html @@ -37,13 +37,20 @@ 选择文件 -
-
+
+
温馨提示:导入学生需要严格按照导入模板编辑学生信息,请点此下载
+ +
@@ -67,12 +74,17 @@ var $ = layui.jquery; var upload = layui.upload; + var errorUUID = ""; var bureauId = GetQueryString("bureau_id"); $("#downTemplate").click(function () { window.location.href = '/QingLong/student/getImportTemplate?school_id='+bureauId; }); + $("#downError").click(function () { + window.location.href = '/QingLong/student/downloadErrorXls?uuidString=' + errorUUID; + }); + upload.render({ elem: '#selectFile', url: '/QingLong/student/UploadToImportStudent', @@ -88,6 +100,7 @@ done: function (res) { if (res.success) { layer.closeAll('loading'); + $("#error").hide(); layer.msg("上传成功!", { icon: 1, time: 1300 @@ -97,10 +110,13 @@ }); } else { layer.closeAll('loading'); - layer.msg(res.message, { - icon: 2, - time: 2000 - }); + // layer.msg(res.message, { + // icon: 2, + // time: 2000 + // }); + errorUUID = res.uuid; + $("#error").show(); + $("#info").hide(); } } });