This commit is contained in:
2025-08-27 18:30:43 +08:00
parent 9941ba41d6
commit 9816bf152a
4 changed files with 65 additions and 52 deletions

View File

@@ -100,5 +100,10 @@ module.exports = {
PicturesTexts: 'Illustration with Pictures and Texts', PicturesTexts: 'Illustration with Pictures and Texts',
VideoInstructions: 'Video Instructions', VideoInstructions: 'Video Instructions',
Handmethod: 'Handling method', Handmethod: 'Handling method',
stationnotcommas: 'The station name cannot contain English commas.' stationnotcommas: 'The station name cannot contain English commas.',
ErrorPrompt: 'Error Prompt',
Aresuremap: 'Are you sure to synchronize the map?',
Mapbeencancel: 'Map synchronization has been cancelled',
Aresureshutrestart: 'Are you sure you want to shut down and restart?',
shutrestartcancel: 'The operation of shutting down and restarting has been cancelled.'
} }

View File

@@ -100,5 +100,10 @@ module.exports = {
PicturesTexts: '图文说明', PicturesTexts: '图文说明',
VideoInstructions: '视频说明', VideoInstructions: '视频说明',
Handmethod: '处理方法', Handmethod: '处理方法',
stationnotcommas: '站点名称不能包含英文逗号' stationnotcommas: '站点名称不能包含英文逗号',
ErrorPrompt: '错误提示',
Aresuremap: '是否确定同步地图?',
Mapbeencancel: '已取消同步地图',
Aresureshutrestart: '是否确定关机重启?',
shutrestartcancel: '已取消关机重启'
} }

View File

@@ -114,7 +114,7 @@ export default {
done() done()
}, },
toReboot () { toReboot () {
this.$confirm('是否确定关机重启?', this.$t('Prompt'), { this.$confirm(this.$t('Aresureshutrestart'), this.$t('Prompt'), {
confirmButtonText: this.$t('Confirm'), confirmButtonText: this.$t('Confirm'),
cancelButtonText: this.$t('Cancel'), cancelButtonText: this.$t('Cancel'),
type: 'warning' type: 'warning'
@@ -123,7 +123,7 @@ export default {
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
type: 'info', type: 'info',
message: '已取消关机重启' message: this.$t('shutrestartcancel')
}) })
}) })
}, },
@@ -152,7 +152,7 @@ export default {
a.click() a.click()
}, },
synchronizedMapConfirm () { synchronizedMapConfirm () {
this.$confirm('是否确定同步地图?', this.$t('Prompt'), { this.$confirm(this.$t('Aresuremap'), this.$t('Prompt'), {
confirmButtonText: this.$t('Confirm'), confirmButtonText: this.$t('Confirm'),
cancelButtonText: this.$t('Cancel'), cancelButtonText: this.$t('Cancel'),
type: 'warning' type: 'warning'
@@ -161,7 +161,7 @@ export default {
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
type: 'info', type: 'info',
message: '已取消同步地图' message: this.$t('Mapbeencancel')
}) })
}) })
}, },

View File

@@ -27,7 +27,7 @@
<div v-if="exception !== ''" class="error-tips" ref="scrollContainer" @click="$router.push('/index/warning')"> <div v-if="exception !== ''" class="error-tips" ref="scrollContainer" @click="$router.push('/index/warning')">
<div class="zbox scroll-text" ref="scrollText"> <div class="zbox scroll-text" ref="scrollText">
<i class="el-icon-warning icon-warning"></i> <i class="el-icon-warning icon-warning"></i>
<div class="error-tips-t">错误提示{{ exception }}</div> <div class="error-tips-t">{{$t('ErrorPrompt')}}{{ exception }}</div>
</div> </div>
</div> </div>
<el-row type="flex" class="relative main-conatiner" :style="{'paddingTop': exception !== '' ? '.3rem' : '0', 'paddingBottom': taskSeq.length > 0 ? '.6rem': '0'}"> <el-row type="flex" class="relative main-conatiner" :style="{'paddingTop': exception !== '' ? '.3rem' : '0', 'paddingBottom': taskSeq.length > 0 ? '.6rem': '0'}">
@@ -63,51 +63,51 @@ export default {
websocket: null, // WebSocket实例 websocket: null, // WebSocket实例
reconnectTimer: null, // 重连计时器 reconnectTimer: null, // 重连计时器
topInfo: {}, topInfo: {},
topInfo1: { // topInfo: {
batteryPower: -1.0, // batteryPower: -1.0,
exceptionInfo: { // exceptionInfo: {
exception: ['重定位失败,检查环境或标记是否有变化.', '定位超时,尝试移动小车位置后重试.', '定位超时,尝试移动小车位置后重试.', '定位超时,尝试移动小车位置后重试.'], // exception: ['重定位失败,检查环境或标记是否有变化.', '定位超时,尝试移动小车位置后重试.', '定位超时,尝试移动小车位置后重试.', '定位超时,尝试移动小车位置后重试.'],
exceptionCodes: [1, 17179869185, 1335734829057] // exceptionCodes: [1, 17179869185, 1335734829057]
}, // },
id: '1', // 车号ID // id: '1', // 车号ID
ip: '192.168.100.82', // 车辆IP // ip: '192.168.100.82', // 车辆IP
isManual: false, // 是否是手动true是手动,false是自动 // isManual: false, // 是否是手动true是手动,false是自动
mapId: 39, // 地图ID // mapId: 39, // 地图ID
mapName: 'apt_map_1753078481180', // 地图名称 // mapName: 'apt_map_1753078481180', // 地图名称
name: 'V1', // 车辆名称 // name: 'V1', // 车辆名称
state: '未知状态', // 车辆状态 // state: 'Unknown State', // 车辆状态
stateId: 7, // 车辆状态ID // stateId: 7, // 车辆状态ID
theta: 0.9073792099952698, // 车辆航向角 // theta: 0.9073792099952698, // 车辆航向角
x: 0.004027, // 车辆x坐标 // x: 0.004027, // 车辆x坐标
y: -0.001812, // 车辆y坐标 // y: -0.001812, // 车辆y坐标
task_seq: '点位1,点位2,work point 3,顶地方的方法顶顶顶点位3', // task_seq: '点位1,点位2,work point 3,顶地方的方法顶顶顶点位3',
task_point: '点位2', // task_point: '点位2',
anomalyLevel: 1, // anomalyLevel: 1,
errorData: [ // errorData: [
{ // {
"error_id": "1", // "error_id": "1",
"error_name": "导航定位失败", // "error_name": "导航定位失败",
"zh_error_name": '错误1', // "zh_error_name": '错误1',
"en_error_name": 'error1', // "en_error_name": 'error1',
"error_code": "1", // "error_code": "1",
"error_category": 1, // "error_category": 1,
"error_description": "出现了定位切换失败", // "error_description": "出现了定位切换失败",
"zh_error_description": '说明', // "zh_error_description": '说明',
"en_error_description": 'en_error_description', // "en_error_description": 'en_error_description',
"error_type": 1}, // "error_type": 1},
{ // {
"error_id": "2", // "error_id": "2",
"error_name": "重定位超时", // "error_name": "重定位超时",
"zh_error_name": '重定位超时', // "zh_error_name": '重定位超时',
"en_error_name": '重定位超时error', // "en_error_name": '重定位超时error',
"error_code": "2", // "error_code": "2",
"error_category": 1, // "error_category": 1,
"error_description": "出现了重定位超时", // "error_description": "出现了重定位超时",
"zh_error_description": null, // "zh_error_description": null,
"en_error_description": null, // "en_error_description": null,
"error_type": 1} // "error_type": 1}
] // ]
}, // },
taskSeq: [], taskSeq: [],
currentStep: null, currentStep: null,
loginVisible: false, loginVisible: false,
@@ -254,6 +254,9 @@ export default {
margin-right .08rem margin-right .08rem
background center / 100% 100% url(../../images/new/state-item_bg.png) no-repeat background center / 100% 100% url(../../images/new/state-item_bg.png) no-repeat
box-shadow inset 0px 0px 3px 2px rgb(149, 221, 253, 70%) box-shadow inset 0px 0px 3px 2px rgb(149, 221, 253, 70%)
overflow hidden
text-overflow: ellipsis;
white-space: nowrap;
.elec-qty-wrap .elec-qty-wrap
_wh(.6rem, .3rem) _wh(.6rem, .3rem)
margin-right .08rem margin-right .08rem