This commit is contained in:
2026-01-05 16:58:26 +08:00
parent e00e1e3dc8
commit 042fd6dc5b
3 changed files with 15 additions and 7 deletions

View File

@@ -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'
}

View File

@@ -139,5 +139,9 @@ module.exports = {
reversePath: '后退路径',
bidirectionalPath: '双向路径',
closed: '关闭',
reversingabnormalitiesneedtoclose: '车辆正在自动回退,关闭可能会导致建图异常,是否需要关闭?'
reversingabnormalitiesneedtoclose: '车辆正在自动回退,关闭可能会导致建图异常,是否需要关闭?',
settings: '设置',
entertaskchainname: '请输入任务链名称',
taskchainnotempty: '任务链名称不能为空',
taskchainname: '任务链名称'
}

View File

@@ -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