From 7a9549bc8f68e3fa9e3b12011fccd97de8c210dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Mon, 3 Jun 2024 08:57:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/charts/Bipv.vue | 16 ++--- src/views/dashboard/charts/LeftChartBase.vue | 29 ++++++--- src/views/index.vue | 64 ++++++++++++++------ 3 files changed, 68 insertions(+), 41 deletions(-) diff --git a/src/views/dashboard/charts/Bipv.vue b/src/views/dashboard/charts/Bipv.vue index 461e12b..24619ae 100644 --- a/src/views/dashboard/charts/Bipv.vue +++ b/src/views/dashboard/charts/Bipv.vue @@ -1,16 +1,10 @@ - @@ -69,13 +69,17 @@ const LOCATIONS = [ // 蚌埠2 // { x: 61, y: 53, tx: 39, ty: 68, path: 'factoryData/ksIndex' }, // 江西 瑞昌 - { x: 60, y: 58, tx: 68, ty: 52, path: 'factoryData/factory-data' }, + { x: 60, y: 58, tx: 68, ty: 52,lx:61,ly:61.5,ltx:68.8,lty:52, path: 'factoryData/factory-data' }, // 湖南 株洲 // { x: 56, y: 60, tx: 60, ty: 95, path: 'factoryData/zzIndex' }, // 邯郸 - { x: 58, y: 45, tx: 47, ty: 34, path: 'factoryData/hdIndex' }, + { x: 58, y: 45, tx: 47, ty: 34, lx: 58.7, ly: 34, ltx: 53, lty: 34, path: 'factoryData/hdIndex' }, ]; - +// rcLine.style.left = `66.8%`; +// rcLine.style.top = `52%`; +// rcLineTwo.className = "rcLineTwo"; +// rcLineTwo.style.left = `58.7%`; +// rcLineTwo.style.top = `34%`; export default { name: "Index", components: { @@ -247,7 +251,17 @@ export default { // templateInfo.items[3].value = this.homeStore.stdOutput.current[5]; // this.ksInfo = templateInfo; // } - (position === LOCATIONS[0]) { + (position === LOCATIONS[0]) { + const rcLine = document.createElement("div"); + const rcLineTwo = document.createElement("div"); + rcLine.className = "rcLine"; + rcLine.style.left = `${position.lx}%`; + rcLine.style.top = `${position.ly}%`; + rcLineTwo.className = "rcLineTwo"; + rcLineTwo.style.left = `${position.ltx}%`; + rcLineTwo.style.top = `${position.lty}%`; + document.getElementById("map-container").appendChild(rcLine); + document.getElementById("map-container").appendChild(rcLineTwo); this.rcHintPosition = position; templateInfo.companyName = "瑞昌中建材"; templateInfo.items[0].value = this.homeStore.ftoInvest?.current[0]; @@ -264,6 +278,16 @@ export default { // templateInfo.items[3].value = this.homeStore.stdOutput.current[2]; // this.zzInfo = templateInfo; } else if (position === LOCATIONS[1]) { + const hdLine = document.createElement("div"); + const hdLineTwo = document.createElement("div"); + hdLine.className = "hdLine"; + hdLine.style.left = `${position.lx}%`; + hdLine.style.top = `${position.ly}%`; + hdLineTwo.className = "hdLineTwo"; + hdLineTwo.style.left = `${position.ltx}%`; + hdLineTwo.style.top = `${position.lty}%`; + document.getElementById("map-container").appendChild(hdLine); + document.getElementById("map-container").appendChild(hdLineTwo); this.hdHintPosition = position; templateInfo.companyName = "邯郸中建材"; templateInfo.items[0].value = this.homeStore.ftoInvest?.current[1]; @@ -350,22 +374,22 @@ export default { .rcLine { display: inline-block; position: absolute; - left: 61%; - width: 100px; - top: 61.5%; + /* left: 61%; */ + width: 7.9vw; + /* top: 61.5%; */ /* x: 60, y: 58, */ - height: 1px; + height: 1px; border: 2px dashed #FFCF00; } .rcLineTwo { position: absolute; - left: 66.8%; + /* left: 66.8%; */ width: 1px; - top: 52%; + /* top: 52%; */ display: inline-block; /* // x: 60, y: 58, */ - height: 90px; + height: 5vw; border: 2px dashed #FFCF00; } @@ -376,13 +400,13 @@ export default { top: 34%; display: inline-block; /* // x: 60, y: 58, */ - height: 100px; + height: 6vw; border: 2px dashed #FFCF00; } .hdLineTwo { position: absolute; left: 53%; - width: 90px; + width: 5vw; top: 34%; display: inline-block; /* // x: 60, y: 58, */