批量导入功能bug修改。
This commit is contained in:
parent
e315020e04
commit
bb15f1e84d
@ -75,7 +75,7 @@
|
||||
var uploadLoading;
|
||||
layui.upload.render({
|
||||
elem: '#importExcel'
|
||||
,url: 'api/overseaspersonnel/importexcel'
|
||||
,url: 'api/floatingpopulation/importexcel'
|
||||
,accept: 'file'
|
||||
,exts: 'xls|xlsx'
|
||||
,before: function() {
|
||||
@ -85,7 +85,7 @@
|
||||
layer.close(uploadLoading);
|
||||
if(data.data != 'success') {
|
||||
layer.msg('导入成功,存在' + data.data + '条失败数据', {time: 2000}, function() {
|
||||
window.open(top.restAjax.path('api/overseaspersonnel/exportexcel', []));
|
||||
window.open(top.restAjax.path('api/floatingpopulation/exportexcel', []));
|
||||
});
|
||||
} else {
|
||||
layer.msg('导入成功', {time: 2000}, function() {
|
||||
|
@ -75,7 +75,7 @@
|
||||
var uploadLoading;
|
||||
layui.upload.render({
|
||||
elem: '#importExcel'
|
||||
,url: 'api/overseaspersonnel/importexcel'
|
||||
,url: 'api/homeperson/importexcel'
|
||||
,accept: 'file'
|
||||
,exts: 'xls|xlsx'
|
||||
,before: function() {
|
||||
@ -85,7 +85,7 @@
|
||||
layer.close(uploadLoading);
|
||||
if(data.data != 'success') {
|
||||
layer.msg('导入成功,存在' + data.data + '条失败数据', {time: 2000}, function() {
|
||||
window.open(top.restAjax.path('api/overseaspersonnel/exportexcel', []));
|
||||
window.open(top.restAjax.path('api/homeperson/exportexcel', []));
|
||||
});
|
||||
} else {
|
||||
layer.msg('导入成功', {time: 2000}, function() {
|
||||
|
@ -75,7 +75,7 @@
|
||||
var uploadLoading;
|
||||
layui.upload.render({
|
||||
elem: '#importExcel'
|
||||
,url: 'api/overseaspersonnel/importexcel'
|
||||
,url: 'api/keyteenagers/importexcel'
|
||||
,accept: 'file'
|
||||
,exts: 'xls|xlsx'
|
||||
,before: function() {
|
||||
@ -85,7 +85,7 @@
|
||||
layer.close(uploadLoading);
|
||||
if(data.data != 'success') {
|
||||
layer.msg('导入成功,存在' + data.data + '条失败数据', {time: 2000}, function() {
|
||||
window.open(top.restAjax.path('api/overseaspersonnel/exportexcel', []));
|
||||
window.open(top.restAjax.path('api/keyteenagers/exportexcel', []));
|
||||
});
|
||||
} else {
|
||||
layer.msg('导入成功', {time: 2000}, function() {
|
||||
|
Loading…
Reference in New Issue
Block a user