mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 22:35:21 +00:00
perf: 文件传输提示优化
This commit is contained in:
@@ -1190,7 +1190,8 @@
|
||||
"uploadFileLthHelpText": "Only files smaller than {limit}MB can be uploaded",
|
||||
"FileSizeExceedsLimit": "File size exceeds limit",
|
||||
"runSucceed": "Task executed successfully",
|
||||
"EnterUploadPath": "Enter the upload path"
|
||||
"EnterUploadPath": "Enter the upload path",
|
||||
"FileNameTooLong": "File name too long"
|
||||
},
|
||||
"perms": {
|
||||
"": "",
|
||||
|
||||
@@ -1188,7 +1188,8 @@
|
||||
"uploadFileLthHelpText": "{limit}MB 未満のファイルのみアップロードできます",
|
||||
"FileSizeExceedsLimit": "ファイルサイズが制限を超えています",
|
||||
"runSucceed": "タスクが成功しました",
|
||||
"EnterUploadPath": "アップロードパスを入力してください"
|
||||
"EnterUploadPath": "アップロードパスを入力してください",
|
||||
"FileNameTooLong": "ファイル名が長すぎます"
|
||||
},
|
||||
"perms": {
|
||||
"": "",
|
||||
|
||||
@@ -1177,7 +1177,8 @@
|
||||
"uploadFileLthHelpText": "只能上传小于{limit}MB文件",
|
||||
"FileSizeExceedsLimit": "文件大小超出限制",
|
||||
"runSucceed": "任务执行成功",
|
||||
"EnterUploadPath": "输入上传路径"
|
||||
"EnterUploadPath": "输入上传路径",
|
||||
"FileNameTooLong": "文件名太长"
|
||||
},
|
||||
"perms": {
|
||||
"": "",
|
||||
|
||||
@@ -370,8 +370,12 @@ export default {
|
||||
if (this.IsFileExceedsLimit(file)) {
|
||||
return
|
||||
}
|
||||
if (file.name.length > 128) {
|
||||
this.$message.error(file.name + ' ' + this.$tc('ops.FileNameTooLong'))
|
||||
return
|
||||
}
|
||||
}
|
||||
if (!this.uploadFileList) {
|
||||
if (this.uploadFileList.length === 0) {
|
||||
this.$message.error(this.$tc('ops.RequiredUploadFile'))
|
||||
return
|
||||
}
|
||||
@@ -417,7 +421,6 @@ export default {
|
||||
this.executionInfo.timeCost = 0
|
||||
this.executionInfo.status = 'running'
|
||||
this.currentTaskId = res.task_id
|
||||
this.$router.replace({ query: { taskId: this.currentTaskId }})
|
||||
this.setCostTimeInterval()
|
||||
this.writeExecutionOutput()
|
||||
}).catch(() => {
|
||||
|
||||
Reference in New Issue
Block a user