diff --git a/web/src/main/resources/templates/jlw/schoolClass/importPage.html b/web/src/main/resources/templates/jlw/schoolClass/importPage.html
index e3da5f7d..c02c1a9f 100644
--- a/web/src/main/resources/templates/jlw/schoolClass/importPage.html
+++ b/web/src/main/resources/templates/jlw/schoolClass/importPage.html
@@ -48,7 +48,7 @@
序号 |
提示信息 |
- 操作 |
+
@@ -59,12 +59,12 @@
{{# layui.each(d.list, function(index, item){ }}
{{index + 1}} |
- {{item[0]}} |
-
- {{#if(item.length ==2){}}
- 删除
- {{#}}}
- |
+ {{item.failMessage}} |
+
+
+
+
+
{{# }); }}
@@ -96,19 +96,17 @@
},
done: function (res, index, upload) { //上传后的回调
layer.closeAll('loading');
- parent.window.dataReload();
- localStorage.setItem($.getKeyInfo("studentLocal"), JSON.stringify(res.data)); //存入本次导入出现错误的数据
-
- var getTpl = demo.innerHTML
- ,view = document.getElementById('view');
- laytpl(getTpl).render({list:res.data}, function(html){
- view.innerHTML = html;
- $(".del").click(deleteInfo);
- });
if (res.code == 0) {
+ parent.window.dataReload();
layer.msg(res.msg, {icon: 1});
} else {
- layer.msg(res.msg, {icon: 2});
+ // localStorage.setItem($.getKeyInfo("studentLocal"), JSON.stringify(res.msg)); //存入本次导入出现错误的数据
+ var getTpl = demo.innerHTML
+ ,view = document.getElementById('view');
+ laytpl(getTpl).render({list:JSON.parse(res.msg)}, function(html){
+ view.innerHTML = html;
+ $(".del").click(deleteInfo);
+ });
}
},
error: function () { //请求异常回调