导入拆分结果

This commit is contained in:
caoyang
2022-04-01 09:25:13 +08:00
parent 2af0c7beae
commit 3f5ba1fddc
5 changed files with 100 additions and 67 deletions
@@ -50,12 +50,14 @@
methods:{
beforeUpload(file,fileList) {
console.log('file',this.accept)
this.fileTypeSatus=false
if(this.myfileList&&this.myfileList.length>=1){
this.$message.warning('只能上传一个文件')
return false
}else{
// let thisFileType = this.thisFileType.replace(/\s+/g, "");
if(file.type==this.accept){
// console.log('111111')
this.fileTypeSatus = true;
this.$message.destroy()
// 207M.doc文件大小超出100MB限制, 请压缩或降低文件质量!
@@ -69,6 +71,7 @@
},
handleChange(info) {
// console.log('info',info)
let { file,fileList } = info;
const status = info.file.status;
info.fileList.forEach((val,index)=>{