From b7727b0f5e9ac75fb648ace70c3966b5275bfebb Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Fri, 1 Mar 2024 17:51:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E6=97=B6=E8=BF=BD=E8=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/images/map/bottom/ico19.png | Bin 0 -> 1531 bytes src/assets/images/map/bottom/ico19_on.png | Bin 0 -> 2602 bytes src/views/BI/components/bottom_options.vue | 43 +++++++-- .../BI/components/real_time_tracking.vue | 88 ++++++++++++++++++ src/views/BI/index.vue | 10 ++ 5 files changed, 132 insertions(+), 9 deletions(-) create mode 100644 src/assets/images/map/bottom/ico19.png create mode 100644 src/assets/images/map/bottom/ico19_on.png create mode 100644 src/views/BI/components/real_time_tracking.vue diff --git a/src/assets/images/map/bottom/ico19.png b/src/assets/images/map/bottom/ico19.png new file mode 100644 index 0000000000000000000000000000000000000000..865d3b7e358ef5b31ebe21ef4c93868b6ee146c9 GIT binary patch literal 1531 zcmeAS@N?(olHy`uVBq!ia0vp^8X(NU1|)m_?Z^dEk|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*9U+n9DLlB1$5BeXNr6bM+EIYV;~{3xK*A7;Nk-3KEmEQ%e+* zQqwc@Y?a>c-mj#PnPRIHZt82`Ti~3Uk?B!Ylp0*+7m{3+ootz+WN)WnQ(*-(AUCxn zQK2F?C$HG5!d3}vt`(3C64qBz04piUwpD^SD#ABF!8yMuRl!uxOgGuk#8koDQqR!L z*u>ION5ROz&_dt9Lf_C>*U-$$#K6kPNC66zfVLH-q*(>IxIyg#@@$ndN=gc>^!3Zj z%k|2Q_413-^$jg8E%gnI^o@*kfhu&1EAvVcD|GXUm0>2hq!uR^WfqiV=I1GZOiWD5 zFD#PU%0_}#n6BP2AO_EVu8M)o`HUDF34YC)x{-2sR(CaRb3oXS&*t9 zlvgr@<=;-EVXl&_ZY3yp~Xb#isnO9trn3tRivpW-LH&m|+UcFY%MX8A;`9&f5`8lvu z5Rj2yl3$#WU!dUZ42pG21`yp;U%VogvqL456!T9jFqn&MWJpQ`{4XRAysZXnM8 z5dA6ShMzvrQTm|7f|Ph*LckOWV#2cmkOR+5sd>O0R0PZ_PsLU!GB7Ynd%8G=RNQ(K zvDb^)QQ%yseeRV@`&qb~-LhT1xm|-Zf_^l2{E%sC)n6dN!IG21l5IF^ffA=(V{d26 z4-vzxbNLB;?N9gYei1A5k##PN> z83+74{!f|^{qMG2(_Fnd4kG<52HICLUvO8<%bxY^#w2C6qyxQq`jH8bmj5%|ZR5;x zrYA3WN`qe5)CQh_hlWodFd3YBY@Q&#&F?J7E-6PP^+lgqbfRzcF}iN7Tb=m7SKvs6 z(29+ltrcD4hvN~^V4&oJnpx>uPPo?W{6!|HxHb(X_Db0nmLHYf(L%N@C~oC z>#SR63C;eze90UCs3#95ZrXO{m#uzYVTeVaX6iGE9|E7>yZC7uYbV(~3SD?^6SJ0h z?WsEo6B2kdivKEAN$S^o9%~FQn-cC>H`&Q$-GS;=Mpf&CQ<`T#TA`t}x*=^-pViVG z9Wp1QHs4yyYvb1-7Zx~ox6oGIGjFd6^shd^movBWUS4Od;3;)>-q)-K*RHgM7CM}J zd_ZQyiC5kV=XL8Z>N)%ipF4fg&;R_tSZbT>4%Yj92yS3x2wyRO+1zB!1)$>C)78&q Iol`;+0L1GrA^-pY literal 0 HcmV?d00001 diff --git a/src/assets/images/map/bottom/ico19_on.png b/src/assets/images/map/bottom/ico19_on.png new file mode 100644 index 0000000000000000000000000000000000000000..802b06c3a3646583af792a98e98e1cf7ca53b578 GIT binary patch literal 2602 zcmbVOc{o&iADfArkvectmt=lp)ZbH1O?_w(JJ=fr!sIchA^ zT?T|Pf2%H5JQF|v&Q~lt5(giNC&-mZSt0;p#{mNYm@}Uh1TX*=Cp@$n zu!caC!+1;|i4WbC#0L3D*1Qc;#uqBk5Qy~_nUKW}0VJ?MAc!X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z*d)98tEJu3-KeR?4R*=1jw&g-_kjT z%`n1fY(L&)Usd0F$0hYnyjei-!=OP@>4nKee|-pXt-0#S~O5zS4YtB33CcZRm~8rd7Yo18g$i;jhM?-XX@$bnU+kUp@_sqG%PI z5=R5a=;K8h8Kbi^TN{>6el$r=4vUS0uR7s;Y}Pd)SG_29yk&}>@v43BfIxThZb#hN zXCk$pD$OBg^B?TX&$4Wf9x9?%2Y=F=xnA*$JnJ2^Jv_VnhO~70Z1tb7Uo8o0FO&E+ zr42JmbOyTxb+wKvn=640wu9nN$z9aU21I>$=XK1?+vc|1b2+g@fH6hlzscBGM(aKl>E*I3X&nw)wm4n8fNFjjvK0rYs;n^y)bNSAzcW5&28Izf&sdIG z4L@4uj?f&-Gt@A>ac|LY_1VFFvxSK`=ximV`lC*}&b|jxTFd9InyXJbY?)I { rightOption.value = index !== 4; }; const fnBottomChildOptionsListChange = (index, item1, index1) => { + const singleChoiceType = ["historicalTrajectory", "realTimeTracking"]; const currentItem = data.bottomOptionsList[index].list[index1]; - if (item1.type === "historicalTrajectory") { + if (singleChoiceType.includes(item1.type)) { for (let i = 0; i < data.bottomOptionsList.length; i++) { for (let j = 0; j < data.bottomOptionsList[i].list.length; j++) { const currentForItem = data.bottomOptionsList[i].list[j]; @@ -388,20 +407,26 @@ const fnBottomChildOptionsListChange = (index, item1, index1) => { } } currentItem.check = !currentItem.check; - isHistoricalTrajectory.value = !isHistoricalTrajectory.value; + if (item1.type === "historicalTrajectory") { + isHistoricalTrajectory.value = !isHistoricalTrajectory.value; + isRealTimeTracking.value = false; + } + if (item1.type === "realTimeTracking") { + isRealTimeTracking.value = !isRealTimeTracking.value; + isHistoricalTrajectory.value = false; + } } else { - let isSelf = false; for (let i = 0; i < data.bottomOptionsList.length; i++) { for (let j = 0; j < data.bottomOptionsList[i].list.length; j++) { const currentForItem = data.bottomOptionsList[i].list[j]; - if (currentForItem.type === "historicalTrajectory") { - currentForItem.check = false; - isHistoricalTrajectory.value = false; - isSelf = true; - break; + if (singleChoiceType.includes(currentForItem.type)) { + if (currentForItem.check) { + currentForItem.check = false; + isHistoricalTrajectory.value = false; + isRealTimeTracking.value = false; + } } } - if (isSelf) break; } currentItem.check = !currentItem.check; if (currentItem.action) currentItem.action(currentItem.check, item1.type); diff --git a/src/views/BI/components/real_time_tracking.vue b/src/views/BI/components/real_time_tracking.vue new file mode 100644 index 0000000..17d19ae --- /dev/null +++ b/src/views/BI/components/real_time_tracking.vue @@ -0,0 +1,88 @@ + + + + + diff --git a/src/views/BI/index.vue b/src/views/BI/index.vue index d1998af..3ad63ef 100644 --- a/src/views/BI/index.vue +++ b/src/views/BI/index.vue @@ -38,6 +38,7 @@ v-model:right-current-component="rightCurrentComponent" v-model:right-option="right_option" v-model:is-historical-trajectory="isHistoricalTrajectory" + v-model:is-real-time-tracking="isRealTimeTracking" /> @@ -68,6 +69,13 @@ v-if="isHistoricalTrajectory && !isPureMap" /> + + + @@ -81,6 +89,7 @@ import { initMap } from "./js/map"; import { useUserStore } from "@/pinia/user.js"; import { getEnterpriseInfo } from "@/request/enterprise_management.js"; import HistoricalTrajectoryOptions from "@/views/BI/components/historical_trajectory_options.vue"; +import RealTimeTracking from "@/views/BI/components/real_time_tracking.vue"; const router = useRouter(); const right_option = ref(true); @@ -88,6 +97,7 @@ const transitionKey = ref(0); const leftCurrentComponent = ref(""); const rightCurrentComponent = ref(""); const isHistoricalTrajectory = ref(false); +const isRealTimeTracking = ref(false); const isPureMap = ref(false); const userStore = useUserStore(); const CORPINFO_ID = userStore.getUserInfo.CORPINFO_ID;