修改问题
This commit is contained in:
parent
9505e81dd4
commit
0ff06e8b59
@ -113,11 +113,11 @@
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
style="
|
style="
|
||||||
font-size: 0.6875rem;
|
font-size: 0.5875rem;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -0.625rem;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%) translateY(-50%) rotate(90deg);
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
{{ item.robotNo || '' }}
|
{{ item.robotNo || '' }}
|
||||||
@ -717,22 +717,14 @@ const linkWebSocket = (url) => {
|
|||||||
// testCarList.value = JSON.parse(JSON.stringify(dataList))
|
// testCarList.value = JSON.parse(JSON.stringify(dataList))
|
||||||
// testCarList.value = mergeCarArrays(testCarList.value, dataList)
|
// testCarList.value = mergeCarArrays(testCarList.value, dataList)
|
||||||
testCarList.value = mergeArraysWithoutDelete(testCarList.value, dataList)
|
testCarList.value = mergeArraysWithoutDelete(testCarList.value, dataList)
|
||||||
// if (testCarList.value.length) {
|
|
||||||
// testCarList.value.forEach((item) => {
|
|
||||||
// item.originWidth = width
|
|
||||||
// item.originHeight = height
|
|
||||||
// item.origin = JSON.parse(imgBgObj.yamlJson).origin
|
|
||||||
// item.realX = convertActualToBrowser(item.data.pose2d.x, item.data.pose2d.y).x
|
|
||||||
// item.realY = convertActualToBrowser(item.data.pose2d.x, item.data.pose2d.y).y
|
|
||||||
// item.robotNo =item.data.pose2d.robotNo
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
testCarList.value.forEach((item) => {
|
testCarList.value.forEach((item) => {
|
||||||
item.originWidth = imgBgObj.width
|
item.originWidth = imgBgObj.width
|
||||||
item.originHeight = imgBgObj.height
|
item.originHeight = imgBgObj.height
|
||||||
item.origin = imgBgObj.origin
|
item.origin = imgBgObj.origin
|
||||||
item.realX = convertActualToBrowser(item.data.pose2d.x, item.data.pose2d.y).x
|
item.realX = convertActualToBrowser(item.data.pose2d.x, item.data.pose2d.y).x
|
||||||
item.realY = convertActualToBrowser(item.data.pose2d.x, item.data.pose2d.y).y
|
item.realY = convertActualToBrowser(item.data.pose2d.x, item.data.pose2d.y).y
|
||||||
|
item.robotNo =item.data.pose2d.robotNo
|
||||||
})
|
})
|
||||||
|
|
||||||
// console.log(testCarList.value)
|
// console.log(testCarList.value)
|
||||||
|
Loading…
Reference in New Issue
Block a user