From ae5d7c87841e0e6fff69db635a8e90724fc761fa Mon Sep 17 00:00:00 2001 From: kgdxpr Date: Fri, 19 Jul 2024 15:22:15 +0800 Subject: [PATCH] 'commit' --- WebRoot/view/ywgl/rywh/import.html | 28 ++++++++++++++++++++++------ WebRoot/view/ywgl/rywh/index.html | 2 +- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/WebRoot/view/ywgl/rywh/import.html b/WebRoot/view/ywgl/rywh/import.html index a12c09ad..7ed13094 100644 --- a/WebRoot/view/ywgl/rywh/import.html +++ b/WebRoot/view/ywgl/rywh/import.html @@ -37,12 +37,18 @@ 选择文件 -
-
+
+
温馨提示:导入教工需要严格按照导入模板编辑教工信息,请点此下载
+
@@ -67,12 +73,18 @@ var $ = layui.jquery; var upload = layui.upload; + var errorUUID = ""; + var bureauId = GetQueryString("bureau_id"); $("#downTemplate").click(function () { window.location.href = '/QingLong/teacher/getImportTemplate'; }); + $("#downError").click(function () { + window.location.href = '/QingLong/teacher/downloadErrorXls?uuidString=' + errorUUID; + }); + upload.render({ elem: '#selectFile', url: '/QingLong/teacher/UploadToImportTeacher', @@ -88,6 +100,7 @@ done: function (res) { if (res.success) { layer.closeAll('loading'); + $("#error").hide(); layer.msg("上传成功!", { icon: 1, time: 1300 @@ -98,10 +111,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(); } } }); diff --git a/WebRoot/view/ywgl/rywh/index.html b/WebRoot/view/ywgl/rywh/index.html index c5aaac01..7c904fe0 100644 --- a/WebRoot/view/ywgl/rywh/index.html +++ b/WebRoot/view/ywgl/rywh/index.html @@ -278,7 +278,7 @@ type: 2, title: '导入Excel', shade: 0.1, - area: ['510px', '240px'], + area: ['550px', '240px'], content: './import.html?bureau_id=' + bureauId + '&identity=1' }); break;