翻译
This commit is contained in:
@@ -139,5 +139,9 @@ module.exports = {
|
||||
reversePath: 'Reverse Path',
|
||||
bidirectionalPath: 'Bidirectional Path',
|
||||
closed: 'Close',
|
||||
reversingabnormalitiesneedtoclose: 'The vehicle is automatically reversing. Closing it may cause mapping abnormalities. Do you need to close it?'
|
||||
reversingabnormalitiesneedtoclose: 'The vehicle is automatically reversing. Closing it may cause mapping abnormalities. Do you need to close it?',
|
||||
settings: 'Settings',
|
||||
entertaskchainname: 'Please enter the task chain name',
|
||||
taskchainnotempty: 'The task chain name cannot be empty',
|
||||
taskchainname: 'Task Chain Name'
|
||||
}
|
||||
|
||||
@@ -139,5 +139,9 @@ module.exports = {
|
||||
reversePath: '后退路径',
|
||||
bidirectionalPath: '双向路径',
|
||||
closed: '关闭',
|
||||
reversingabnormalitiesneedtoclose: '车辆正在自动回退,关闭可能会导致建图异常,是否需要关闭?'
|
||||
reversingabnormalitiesneedtoclose: '车辆正在自动回退,关闭可能会导致建图异常,是否需要关闭?',
|
||||
settings: '设置',
|
||||
entertaskchainname: '请输入任务链名称',
|
||||
taskchainnotempty: '任务链名称不能为空',
|
||||
taskchainname: '任务链名称'
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
title="设置"
|
||||
:title="$t('settings')"
|
||||
:visible.sync="dialogVisible"
|
||||
width="55%"
|
||||
:before-close="handleClose">
|
||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" size="mini">
|
||||
<el-form-item label="任务链名称" prop="chain">
|
||||
<el-input placeholder="请输入任务链名称" v-model="dataForm.chain" id="chain"></el-input>
|
||||
<el-form-item :label="$t('taskchainname')" prop="chain">
|
||||
<el-input :placeholder="$t('entertaskchainname')" v-model="dataForm.chain" id="chain"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-row type="flex" justify="space-around" style="margin-top: .3rem">
|
||||
@@ -26,7 +26,7 @@ export default {
|
||||
},
|
||||
dataRule: {
|
||||
chain: [
|
||||
{ required: true, message: '任务链名称不能为空', trigger: 'blur' }
|
||||
{ required: true, message: this.$t('taskchainnotempty'), trigger: 'blur' }
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -41,7 +41,7 @@ export default {
|
||||
},
|
||||
dataFormSubmit () {
|
||||
if (this.dataForm.chain === '') {
|
||||
this.$message.error('任务链名称不能为空')
|
||||
this.$message.error(this.$t('taskchainnotempty'))
|
||||
return
|
||||
}
|
||||
this.dialogVisible = false
|
||||
|
||||
Reference in New Issue
Block a user