批量导入功能bug修改。

This commit is contained in:
Renpc-kilig 2021-03-04 17:51:12 +08:00
parent e315020e04
commit bb15f1e84d
3 changed files with 6 additions and 6 deletions

View File

@ -75,7 +75,7 @@
var uploadLoading; var uploadLoading;
layui.upload.render({ layui.upload.render({
elem: '#importExcel' elem: '#importExcel'
,url: 'api/overseaspersonnel/importexcel' ,url: 'api/floatingpopulation/importexcel'
,accept: 'file' ,accept: 'file'
,exts: 'xls|xlsx' ,exts: 'xls|xlsx'
,before: function() { ,before: function() {
@ -85,7 +85,7 @@
layer.close(uploadLoading); layer.close(uploadLoading);
if(data.data != 'success') { if(data.data != 'success') {
layer.msg('导入成功,存在' + data.data + '条失败数据', {time: 2000}, function() { layer.msg('导入成功,存在' + data.data + '条失败数据', {time: 2000}, function() {
window.open(top.restAjax.path('api/overseaspersonnel/exportexcel', [])); window.open(top.restAjax.path('api/floatingpopulation/exportexcel', []));
}); });
} else { } else {
layer.msg('导入成功', {time: 2000}, function() { layer.msg('导入成功', {time: 2000}, function() {

View File

@ -75,7 +75,7 @@
var uploadLoading; var uploadLoading;
layui.upload.render({ layui.upload.render({
elem: '#importExcel' elem: '#importExcel'
,url: 'api/overseaspersonnel/importexcel' ,url: 'api/homeperson/importexcel'
,accept: 'file' ,accept: 'file'
,exts: 'xls|xlsx' ,exts: 'xls|xlsx'
,before: function() { ,before: function() {
@ -85,7 +85,7 @@
layer.close(uploadLoading); layer.close(uploadLoading);
if(data.data != 'success') { if(data.data != 'success') {
layer.msg('导入成功,存在' + data.data + '条失败数据', {time: 2000}, function() { layer.msg('导入成功,存在' + data.data + '条失败数据', {time: 2000}, function() {
window.open(top.restAjax.path('api/overseaspersonnel/exportexcel', [])); window.open(top.restAjax.path('api/homeperson/exportexcel', []));
}); });
} else { } else {
layer.msg('导入成功', {time: 2000}, function() { layer.msg('导入成功', {time: 2000}, function() {

View File

@ -75,7 +75,7 @@
var uploadLoading; var uploadLoading;
layui.upload.render({ layui.upload.render({
elem: '#importExcel' elem: '#importExcel'
,url: 'api/overseaspersonnel/importexcel' ,url: 'api/keyteenagers/importexcel'
,accept: 'file' ,accept: 'file'
,exts: 'xls|xlsx' ,exts: 'xls|xlsx'
,before: function() { ,before: function() {
@ -85,7 +85,7 @@
layer.close(uploadLoading); layer.close(uploadLoading);
if(data.data != 'success') { if(data.data != 'success') {
layer.msg('导入成功,存在' + data.data + '条失败数据', {time: 2000}, function() { layer.msg('导入成功,存在' + data.data + '条失败数据', {time: 2000}, function() {
window.open(top.restAjax.path('api/overseaspersonnel/exportexcel', [])); window.open(top.restAjax.path('api/keyteenagers/exportexcel', []));
}); });
} else { } else {
layer.msg('导入成功', {time: 2000}, function() { layer.msg('导入成功', {time: 2000}, function() {