From 524f74f87ef5720bf9d56e08dcbe85c1f5b44342 Mon Sep 17 00:00:00 2001 From: wangqiujuan0808 <578331299@qq.com> Date: Mon, 8 Jan 2024 23:45:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/yj.png | Bin 0 -> 1559 bytes src/assets/styles/index.scss | 6 +- .../bim/bimHome/components/CheckDetial.vue | 81 ++++++++++++++++-- .../bimHome/components/DeviceInfoDialog.vue | 4 +- .../bim/bimHome/components/ThreeView2.vue | 29 ++++++- 5 files changed, 108 insertions(+), 12 deletions(-) create mode 100644 public/yj.png diff --git a/public/yj.png b/public/yj.png new file mode 100644 index 0000000000000000000000000000000000000000..7433b0571f5400d1086d0171ad3c6e3ce364569c GIT binary patch literal 1559 zcmV+y2I%>TP)}qFAfiz(dI7K!or?YF_-wfbOUNSo~``-J`yq%rh_hz0D zjcS2)z*?XcSOqizi-9WJXB-#?E&)FQXMhvHSHMUVt0XM15ZEqoRA5R#O7fJIv0Y$g zNE<^5>JaFz5M&YfZh;LUY@Ju3OFs&{4m?uO=U3o+U;wxXT*bID7}u@??giEW4*(4X zvigBnfiFs1TymtA3+ykLksg7q0&7ahUM=vPm67K$`>hSP#HBY0410_i64)is7{c`| zH(HrP9(}{smS}(%3hePH9uas&pgJH>m#eLg5s&^o0*gWet`_**qwIi`bgh!ST;L;* z9Y+L~gaTYIaKbaIUAGXZ%TIb{`&(;kMSyDsPCA0m3AEfsuqn4#TeNN8Ser`$UMO(b z5qNwqqj(Fs-rA&XJZx?M&w%$jg1#20x&uJETxD(3w(iaApSSVY1bnQnF97Q?n})Kq z9e6OOZ4lT|f$VzV7_eH^b&wscF^g|X8?oQn zDd4Ao1-3i|d=S_GfHC}lrwI=j42Ef2UVy>)58zJKv5&CNZc5|i&+u3TeZK&`>besQ z;PmfeN}ohf4)6!Ydt8bI7_wN_0ksKc%Q#;(d=^Rh4Pe4kFN9w&QtDCV`M~-Fcvw|l z!R(u3P#)k(%rZL#Q#Dz_$>h(Jo`BPzaunN62s z13st9s}i75Rs0-Ht;h_1myQj1P?eh!vR_6azFLaNH^Y;}1+3rkH3>HZTi}1jLXv-m zMI@q59h9r~eGkW^KRtE6S&u~%3E6jGZDfT$z_GnbV;WB|@!6DWA}jX+_SJ}G z#WJ8dqVn_;aa!^35%o0#OV#xW#KdBB;CV~n-z|nk5V%`ROlY;@WwtE_Z&A3W1Qz@L zR`x^#T*Pqz_b6Qb!p(+ls$o*X{+`VOHgVj|mX}5Z+$34g-KGIINcNB7&M1JPP2iH! z^P50>B)~hJNo>%75jdneT$Av>X{!a!D;+5h3e*MGRb?@xIu506x>JW^$jgC^c)&y_^<$Qe?UER4z&Qhrph(IyM&`33fj&F)bkG6{qwF&t7n7` zI-?&dd8JYO`Ca1@E@!06k$uqZx} zGb`abnVq(DL`tSDA!f6G+7WnG?wrK5vyN@2t(7p z_s&&8jX`cVpT$m0#N=}s=Chdj<< z&L&;O#Dnj`gn5<#D=~i;Tgm=|a_J~0C$q1##erOJgP3p5ycwy4r>*P_A#4o=SU+6NFT*(!vx;z@E^syh6xCKN93b;e*+uZdr25GX8iyF002ov JPDHLkV1l7h-{1fM literal 0 HcmV?d00001 diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 53599e4..5d1123e 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -248,6 +248,10 @@ aside { .el-table__inner-wrapper::after, .el-table__inner-wrapper::before { background-color: #00174b !important; - color: #fff !important + color: #fff !important; + + } + .el-table { + border: 1px solid #2E6099 !important; } } \ No newline at end of file diff --git a/src/views/bim/bimHome/components/CheckDetial.vue b/src/views/bim/bimHome/components/CheckDetial.vue index a4f6d6b..61c647d 100644 --- a/src/views/bim/bimHome/components/CheckDetial.vue +++ b/src/views/bim/bimHome/components/CheckDetial.vue @@ -1,16 +1,32 @@ \ No newline at end of file + + \ No newline at end of file diff --git a/src/views/bim/bimHome/components/DeviceInfoDialog.vue b/src/views/bim/bimHome/components/DeviceInfoDialog.vue index cf84546..b3645d5 100644 --- a/src/views/bim/bimHome/components/DeviceInfoDialog.vue +++ b/src/views/bim/bimHome/components/DeviceInfoDialog.vue @@ -13,7 +13,7 @@ style="width: 100%;height:100%">
- + @@ -460,7 +460,7 @@ const viewDetail = (val) => { .bottom-div { height: 74%; - border: 1px solid #2E6099; + // border: 1px solid #2E6099; } } } diff --git a/src/views/bim/bimHome/components/ThreeView2.vue b/src/views/bim/bimHome/components/ThreeView2.vue index 23742b4..a422762 100644 --- a/src/views/bim/bimHome/components/ThreeView2.vue +++ b/src/views/bim/bimHome/components/ThreeView2.vue @@ -177,6 +177,9 @@ const loadSence = () => { if (enableGroup.indexOf(e.name) != -1) { xfobj.push(e); } + if (yjGroup.indexOf(e.name) != -1) { + yjobj.push(e); + } }) // 设置漫游点位 const objname = ['start', 'middle1', 'middle2', 'end'] @@ -254,6 +257,10 @@ const enableGroup = [ 'T11',// 立仓 'T12' ] +// 预警设备 +const yjGroup = [ + 'T11', +] const isSelent = (obj) => { var o = obj while (true) { @@ -377,17 +384,18 @@ const cleanColor = () => { } // 预警 const warn = () => { - ['T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12'].forEach(item => { + ['T11'].forEach(item => { warnSets.push(scene.getObjectByName(item)); }) - warnSets[2].traverse(e => { + warnSets[0].traverse(e => { e.material = new THREE.MeshBasicMaterial({ transparent: true, opacity: 0.9, color: new THREE.Color('rgb( 237,33,2 )') }); }) + yjf(); // animateCamera(warnSets[0]); } @@ -591,12 +599,22 @@ const xiaof = () => { xfadd(o, Math.random() < 0.3); }) } +// 预警 +const yjf = () => { + yjobj.forEach((o) => { + xfadd(o, 'yj'); + }) +} let xfobj = []; +let yjobj = []; // 消防标签 const xfadd = (obj, state) => { const texLoader = new THREE.TextureLoader(); let texture = null; - if (state) { + if(state == 'yj') { + texture = texLoader.load("/yj.png"); + } + else if (state) { texture = texLoader.load("/ygr.png"); } else { texture = texLoader.load("/yg.png"); @@ -825,6 +843,9 @@ const checkComplete = () => { } .arrow_outer { display: flex; - + flex-direction: column; + >div { + line-height: 24px; + } } \ No newline at end of file