Commit d7546363 by liangzhen

去掉docx

1 parent 03a2859d
...@@ -571,15 +571,14 @@ export default { ...@@ -571,15 +571,14 @@ export default {
this.resetForm(); this.resetForm();
}, },
handleFileUpload(event, row) { handleFileUpload(event, row) {
// ||this.file.type=='application/vnd.openxmlformats-officedocument.wordprocessingml.document'
this.file = event.target.files[0]; this.file = event.target.files[0];
console.log("来了么",this.file); console.log("来了么",this.file);
if(this.file.type=='application/pdf'||this.file.type=='image/png'||this.file.type=='image/jpeg'||this.file.type=='application/vnd.openxmlformats-officedocument.wordprocessingml.document'){ if(this.file.type=='application/pdf'||this.file.type=='image/png'||this.file.type=='image/jpeg'){
this.submitFile(row); this.submitFile(row);
}else{ }else{
console.log( event,' row row row') console.log( event,' row row row')
this.$message('只能上传格式为png、jpeg、pdf、docx文件或图片') this.$message('只能上传格式为png、jpeg、pdf文件或图片')
// this.file.name=''
event.target.value ='' event.target.value =''
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!