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