From 016250b91a9a30c72b0f6a31278b481c8502d9e5 Mon Sep 17 00:00:00 2001 From: hzz Date: Wed, 24 May 2023 10:03:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BD=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/FactoryView/threeMap.vue | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/FactoryView/threeMap.vue b/src/views/FactoryView/threeMap.vue index acf5ef3..eae77f1 100644 --- a/src/views/FactoryView/threeMap.vue +++ b/src/views/FactoryView/threeMap.vue @@ -442,13 +442,13 @@ const init = () => { /*创建第一条线******************/ let garyLine = 0x595959; let whiteColor = 0xffffff; - createLine(whiteColor, [{ x: -346.00, y: 23.6, z: 59.40 }, { x: -160.50, y: 2, z: 142.08 }], 1) + createLine(whiteColor, [{ x: -346.00, y: 23.6, z: 59.40 }, { x: -160.50, y: 2, z: 142.08 }], 2) //服装 createLine(whiteColor, [ { x: -345.65, y: 2, z: 36.40 }, { x: 22.67, y: 2, z: 36.40 }, { x: 22.67, y: 2, z: -25.70 }, - ], 1) + ], 2) createLine(garyLine, [ { x: 22.67, y: 2, z: -25.70 }, { x: -47.67, y: 2, z: -25.70 }, @@ -459,13 +459,13 @@ const init = () => { createLine(garyLine, [{x:-88.73,y:2,z:-249.01},{x:-88.73,y:2,z:-117.33} , { x: -174.65, y: 2, z: -117.33 }]) //汽车军团 - createLine(whiteColor, [{ x: -293.44, y: 2, z: 52.52 }, { x: -293.44, y: 2, z: 36.40 }, { x: -235.84, y: 2, z: -30.87 }], 1) + createLine(whiteColor, [{ x: -293.44, y: 2, z: 52.52 }, { x: -293.44, y: 2, z: 36.40 }, { x: -235.84, y: 2, z: -30.87 }], 2) //机加 createLine(whiteColor, [ { x: -114.64, y: 2, z: 36.40 }, { x: -114.64, y: 2, z: 52.42 }, { x: -46.13, y: 2, z: 52.90 }, - ], 1) + ], 2) createLine(garyLine, [ { x: -46.13, y: 2, z: 52.90 }, @@ -495,7 +495,7 @@ const init = () => { { x: 294.54, y: 2, z: 175.55 }, { x: 294.54, y: 2, z: 40.43 }, { x: 306.56, y: 2, z: 40.43 } - ], 1) + ], 2) createLine(garyLine, [ { x: 306.56, y: 2, z: 40.43 }, { x: 306.56, y: 2, z: 235.28 } @@ -505,7 +505,7 @@ const init = () => { { x: -164.26, y: 2, z: 30.98 }, { x: -164.26, y: 2, z: 140.05 } - ],1) + ],2) createLine(garyLine, [ { x: -164.26, y: 2, z: 140.05 }, { x: -214.35, y: 2, z: 140.05 } @@ -536,12 +536,12 @@ const init = () => { createLine(whiteColor, [ { x: -292.24, y: 2, z: 30.98 }, { x: -242.61, y: 2, z: -30.90 } - ], 1) + ], 2) //家纺 医防 createLine(whiteColor, [ { x: 18.30, y: 2, z: 30.98 }, { x: 18.30, y: 2, z: -28.94 } - ], 1) + ], 2) //家纺 医防 createLine(garyLine, [ { x: 18.30, y: 2, z: -28.94 }, @@ -554,7 +554,7 @@ const init = () => { createLine(whiteColor, [ { x: 18.30, y: 2, z: 30.98 }, { x: 18.30, y: 2, z: -28.94 } - ],1) + ],2) setTipDom() sethoveMesh() @@ -609,7 +609,7 @@ const init = () => { // console.log("非正常坐标", "{x:" + (+selected.point.x - 0.83).toFixed(2) + ",y:2 ,z:" + (selected.point.z + 3.52).toFixed(2) + "}"); let workerShop = intersects[0]?.object?.name if (workerShopRoute.hasOwnProperty(workerShop) && !edit) { - //router.push({ path: workerShopRoute[workerShop] }) + router.push({ path: workerShopRoute[workerShop] }) } } @@ -747,7 +747,7 @@ function createLine(color: number, pointsList: any, width: number = 4) { color: color, transparent: true, // opacity: 0.5, - dashed: width !== 1?true:false, + dashed: width !== 2?true:false, dashScale: 1, dashSize: 3, gapSize: 1,