|
@@ -167,6 +167,17 @@
|
|
if (this.commonJS.isEmpty(fileList)) {
|
|
if (this.commonJS.isEmpty(fileList)) {
|
|
this.fileLoading = true
|
|
this.fileLoading = true
|
|
} else {
|
|
} else {
|
|
|
|
+ fileList.forEach((item)=>{
|
|
|
|
+ let suffix = item.name.substring(item.name.lastIndexOf('.') + 1)
|
|
|
|
+ if (suffix === 'pdf' || suffix === 'doc' || suffix === 'docx' || suffix === 'xls' || suffix === 'xlsx') {
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error('只有“pdf、doc、docx、xls、xlsx”格式文件的类型可以上传')
|
|
|
|
+ this.dataListNew = []
|
|
|
|
+ this.dataList=[]
|
|
|
|
+ this.clearUpload()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
this.dataListLength = fileList.length
|
|
this.dataListLength = fileList.length
|
|
}
|
|
}
|
|
if (this.commonJS.isEmpty(dividerName)) {
|
|
if (this.commonJS.isEmpty(dividerName)) {
|
|
@@ -273,6 +284,7 @@
|
|
} else {
|
|
} else {
|
|
this.$message.error('只有“pdf、doc、docx、xls、xlsx”格式文件的类型可以上传')
|
|
this.$message.error('只有“pdf、doc、docx、xls、xlsx”格式文件的类型可以上传')
|
|
this.dataListNew = []
|
|
this.dataListNew = []
|
|
|
|
+ this.dataList = []
|
|
return
|
|
return
|
|
}
|
|
}
|
|
})
|
|
})
|