拆分条款详情修改

This commit is contained in:
caoyang
2022-04-09 20:24:46 +08:00
parent 7d9dc44461
commit e08332d385
11 changed files with 230 additions and 111 deletions
+6 -6
View File
@@ -52,7 +52,7 @@
// console.log('file',this.accept)
this.fileTypeSatus=false
if(this.myfileList&&this.myfileList.length>=1){
this.$message.warning('只能上传一个文件')
this.$message.warning(this.$t('onlyOnefileUploaded'))
return false
}else{
// let thisFileType = this.thisFileType.replace(/\s+/g, "");
@@ -88,7 +88,7 @@
if (status === 'error') {
this.$emit('uploadSuccess', this.fileList)
this.$message.destroy()
this.$message.error(`${info.file.name} 文件上传失败。`);
this.$message.error(`${info.file.name}`+this.$t('fileUploadFailed'));
} else if (status === 'removed') {
this.myfileList = info.fileList;
this.fileList = []
@@ -102,7 +102,7 @@
// console.log('remove',this.fileList)
this.$emit('uploadSuccess', this.fileList)
this.$message.destroy()
this.$message.success(`${info.file.name} 删除成功。`);
this.$message.success(`${info.file.name}`+this.$t('deletedSuccessfully'));
} else if (status === 'done') {
this.fileList = []
this.myfileList = info.fileList;
@@ -121,7 +121,7 @@
// console.log('file1111',this.fileList)
this.$emit('uploadSuccess', this.fileList)
this.$message.destroy()
this.$message.error('最多只能上传一个文件');
this.$message.error(this.$t('onlyOnefileUploaded'));
return
}
// console.log('my222',this.myfileList)
@@ -137,7 +137,7 @@
if(this.myfileList.length > 0){
this.$emit('uploadSuccess', this.fileList)
this.$message.destroy()
this.$message.success(`${info.file.name} 文件上传成功。`);
this.$message.success(`${info.file.name}`+this.$t('fileUploadFailed'));
}
} else if (status === 'uploading') {
this.myfileList = info.fileList;
@@ -146,7 +146,7 @@
}
}
}else{
this.$message.warning('不支持上传该类型的文件!')
this.$message.warning(this.$t('typeCannotUploaded'))
}
},
}