fix 82592
This commit is contained in:
@@ -625,7 +625,11 @@ module.exports = {
|
||||
onlyUploadPic: '请上传图片',
|
||||
pleaseUpload: '请上传',
|
||||
theFollowingDocuments: 'M以下文件',
|
||||
file: '文件'
|
||||
file: '文件',
|
||||
fileFormatIncorrect: '文件格式不正确',
|
||||
uploadSuccessful: '上传成功',
|
||||
uploadMaximumATime: '一次最多上传二十张图片',
|
||||
deletedSuccessfully: '删除成功',
|
||||
},
|
||||
importWithTemplate: {
|
||||
chooseFile: '选择文件',
|
||||
|
||||
@@ -88,7 +88,7 @@ export default {
|
||||
fileFlag = (fileTypes[0] === fileNowTypes[0])
|
||||
// console.log('filetype',fileFlag)
|
||||
if (!fileFlag) {
|
||||
this.$message.warning(this.$t('fileFormatIncorrect'))
|
||||
this.$message.warning(this.$t('uploadFile.fileFormatIncorrect'))
|
||||
this.fileTypeSatus = false
|
||||
} else {
|
||||
// let thisFileType = this.thisFileType.replace(/\s+/g, "");
|
||||
@@ -140,7 +140,7 @@ export default {
|
||||
}
|
||||
if (this.myFileList.length > 0) {
|
||||
this.$message.destroy()
|
||||
this.$message.success(`${info.file.name} ` + this.$t('deletedSuccessfully'))
|
||||
this.$message.success(`${info.file.name} ` + this.$t('uploadFile.deletedSuccessfully'))
|
||||
}
|
||||
} else if (status === 'done') {
|
||||
this.uploadFileFlag--
|
||||
@@ -149,7 +149,7 @@ export default {
|
||||
console.log('listLength11111', info.fileList.length)
|
||||
if (info.fileList.length > 20) {
|
||||
this.$message.destroy()
|
||||
this.$message.warning(this.$t('uploadMaximumATime'))
|
||||
this.$message.warning(this.$t('uploadFile.uploadMaximumATime'))
|
||||
info.fileList.splice(20)
|
||||
this.myFileList = info.fileList
|
||||
this.myFileList.forEach((res) => {
|
||||
@@ -175,7 +175,7 @@ export default {
|
||||
// console.log('uplossss',this.fileList,fileList)
|
||||
if (this.myFileList.length > 0) {
|
||||
this.$message.destroy()
|
||||
this.$message.success(`${info.file.name} ` + this.$t('uploadSuccessful'))
|
||||
this.$message.success(`${info.file.name} ` + this.$t('uploadFile.uploadSuccessful'))
|
||||
}
|
||||
}
|
||||
} else if (status === 'uploading') {
|
||||
|
||||
Reference in New Issue
Block a user