国际化

This commit is contained in:
2025-08-27 11:16:49 +08:00
parent 6a1cac2d13
commit 497ba36cc1
25 changed files with 1487 additions and 724 deletions

View File

@@ -44,4 +44,6 @@ export const relocate = (x, y, angle) => post('teaching/relocate?x=' + x + '&y='
// 关机重启
export const rebootVehicle = () => get('vehicle/rebootVehicle', {})
// 同步地图
export const synchronizedMap = () => post('mapInfo/synchronizedMap', {})
export const synchronizedMap = () => post('mapInfo/synchronizedMap', {})
// 错误
export const queryErrorDataByCode = (code) => post('anomalyInfo/queryErrorDataByCode?code=' + code, {})

View File

@@ -3,8 +3,8 @@ export const queryStation = () => {
let res = {
message: 'ok',
data: [
{station_code: 'B1', station_name: 'B1', x: '10', Y: '10', angle: '90'},
{station_code: 'B2', station_name: 'B2', x: '10', Y: '10', angle: '90'},
{station_code: 'B1', station_name: 'Starting position on the first floor Starting position on the first floor', x: '10', Y: '10', angle: '90'},
{station_code: 'B2', station_name: '一楼起点位置一楼起点位置一楼起点位置', x: '10', Y: '10', angle: '90'},
{station_code: 'B3', station_name: 'B3', x: '10', Y: '10', angle: '90'},
{station_code: 'B4', station_name: 'B4', x: '10', Y: '10', angle: '90'},
{station_code: 'B5', station_name: 'B5', x: '10', Y: '10', angle: '90'},
@@ -134,3 +134,62 @@ export const getMappingStatus = () => {
}
return res
}
export const queryErrorDataByCode = (code) => {
let res = {
"error_id": "1",
"error_name": "导航定位失败",
"zh_error_name": '导航定位失败',
"en_error_name": '导航定位error',
"error_code": "1",
"error_category": 1,
"error_description": "出现了定位切换失败",
"zh_error_description": null,
"en_error_description": null,
"error_type": 1,
"graphicDescription": [
{
"error_handling_id": "1",
"error_code": "1",
"error_handling_type": 1,
"error_handling_title": "出现了定位切换失败",
"zh_error_handling_title": '出现了定位切换失败',
"en_error_handling_title": '出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error',
"error_handling_seq": 1,
"error_handling_addre": null
},
{
"error_handling_id": "2",
"error_code": "1",
"error_handling_type": 1,
"error_handling_title": "解决定位",
"zh_error_handling_title": null,
"en_error_handling_title": '出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error',
"error_handling_seq": 2,
"error_handling_addre": null
},
{
"error_handling_id": "3",
"error_code": "1",
"error_handling_type": 1,
"error_handling_title": "解决定位",
"zh_error_handling_title": null,
"en_error_handling_title": '出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error',
"error_handling_seq": 2,
"error_handling_addre": null
}
],
"videoDescription": [
{
"error_handling_id": "3",
"error_code": "1",
"error_handling_type": 2,
"error_handling_title": "大苏打",
"zh_error_handling_title": null,
"en_error_handling_title": null,
"error_handling_seq": 1,
"error_handling_addre": null
}
]
}
return res
}