修复注册姓名校验失效问题,修复文件上传无法回调问题

This commit is contained in:
2018-05-01 14:12:09 +08:00
parent b8d9749139
commit 3b62e78c66
9 changed files with 171 additions and 133 deletions

View File

@@ -297,10 +297,21 @@ var Main = {
handleClick(row) {
console.log(row.colfileid);
},
uploadSuccess (response, file, fileList) {
let that = this;
if (file.status==="success"){
that.openNotiSuccess("成功", file.name+"上传成功!");
}else{
that.openNotiError("失败", file.name+"上传失败!");
}
/* console.log('response', response);
console.log('file',file,fileList);
console.log('fileList',fileList);
console.log("信息"+file.status+"|"+file.name)*/
},
submitUpload() {
let that = this;
this.$refs.upload.submit();
this.openNotiSuccess("成功", "文件上传成功!");
setTimeout(function () {
that.getFileList();
}, 1000);