简历上传文件部分国际化
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
2d91053668
commit
2e30461e2e
|
@ -99,7 +99,7 @@ export default {
|
|||
this.btnDisabled = false
|
||||
if (res.IsSuccess) {
|
||||
this.fileList[0].id = res.Result[0].Id
|
||||
this.$message.success('Uploaded successfully')
|
||||
this.$message.success(this.$t('trials:uploadDicomList:table:Uploaded'))
|
||||
this.$emit('getFileList', res.Result[0].Id, res.Result[0].Path)
|
||||
}
|
||||
})
|
||||
|
@ -113,13 +113,13 @@ export default {
|
|||
if (isValidFile) {
|
||||
this.fileList = []
|
||||
} else {
|
||||
this.$alert('must be in pdf format')
|
||||
this.$alert(this.$t('upload:rule:MUSTPDF'))
|
||||
return false
|
||||
}
|
||||
},
|
||||
beforeRemove(file, fileList) {
|
||||
if (file && file.status === 'success') {
|
||||
return this.$confirm(`Sure to remove ${file.name}?`)
|
||||
return this.$confirm(this.$t('system:reviewer:confirm:delete'))
|
||||
}
|
||||
},
|
||||
handleRemoveFile(file, fileList) {
|
||||
|
@ -146,7 +146,7 @@ export default {
|
|||
}
|
||||
},
|
||||
handleExceed(files, fileList) {
|
||||
this.$message.warning(`Upload is currently limited to 1 file`)
|
||||
this.$message.warning(this.$t('upload:rule:maxFile1'))
|
||||
},
|
||||
fileValid(fileName, typeArr) {
|
||||
var extendName = fileName.substring(fileName.lastIndexOf('.') + 1).toLocaleLowerCase()
|
||||
|
|
|
@ -163,7 +163,9 @@ export default {
|
|||
.then((res) => {
|
||||
this.fileList = this.formatterFileList(res.Result)
|
||||
this.isDisabled = false
|
||||
this.$message.success('Uploaded successfully')
|
||||
this.$message.success(
|
||||
this.$t('trials:uploadDicomList:table:Uploaded')
|
||||
)
|
||||
this.$emit('getFileList', this.fileList)
|
||||
})
|
||||
.catch(() => {
|
||||
|
|
|
@ -994,7 +994,7 @@ export default {
|
|||
}
|
||||
},
|
||||
handleExceed(files, fileList) {
|
||||
this.$message.warning(`Upload is currently limited to 1 file`)
|
||||
this.$message.warning(this.$t('upload:rule:maxFile1'))
|
||||
},
|
||||
initFileList() {
|
||||
if (!this.reviewerId) return
|
||||
|
|
Loading…
Reference in New Issue