// bulk import injection event parameters passed upload.render ({ elem: '#ImportViewRoomFile' , URL: the Url + '/ houseFloorRoom / addExcel' , Accept: 'File' // normal file , Data: { companyId: function () { return companyId; }, manageAreaId: function () { return $ ( '# addManageAreaId2' ) .val (); }, manageAreaName: function () { return $ ( '# addManageAreaId2') Find ( "Option: Selected." ) .text (); }, USERPHONE: USER_PHONE, the userPassword: user_password } , DONE: function (RES, index, Upload) { the console.log (RES) // assumed code = 200 representative of successful upload IF (== 200 is res.code ) { layer.msg ( ' ! added successfully ' , { offset: ' 125px ' , icon: . 1 , Time: 800 // 1 second after the jump }, function () { layer.closeAll (); // close all the popup // Add after successful refresh parent interface window.location.reload (); }); } The else { // failure layer.msg ( 'add failed!' , { Offset: '125px' , icon: . 1 }, function () { layer.closeAll (); // close all the popup // Once added to refresh the parent interface window.location.reload (); }); } } });