| | |
| | | }); |
| | | } |
| | | ,done: function(res, index, upload){ //成功的回调 |
| | | element.progress('progress-demo-'+ index, '100%'); //执行进度条。n 即为返回的进度百分比 |
| | | layer.msg('上传成功', {icon: 1}); |
| | | $("#progress-id-" + index).html("已完成") |
| | | if (res.code == 200) { |
| | | element.progress('progress-demo-'+ index, '100%'); //执行进度条。n 即为返回的进度百分比 |
| | | layer.msg('上传成功', {icon: 1}); |
| | | $("#progress-id-" + index).html("已完成") |
| | | }else { |
| | | element.progress('progress-demo-'+ index, '100%'); //执行进度条。n 即为返回的进度百分比 |
| | | layer.msg('上传失败', {icon: 2}); |
| | | $("#progress-id-" + index).html("上传失败") |
| | | } |
| | | var that = this; |
| | | //if(res.code == 0){ //上传成功 |
| | | var tr = that.elemList.find('tr#upload-'+ index) |