批量导入功能bug修改。
This commit is contained in:
parent
e315020e04
commit
bb15f1e84d
@ -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() {
|
||||||
|
@ -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() {
|
||||||
|
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user