简历上传文件部分国际化
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2024-11-29 09:34:18 +08:00
parent 2d91053668
commit 2e30461e2e
3 changed files with 8 additions and 6 deletions

View File

@ -99,7 +99,7 @@ export default {
this.btnDisabled = false this.btnDisabled = false
if (res.IsSuccess) { if (res.IsSuccess) {
this.fileList[0].id = res.Result[0].Id 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) this.$emit('getFileList', res.Result[0].Id, res.Result[0].Path)
} }
}) })
@ -113,13 +113,13 @@ export default {
if (isValidFile) { if (isValidFile) {
this.fileList = [] this.fileList = []
} else { } else {
this.$alert('must be in pdf format') this.$alert(this.$t('upload:rule:MUSTPDF'))
return false return false
} }
}, },
beforeRemove(file, fileList) { beforeRemove(file, fileList) {
if (file && file.status === 'success') { 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) { handleRemoveFile(file, fileList) {
@ -146,7 +146,7 @@ export default {
} }
}, },
handleExceed(files, fileList) { handleExceed(files, fileList) {
this.$message.warning(`Upload is currently limited to 1 file`) this.$message.warning(this.$t('upload:rule:maxFile1'))
}, },
fileValid(fileName, typeArr) { fileValid(fileName, typeArr) {
var extendName = fileName.substring(fileName.lastIndexOf('.') + 1).toLocaleLowerCase() var extendName = fileName.substring(fileName.lastIndexOf('.') + 1).toLocaleLowerCase()

View File

@ -163,7 +163,9 @@ export default {
.then((res) => { .then((res) => {
this.fileList = this.formatterFileList(res.Result) this.fileList = this.formatterFileList(res.Result)
this.isDisabled = false this.isDisabled = false
this.$message.success('Uploaded successfully') this.$message.success(
this.$t('trials:uploadDicomList:table:Uploaded')
)
this.$emit('getFileList', this.fileList) this.$emit('getFileList', this.fileList)
}) })
.catch(() => { .catch(() => {

View File

@ -994,7 +994,7 @@ export default {
} }
}, },
handleExceed(files, fileList) { handleExceed(files, fileList) {
this.$message.warning(`Upload is currently limited to 1 file`) this.$message.warning(this.$t('upload:rule:maxFile1'))
}, },
initFileList() { initFileList() {
if (!this.reviewerId) return if (!this.reviewerId) return