File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ let reader,errors;
61
61
let total = 0 ;
62
62
let error_title ;
63
63
let count ;
64
+ let datas ;
64
65
export default {
65
66
namespaced : true ,
66
67
state :{
@@ -346,7 +347,7 @@ export default {
346
347
} ) ;
347
348
error_title = collect ( JSON . parse ( JSON . stringify ( title_desc ) ) ) ;
348
349
error_title . put ( 'error' , i18n . t ( 'Error message' ) ) ; //错误信息
349
- let datas = collect ( options . datas ) . map ( ( item ) => {
350
+ let excel_datas = collect ( options . datas ) . map ( ( item ) => {
350
351
collect ( title_desc ) . each ( ( name , key ) => {
351
352
if ( typeof item [ key ] == "undefined" ) {
352
353
item [ key ] = '' ;
@@ -360,8 +361,8 @@ export default {
360
361
} ) ;
361
362
return item ;
362
363
} ) ;
363
- total = datas . count ( ) ;
364
- datas = datas . chunk ( options . import_per_page || 200 ) ;
364
+ total = excel_datas . count ( ) ;
365
+ datas = excel_datas . chunk ( options . import_per_page || 200 ) ;
365
366
count = datas . count ( ) || 1 ; //总请求数
366
367
data = datas . shift ( ) ; //第一组数据
367
368
if ( ! importCallback ) {
You can’t perform that action at this time.
0 commit comments