This commit is contained in:
蔡玲
2024-09-20 09:49:43 +08:00
parent 516d21f06a
commit 83acbb40d4
8 changed files with 81 additions and 16 deletions

View File

@@ -53,3 +53,28 @@ export const areaControl = (code, option) => {
}
return res
}
export const queryDevice = (t) => {
let res = {}
if (t === 0) {
res = {
data: {car1: {x: 105, y: 312, angle: 'up'}}
}
} else if (t === 1) {
res = {
data: {car1: {x: 105, y: 262, angle: 'up'}}
}
} else if (t === 2) {
res = {
data: {car1: {x: 105, y: 202, angle: 'up'}}
}
} else if (t === 3) {
res = {
data: {car1: {x: 105, y: 262, angle: 'down'}}
}
} else if (t === 4) {
res = {
data: {car1: {x: 105, y: 312, angle: 'down'}}
}
}
return res
}