858 lines
23 KiB
JavaScript
858 lines
23 KiB
JavaScript
/* eslint-disable */
|
|
export const authlogin = (username, password) => {
|
|
let res = {
|
|
"code":200,
|
|
"msg":"ok",
|
|
"data":{
|
|
user:{"user_id":"1","userName":"admin","password":"dlfjlfjl"},
|
|
"token":"aaa"
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
export const queryStation = () => {
|
|
let res = {
|
|
message: 'ok',
|
|
data: [
|
|
{station_id: 'B1', station_code: 'B1', station_name: 'Starting position on the first floor Starting position on the first floor', x: '10', Y: '10', angle: '90'},
|
|
{station_id: 'B2', station_code: 'B2', station_name: '一楼起点位置一楼起点位置一楼起点位置', x: '10', Y: '10', angle: '90'},
|
|
{station_id: 'B3', station_code: 'B3', station_name: 'B3', x: '10', Y: '10', angle: '90'},
|
|
{station_id: 'B4', station_code: 'B4', station_name: 'B4', x: '10', Y: '10', angle: '90'},
|
|
{station_id: 'B5', station_code: 'B5', station_name: 'B5', x: '10', Y: '10', angle: '90'},
|
|
{station_id: 'B6', station_code: 'B6', station_name: 'B6', x: '10', Y: '10', angle: '90'},
|
|
{station_id: 'B7', station_code: 'B7', station_name: 'B7', x: '10', Y: '10', angle: '90'},
|
|
{station_id: 'B8', station_code: 'B8', station_name: 'B8', x: '10', Y: '10', angle: '90'},
|
|
{station_id: 'B9', station_code: 'B9', station_name: 'B9', x: '10', Y: '10', angle: '90'},
|
|
{station_id: 'B10', station_code: 'B10', station_name: 'B10', x: '10', Y: '10', angle: '90'},
|
|
{station_id: 'B11', station_code: 'B11', station_name: 'B11', x: '10', Y: '10', angle: '90'},
|
|
{station_id: 'B12', station_code: 'B12', station_name: 'B12', x: '10', Y: '10', angle: '90'},
|
|
{station_id: 'B13', station_code: 'B13', station_name: 'B13', x: '10', Y: '10', angle: '90'},
|
|
{station_id: 'B14', station_code: 'B14', station_name: 'B14', x: '10', Y: '10', angle: '90'}
|
|
]
|
|
}
|
|
return res
|
|
}
|
|
export const queryTaskChain = () => {
|
|
let res = {
|
|
message: 'ok',
|
|
data: [{chain_id: '1', chain_point: 'A-B-C', chain_name: 'A-B-C', action_type: 'Ascend-Descend-Move'}]
|
|
}
|
|
return res
|
|
}
|
|
export const updateStation = () => {
|
|
let res = {
|
|
message: 'ok'
|
|
}
|
|
return res
|
|
}
|
|
export const queryMapAllStation = () => {
|
|
let res = [
|
|
{
|
|
"station_id": 1,
|
|
"station_code": "A",
|
|
"station_name": "起点",
|
|
"station_type": "Station",
|
|
"action_type": "Customize",
|
|
"x": 1.20309,
|
|
"y": -0.238922,
|
|
"angle": -0.006407
|
|
},
|
|
{
|
|
"station_id": 2,
|
|
"station_code": "Goal_0_1",
|
|
"station_name": "Goal_0_1",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 4.01522,
|
|
"y": 0.062834,
|
|
"angle": -0.006407
|
|
},
|
|
{
|
|
"station_id": 3,
|
|
"station_code": "Goal_110",
|
|
"station_name": "Goal_110",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 7.99832,
|
|
"y": 0.134056,
|
|
"angle": -0.053431
|
|
},
|
|
{
|
|
"station_id": 4,
|
|
"station_code": "Goal_176",
|
|
"station_name": "Goal_176",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 5.10127,
|
|
"y": -3.07691,
|
|
"angle": 1.61271
|
|
},
|
|
{
|
|
"station_id": 5,
|
|
"station_code": "Goal_383",
|
|
"station_name": "Goal_383",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 14.5274,
|
|
"y": 0.03366,
|
|
"angle": 0.013351
|
|
},
|
|
{
|
|
"station_id": 6,
|
|
"station_code": "Goal_410",
|
|
"station_name": "Goal_410",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 12.6986,
|
|
"y": 0.770049,
|
|
"angle": -0.86102
|
|
},
|
|
{
|
|
"station_id": 7,
|
|
"station_code": "Goal_427",
|
|
"station_name": "Goal_427",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 12.2807,
|
|
"y": 1.59568,
|
|
"angle": -1.37231
|
|
},
|
|
{
|
|
"station_id": 8,
|
|
"station_code": "Goal_491",
|
|
"station_name": "Goal_491",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 15.4681,
|
|
"y": 0.438255,
|
|
"angle": -0.114802
|
|
},
|
|
{
|
|
"station_id": 9,
|
|
"station_code": "Goal_492",
|
|
"station_name": "Goal_492",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 16.7354,
|
|
"y": 0.366603,
|
|
"angle": 0.031423
|
|
},
|
|
{
|
|
"station_id": 10,
|
|
"station_code": "Goal_492_1",
|
|
"station_name": "Goal_492_1",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 20.2118,
|
|
"y": 0.675766,
|
|
"angle": 0.031423
|
|
},
|
|
{
|
|
"station_id": 11,
|
|
"station_code": "Goal_492_2",
|
|
"station_name": "Goal_492_2",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 23.6881,
|
|
"y": 0.98493,
|
|
"angle": 0.031423
|
|
},
|
|
{
|
|
"station_id": 12,
|
|
"station_code": "Goal_492_3",
|
|
"station_name": "Goal_492_3",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 27.1645,
|
|
"y": 1.29409,
|
|
"angle": 0.031423
|
|
},
|
|
{
|
|
"station_id": 13,
|
|
"station_code": "Goal_671",
|
|
"station_name": "Goal_671",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 30.6409,
|
|
"y": 1.60326,
|
|
"angle": 0.01186
|
|
},
|
|
{
|
|
"station_id": 14,
|
|
"station_code": "Goal_698",
|
|
"station_name": "Goal_698",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 28.635,
|
|
"y": 1.82256,
|
|
"angle": -0.262026
|
|
},
|
|
{
|
|
"station_id": 15,
|
|
"station_code": "Goal_732",
|
|
"station_name": "Goal_732",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 27.2028,
|
|
"y": 3.34653,
|
|
"angle": -1.65472
|
|
},
|
|
{
|
|
"station_id": 16,
|
|
"station_code": "B3autoexit",
|
|
"station_name": "11",
|
|
"station_type": "Station",
|
|
"action_type": "Customize",
|
|
"x": 27.3059,
|
|
"y": 4.42557,
|
|
"angle": -1.60744
|
|
},
|
|
{
|
|
"station_id": 17,
|
|
"station_code": "Goal_770",
|
|
"station_name": "Goal_770",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 27.1454,
|
|
"y": 2.76668,
|
|
"angle": -1.88084
|
|
},
|
|
{
|
|
"station_id": 18,
|
|
"station_code": "Goal_810",
|
|
"station_name": "Goal_810",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 24.5172,
|
|
"y": 1.17209,
|
|
"angle": -2.97125
|
|
},
|
|
{
|
|
"station_id": 19,
|
|
"station_code": "Goal_810_1",
|
|
"station_name": "Goal_810_1",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 21.2668,
|
|
"y": 0.891475,
|
|
"angle": -2.97125
|
|
},
|
|
{
|
|
"station_id": 20,
|
|
"station_code": "Goal_810_2",
|
|
"station_name": "Goal_810_2",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 18.0164,
|
|
"y": 0.610859,
|
|
"angle": -2.97125
|
|
},
|
|
{
|
|
"station_id": 21,
|
|
"station_code": "Goal_810_3",
|
|
"station_name": "Goal_810_3",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 14.7661,
|
|
"y": 0.330243,
|
|
"angle": -2.97125
|
|
},
|
|
{
|
|
"station_id": 22,
|
|
"station_code": "Goal_810_4",
|
|
"station_name": "Goal_810_4",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 11.5157,
|
|
"y": 0.049627,
|
|
"angle": -2.97125
|
|
},
|
|
{
|
|
"station_id": 23,
|
|
"station_code": "Goal_810_5",
|
|
"station_name": "Goal_810_5",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 8.26531,
|
|
"y": -0.23099,
|
|
"angle": -2.97125
|
|
},
|
|
{
|
|
"station_id": 24,
|
|
"station_code": "Goal_1025",
|
|
"station_name": "Goal_1025",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 5.01493,
|
|
"y": -0.511606,
|
|
"angle": 3.12921
|
|
},
|
|
{
|
|
"station_id": 25,
|
|
"station_code": "Goal_1060",
|
|
"station_name": "Goal_1060",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 3.96083,
|
|
"y": -0.313295,
|
|
"angle": 0.889684
|
|
},
|
|
{
|
|
"station_id": 26,
|
|
"station_code": "Goal_1096",
|
|
"station_name": "Goal_1096",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 4.00651,
|
|
"y": -0.279691,
|
|
"angle": 0.44301
|
|
},
|
|
{
|
|
"station_id": 27,
|
|
"station_code": "B1autoexit",
|
|
"station_name": "呃呃",
|
|
"station_type": "Station",
|
|
"action_type": "Customize",
|
|
"x": 5.19619,
|
|
"y": -4.90243,
|
|
"angle": 1.6751
|
|
},
|
|
{
|
|
"station_id": 28,
|
|
"station_code": "B2autoexit",
|
|
"station_name": "B2autoexit",
|
|
"station_type": "Station",
|
|
"action_type": "Customize",
|
|
"x": 12.2051,
|
|
"y": 2.63079,
|
|
"angle": -1.56037
|
|
},
|
|
{
|
|
"station_id": 29,
|
|
"station_code": "Goal_1097",
|
|
"station_name": "Goal_1097",
|
|
"station_type": "System",
|
|
"action_type": "Move",
|
|
"x": 2.33115,
|
|
"y": -0.196742,
|
|
"angle": 0.036939
|
|
}
|
|
]
|
|
return res
|
|
}
|
|
export const getRouteInfo = () => {
|
|
let res = [
|
|
{
|
|
"route_id": 1,
|
|
"start_id": 1,
|
|
"end_id": 2,
|
|
"start_x": 1.20309,
|
|
"start_y": -0.238922,
|
|
"end_x": 4.01522,
|
|
"end_y": 0.0628335,
|
|
"navigation_mode": "0",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 2,
|
|
"start_id": 2,
|
|
"end_id": 3,
|
|
"start_x": 4.01522,
|
|
"start_y": 0.0628335,
|
|
"end_x": 7.99832,
|
|
"end_y": 0.134056,
|
|
"navigation_mode": "0",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 3,
|
|
"start_id": 3,
|
|
"end_id": 4,
|
|
"start_x": 7.99832,
|
|
"start_y": 0.134056,
|
|
"end_x": 5.10127,
|
|
"end_y": -3.07691,
|
|
"navigation_mode": "1",
|
|
"route_type": "0"
|
|
},
|
|
{
|
|
"route_id": 4,
|
|
"start_id": 4,
|
|
"end_id": 27,
|
|
"start_x": 5.10127,
|
|
"start_y": -3.07691,
|
|
"end_x": 5.19619,
|
|
"end_y": -4.90243,
|
|
"navigation_mode": "1",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 5,
|
|
"start_id": 3,
|
|
"end_id": 5,
|
|
"start_x": 7.99832,
|
|
"start_y": 0.134056,
|
|
"end_x": 14.5274,
|
|
"end_y": 0.0336595,
|
|
"navigation_mode": "0",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 6,
|
|
"start_id": 5,
|
|
"end_id": 6,
|
|
"start_x": 14.5274,
|
|
"start_y": 0.0336595,
|
|
"end_x": 12.6986,
|
|
"end_y": 0.770049,
|
|
"navigation_mode": "1",
|
|
"route_type": "0"
|
|
},
|
|
{
|
|
"route_id": 7,
|
|
"start_id": 6,
|
|
"end_id": 7,
|
|
"start_x": 12.6986,
|
|
"start_y": 0.770049,
|
|
"end_x": 12.2807,
|
|
"end_y": 1.59568,
|
|
"navigation_mode": "1",
|
|
"route_type": "0"
|
|
},
|
|
{
|
|
"route_id": 8,
|
|
"start_id": 7,
|
|
"end_id": 28,
|
|
"start_x": 12.2807,
|
|
"start_y": 1.59568,
|
|
"end_x": 12.2051,
|
|
"end_y": 2.63079,
|
|
"navigation_mode": "1",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 9,
|
|
"start_id": 5,
|
|
"end_id": 8,
|
|
"start_x": 14.5274,
|
|
"start_y": 0.0336595,
|
|
"end_x": 15.4681,
|
|
"end_y": 0.438255,
|
|
"navigation_mode": "0",
|
|
"route_type": "0"
|
|
},
|
|
{
|
|
"route_id": 10,
|
|
"start_id": 8,
|
|
"end_id": 9,
|
|
"start_x": 15.4681,
|
|
"start_y": 0.438255,
|
|
"end_x": 16.7354,
|
|
"end_y": 0.366603,
|
|
"navigation_mode": "0",
|
|
"route_type": "0"
|
|
},
|
|
{
|
|
"route_id": 11,
|
|
"start_id": 9,
|
|
"end_id": 10,
|
|
"start_x": 16.7354,
|
|
"start_y": 0.366603,
|
|
"end_x": 20.2118,
|
|
"end_y": 0.675766,
|
|
"navigation_mode": "0",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 12,
|
|
"start_id": 10,
|
|
"end_id": 11,
|
|
"start_x": 20.2118,
|
|
"start_y": 0.675766,
|
|
"end_x": 23.6881,
|
|
"end_y": 0.98493,
|
|
"navigation_mode": "0",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 13,
|
|
"start_id": 11,
|
|
"end_id": 12,
|
|
"start_x": 23.6881,
|
|
"start_y": 0.98493,
|
|
"end_x": 27.1645,
|
|
"end_y": 1.29409,
|
|
"navigation_mode": "0",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 14,
|
|
"start_id": 12,
|
|
"end_id": 13,
|
|
"start_x": 27.1645,
|
|
"start_y": 1.29409,
|
|
"end_x": 30.6409,
|
|
"end_y": 1.60326,
|
|
"navigation_mode": "0",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 15,
|
|
"start_id": 13,
|
|
"end_id": 14,
|
|
"start_x": 30.6409,
|
|
"start_y": 1.60326,
|
|
"end_x": 28.635,
|
|
"end_y": 1.82256,
|
|
"navigation_mode": "1",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 16,
|
|
"start_id": 14,
|
|
"end_id": 15,
|
|
"start_x": 28.635,
|
|
"start_y": 1.82256,
|
|
"end_x": 27.2028,
|
|
"end_y": 3.34653,
|
|
"navigation_mode": "1",
|
|
"route_type": "0"
|
|
},
|
|
{
|
|
"route_id": 17,
|
|
"start_id": 15,
|
|
"end_id": 16,
|
|
"start_x": 27.2028,
|
|
"start_y": 3.34653,
|
|
"end_x": 27.3059,
|
|
"end_y": 4.42557,
|
|
"navigation_mode": "1",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 18,
|
|
"start_id": 16,
|
|
"end_id": 17,
|
|
"start_x": 27.3059,
|
|
"start_y": 4.42557,
|
|
"end_x": 27.1454,
|
|
"end_y": 2.76668,
|
|
"navigation_mode": "0",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 19,
|
|
"start_id": 17,
|
|
"end_id": 18,
|
|
"start_x": 27.1454,
|
|
"start_y": 2.76668,
|
|
"end_x": 24.5172,
|
|
"end_y": 1.17209,
|
|
"navigation_mode": "0",
|
|
"route_type": "0"
|
|
},
|
|
{
|
|
"route_id": 20,
|
|
"start_id": 18,
|
|
"end_id": 19,
|
|
"start_x": 24.5172,
|
|
"start_y": 1.17209,
|
|
"end_x": 21.2668,
|
|
"end_y": 0.891475,
|
|
"navigation_mode": "0",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 21,
|
|
"start_id": 19,
|
|
"end_id": 20,
|
|
"start_x": 21.2668,
|
|
"start_y": 0.891475,
|
|
"end_x": 18.0164,
|
|
"end_y": 0.610859,
|
|
"navigation_mode": "0",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 22,
|
|
"start_id": 20,
|
|
"end_id": 21,
|
|
"start_x": 18.0164,
|
|
"start_y": 0.610859,
|
|
"end_x": 14.7661,
|
|
"end_y": 0.330243,
|
|
"navigation_mode": "0",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 23,
|
|
"start_id": 21,
|
|
"end_id": 22,
|
|
"start_x": 14.7661,
|
|
"start_y": 0.330243,
|
|
"end_x": 11.5157,
|
|
"end_y": 0.0496265,
|
|
"navigation_mode": "0",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 24,
|
|
"start_id": 22,
|
|
"end_id": 23,
|
|
"start_x": 11.5157,
|
|
"start_y": 0.0496265,
|
|
"end_x": 8.26531,
|
|
"end_y": -0.23099,
|
|
"navigation_mode": "0",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 25,
|
|
"start_id": 23,
|
|
"end_id": 24,
|
|
"start_x": 8.26531,
|
|
"start_y": -0.23099,
|
|
"end_x": 5.01493,
|
|
"end_y": -0.511606,
|
|
"navigation_mode": "0",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 26,
|
|
"start_id": 24,
|
|
"end_id": 25,
|
|
"start_x": 5.01493,
|
|
"start_y": -0.511606,
|
|
"end_x": 3.96083,
|
|
"end_y": -0.313295,
|
|
"navigation_mode": "0",
|
|
"route_type": "0"
|
|
},
|
|
{
|
|
"route_id": 27,
|
|
"start_id": 25,
|
|
"end_id": 26,
|
|
"start_x": 3.96083,
|
|
"start_y": -0.313295,
|
|
"end_x": 4.00651,
|
|
"end_y": -0.279691,
|
|
"navigation_mode": "1",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 28,
|
|
"start_id": 26,
|
|
"end_id": 29,
|
|
"start_x": 4.00651,
|
|
"start_y": -0.279691,
|
|
"end_x": 2.33115,
|
|
"end_y": -0.196742,
|
|
"navigation_mode": "1",
|
|
"route_type": "0"
|
|
},
|
|
{
|
|
"route_id": 29,
|
|
"start_id": 4,
|
|
"end_id": 3,
|
|
"start_x": 5.10127,
|
|
"start_y": -3.07691,
|
|
"end_x": 7.99832,
|
|
"end_y": 0.134056,
|
|
"navigation_mode": "0",
|
|
"route_type": "0"
|
|
},
|
|
{
|
|
"route_id": 30,
|
|
"start_id": 27,
|
|
"end_id": 4,
|
|
"start_x": 5.19619,
|
|
"start_y": -4.90243,
|
|
"end_x": 5.10127,
|
|
"end_y": -3.07691,
|
|
"navigation_mode": "0",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 31,
|
|
"start_id": 6,
|
|
"end_id": 5,
|
|
"start_x": 12.6986,
|
|
"start_y": 0.770049,
|
|
"end_x": 14.5274,
|
|
"end_y": 0.0336595,
|
|
"navigation_mode": "0",
|
|
"route_type": "0"
|
|
},
|
|
{
|
|
"route_id": 32,
|
|
"start_id": 7,
|
|
"end_id": 6,
|
|
"start_x": 12.2807,
|
|
"start_y": 1.59568,
|
|
"end_x": 12.6986,
|
|
"end_y": 0.770049,
|
|
"navigation_mode": "0",
|
|
"route_type": "0"
|
|
},
|
|
{
|
|
"route_id": 33,
|
|
"start_id": 28,
|
|
"end_id": 7,
|
|
"start_x": 12.2051,
|
|
"start_y": 2.63079,
|
|
"end_x": 12.2807,
|
|
"end_y": 1.59568,
|
|
"navigation_mode": "0",
|
|
"route_type": "1"
|
|
},
|
|
{
|
|
"route_id": 34,
|
|
"start_id": 29,
|
|
"end_id": 1,
|
|
"start_x": 2.33115,
|
|
"start_y": -0.196742,
|
|
"end_x": 1.20309,
|
|
"end_y": -0.238922,
|
|
"navigation_mode": "1",
|
|
"route_type": "1"
|
|
}
|
|
]
|
|
return res
|
|
}
|
|
export const imageUrl = require('../images/new/apt_map.png')
|
|
export const getMapInfoByCode = () => {
|
|
let res = {
|
|
"mapCode": "apt_map_20250902005122",
|
|
"mapName": "apt_map_20250902005122",
|
|
"mapImageAddress": imageUrl,
|
|
"width": 1159.0,
|
|
"height": 363.0,
|
|
"resolution": 0.05,
|
|
"x": -5.04466,
|
|
"y": -9.11043,
|
|
"angle": 0.0
|
|
}
|
|
return res
|
|
}
|
|
export const startMapping = () => {
|
|
let res = {
|
|
code: 200,
|
|
message: 'ok'
|
|
}
|
|
return res
|
|
}
|
|
export const stopMapping = () => {
|
|
let res = {
|
|
code: 200,
|
|
message: 'ok'
|
|
}
|
|
return res
|
|
}
|
|
export const getMappingStatus = () => {
|
|
let res = {
|
|
code: 200,
|
|
message: 'ok',
|
|
mapping_return: '1',
|
|
mapping_percent: '50'
|
|
}
|
|
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
|
|
}
|
|
export const setStation = (sn, code) => {
|
|
let res = {
|
|
code: 200,
|
|
message: 'ok'
|
|
}
|
|
return res
|
|
}
|
|
export const getReturnStation = () => {
|
|
let res = {station_id: 'B3333',station_code:"111",station_name:"1111"}
|
|
return res
|
|
}
|
|
export const sendAutoBack = (sn, code) => {
|
|
let res = {
|
|
code: 200,
|
|
message: 'ok'
|
|
}
|
|
return res
|
|
}
|
|
export const oneClickDeployment = (sn, code) => {
|
|
let res = {
|
|
code: 200,
|
|
message: 'ok'
|
|
}
|
|
return res
|
|
}
|
|
export const abandonMapping = (sn, code) => {
|
|
let res = {
|
|
code: 200,
|
|
message: 'ok'
|
|
}
|
|
return res
|
|
}
|
|
|
|
export const relocate = (x, y, angle) => {
|
|
let res = {
|
|
code: 200,
|
|
message: 'ok'
|
|
}
|
|
return res
|
|
} |