newEvacuationBigData.vue 138 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758
  1. <template>
  2. <div class="newEvacuationBigData">
  3. <div class="evacuation-title-position-box">风险应急处置指挥平台</div>
  4. <div class="evacuation-out-button-position-box">
  5. <i class="el-icon-switch-button"></i>
  6. <p @click="goRoute">{{routeType?'退出全屏':'全屏'}}</p>
  7. </div>
  8. <!--顶部标题-->
  9. <!--左侧 传感器/硬件/echarts-->
  10. <div class="left-max-big-box">
  11. <div class="left-big-box-one">
  12. <div class="big-title-box">
  13. <img src="@/assets/ZDimages/bigData3_2/icon_znjc_tb.png">
  14. <p>智能监测</p>
  15. </div>
  16. <div class="max-sensor-box scrollbar-box" id="max-sensor-box">
  17. <div class="sensor-for-max-box" :class="item.type==1?'sensor-alarm-one':'sensor-alarm-two'"
  18. v-if="item.funNum != 'huoyan'"
  19. v-for="(item,index) in sensorList" :key="index">
  20. <div class="sensor-min-img-box">
  21. </div>
  22. <img v-if="item.type == 0" :src="item.zcImg" alt="">
  23. <img v-if="item.type == 1" :src="item.ycImg" alt="">
  24. <p class="sensor-name-p">{{item.funcName}}</p>
  25. <p class="sensor-num-p">{{item.formatVal}}</p>
  26. </div>
  27. <p v-if="!sensorList[0]" style="line-height:200px;font-size:16px;color:#fff;text-align: center">暂无数据</p>
  28. </div>
  29. </div>
  30. <div class="left-big-box-two">
  31. <div class="big-title-box">
  32. <img src="@/assets/ZDimages/bigData3_2/icon_znkz_tb.png">
  33. <p>智能控制</p>
  34. </div>
  35. <div class="control-max-box scrollbar-box" id="control-max-box">
  36. <div class="control-for-box" v-for="(item,index) in controlList" :key="index">
  37. <p class="control-for-title-p">{{item.name}}</p>
  38. <div class="control-for-img-box">
  39. <img class="position-img" src="@/assets/ZDimages/bigData3_2/icon_znkz_bg.png">
  40. <img v-if="item.enumName == 'AI_VENTILATION'" class="for-img" src="@/assets/ZDimages/bigData3_2/icon_znkz_tf.png">
  41. <img v-if="item.enumName == 'SWITCH'" class="for-img" src="@/assets/ZDimages/bigData3_2/icon_znkz_dy.png">
  42. </div>
  43. <img class="position-big-img" src="@/assets/ZDimages/bigData3_2/icon_znkz_wq.png">
  44. <el-switch
  45. v-if="(item.code == 3||item.code == 4) && item.pcType != 1"
  46. class="switch"
  47. @click.native="changeIsNeedCaptcha(item)"
  48. v-model="item.code"
  49. :active-value="4"
  50. :inactive-value="3"
  51. active-text="关闭"
  52. inactive-text="开启"
  53. disabled>
  54. </el-switch>
  55. <p class="control-null-p" v-if="(item.code != 3&&item.code != 4) && item.pcType != 1">离线</p>
  56. <p class="control-button-p" v-if="item.pcType == 1" @click="shadeButton(8,item.id)">操作</p>
  57. </div>
  58. <p v-if="!controlList[0]" style="line-height:200px;font-size:16px;color:#fff;text-align: center">暂无数据</p>
  59. </div>
  60. </div>
  61. <div class="left-big-box-three">
  62. <div class="big-title-box">
  63. <img src="@/assets/ZDimages/bigData3_2/icon_yygb_wxy.png">
  64. <p>危险源</p>
  65. </div>
  66. <div id="eCharts"></div>
  67. <p v-if="!eChartsData.nameList[0]" class="eCharts-null-p">暂无数据</p>
  68. </div>
  69. </div>
  70. <!--中间 楼栋/楼层/当前位置/疏散开关-->
  71. <div class="center-max-big-box">
  72. <div class="left-big-box-one">
  73. <div>
  74. <el-select v-model="buildingId" placeholder="请选择"
  75. :popper-append-to-body="false"
  76. @change="buildingChange"
  77. class="building-select-box">
  78. <el-option
  79. v-for="item in buildingOptions"
  80. :key="item.id"
  81. :label="item.name"
  82. :value="item.id">
  83. <div style="display: flex" v-if="item.planType">
  84. <img src="@/assets/ZDimages/bigData3_2/icon_lc_yc.png" style="margin:11px 10px 0 0;width:14px;height:12px;">
  85. <p style="margin-right:24px;">{{ item.name }}</p>
  86. </div>
  87. <div style="display: flex" v-else>
  88. <p style="margin:0 24px;">{{ item.name }}</p>
  89. </div>
  90. </el-option>
  91. </el-select>
  92. </div>
  93. <div>
  94. <el-select v-model="floorId" placeholder="请选择"
  95. :popper-append-to-body="false"
  96. @change="floorChange"
  97. class="floor-select-box">
  98. <el-option
  99. v-for="item in floorOptions"
  100. :key="item.id"
  101. :label="item.name"
  102. :value="item.id">
  103. <div style="display: flex" v-if="item.planType">
  104. <img src="@/assets/ZDimages/bigData3_2/icon_lc_yc.png" style="margin:11px 10px 0 0;width:14px;height:12px;">
  105. <p style="margin-right:24px;">{{ item.name }}</p>
  106. </div>
  107. <div style="display: flex" v-else>
  108. <p style="margin:0 24px;">{{ item.name }}</p>
  109. </div>
  110. </el-option>
  111. </el-select>
  112. </div>
  113. <el-tooltip class="item" effect="dark" :content="subText+floorText" placement="top">
  114. <p class="text-p">{{subText}} {{floorText}}</p>
  115. </el-tooltip>
  116. <p class="button-p-one" @click="evacuationButton">{{evacuationType?'结束疏散':'立即疏散'}}</p>
  117. <p class="button-p-two" @click="backButton">返回</p>
  118. </div>
  119. <div class="left-big-box-two">
  120. <div class="newEvacuation-map-max-big-box"
  121. v-if="mapType"
  122. :style="'width:'+mapData.width+'px;height:'+mapData.height+'px;transform: scale('+mapData.zoomData+');margin-top:-'+mapData.height/2+'px;margin-left:-'+mapData.width/2+'px;'">
  123. <div class="newEvacuation-map-big-box"
  124. :style="'width:'+mapData.width+'px;height:'+mapData.height+'px;'">
  125. <div class="newEvacuation-map-for-box for-map-box-one"
  126. :class="!item.planType && checkSubId ==item.subId ? 'room-type-one':(
  127. item.planType && checkSubId !=item.subId ? 'room-type-two':(
  128. item.planType && checkSubId ==item.subId ? 'room-type-three':(
  129. !item.loginAdmin ? 'room-type-noe':''
  130. )))"
  131. @click="checkSubClick(item)"
  132. v-for="(item,index) in mapList" :key="item.key" v-if="item.type == 1"
  133. :style="'top:'+item.y+'px;left:'+item.x+'px;width:'+item.w+'px;height:'+item.h+'px;'">
  134. <div class="newEvacuation-map-for-min-box">
  135. <!--名称/实验室名称-->
  136. <el-tooltip class="item" effect="dark" :content="item.roomType == '-99'?item.roomName:item.subName" placement="top">
  137. <p class="map-for-name-p" :style="'margin-top:'+((item.h/2)-20)+'px;'">{{item.roomType == '-99'?item.roomName:item.subName}}</p>
  138. </el-tooltip>
  139. <!--编号-->
  140. <el-tooltip class="item" effect="dark" :content="'('+item.roomNum+')'" placement="top">
  141. <p class="map-for-num-p">({{item.roomNum}})</p>
  142. </el-tooltip>
  143. <!--门-->
  144. <div class="position-box"
  145. :class="minItem.toward=='top'?'center-move-door-p-t':(minItem.toward=='bottom'?'center-move-door-p-b':(minItem.toward=='left'?'center-move-door-p-l':(minItem.toward=='right'?'center-move-door-p-r':'')))"
  146. v-for="(minItem,minIndex) in item.doorList" :key="minIndex"
  147. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  148. <!--实验室人数-->
  149. <div v-if="item.online!=null" class="user-num-box" :class="item.doorList[0].toward == 'top'?'user-num-two':'user-num-one'">
  150. <img src="@/assets/ZDimages/bigData3_2/icon_pmt_ry.png">
  151. <p>{{item.online}} 人</p>
  152. </div>
  153. </div>
  154. </div>
  155. <div class="newEvacuation-map-for-box for-map-box"
  156. v-for="(item,indexOne) in mapList" :key="item.key" v-if="item.type == 2"
  157. :style="'top:'+item.y+'px;left:'+item.x+'px;width:'+item.w+'px;height:'+item.h+'px;'">
  158. <div class="newEvacuation-map-for-min-box">
  159. <!--灯-->
  160. <div @click="shadeButton(2,minItem)"
  161. class="position-box"
  162. :class="
  163. minItem.state=='1'&&minItem.openType?'lightTopOn':(minItem.state=='1'&&!minItem.openType?'lightTopOff':
  164. (minItem.state=='2'&&minItem.openType?'lightBottomOn':(minItem.state=='2'&&!minItem.openType?'lightBottomOff':
  165. (minItem.state=='3'&&minItem.openType?'lightLeftOn':(minItem.state=='3'&&!minItem.openType?'lightLeftOff':
  166. (minItem.state=='4'&&minItem.openType?'lightRightOn':(minItem.state=='4'&&!minItem.openType?'lightRightOff':'')))))))"
  167. v-for="(minItem,minIndex) in item.lightList" :key="minIndex"
  168. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;cursor: pointer;'"></div>
  169. </div>
  170. </div>
  171. <div class="newEvacuation-map-for-box for-map-box-two"
  172. v-for="(item,indexTwo) in mapList" :key="item.key" v-if="item.type == 3"
  173. :class="item.roomCheckType?'for-map-box-two-check':''"
  174. :style="'top:'+item.y+'px;left:'+item.x+'px;width:'+item.w+'px;height:'+item.h+'px;'">
  175. <div class="newEvacuation-map-for-min-box"></div>
  176. </div>
  177. <div class="plan-map-for-box" :class="checkPlanId == item.subId?'check-plan-map-for-box':''"
  178. :style="'width:'+item.width+'px;height:'+item.height+'px;left:'+item.left+'px;top:'+item.top+'px;'"
  179. @click="checkPlanButton(item.subId)"
  180. v-for="(item,index) in planMapList" :key="item.subId" v-if="item.planType">
  181. <div class="plan-top-button-box">
  182. <p></p>
  183. <p class="el-icon-close" @click="offPlanShade(index)"></p>
  184. </div>
  185. <div class="plan-time-box">
  186. <img src="@/assets/ZDimages/bigData3_2/icon_dp_bjsj.png">
  187. <p>{{item.riskPlanTriggerTime}}</p>
  188. </div>
  189. <div :class="item.riskAttribute == 1?'plan-text-box':'plan-text-box-two'">
  190. <p class="plan-title-p" :class="item.riskPlanLevel==1?'color-type-1':(item.riskPlanLevel==2?'color-type-2':(item.riskPlanLevel==3?'color-type-3':(item.riskPlanLevel==4?'color-type-4':'')))">{{item.riskPlanLevelName}}</p>
  191. <p class="plan-text-p">{{item.name}}</p>
  192. </div>
  193. <p class="plan-button-p" v-if="item.riskAttribute == 1" @click="shadeButton(7,item.groupId)">结束预案</p>
  194. </div>
  195. </div>
  196. </div>
  197. <p class="null-mapList" v-if="!mapList[0]">暂无数据</p>
  198. </div>
  199. <div class="left-big-box-three">
  200. <div class="horn-max-big-box-one" v-show="fireType">
  201. <div class="horn-max-big-box-one-left">
  202. <div class="big-title-box">
  203. <img src="@/assets/ZDimages/bigData3_2/icon_yygb_tb.png">
  204. <p>语音广播</p>
  205. </div>
  206. <div class="radio-button-box scrollbar-box">
  207. <p class="horn-for-p" @click="checkTrumpet(index)" :class="item.type?'check-p':''"
  208. v-for="(item,index) in trumpetList" :key="index">{{item.name}}</p>
  209. <p v-if="!trumpetList[0]" style="line-height:200px;font-size:16px;color:#fff;text-align: center">暂无数据</p>
  210. </div>
  211. <div class="radio-text-box scrollbar-box">
  212. <div v-for="(item,index) in radioTextList" :key="index">
  213. <p>
  214. <span>{{item.name}}</span>
  215. <span>{{item.time}}</span>
  216. </p>
  217. <p>{{item.text}}</p>
  218. </div>
  219. </div>
  220. <div class="radio-input-box">
  221. <el-input placeholder="请输入内容" v-model="inputText" maxLength="50">
  222. <p class="radio-input-button" slot="append" @click="addHxpChemical">发送</p>
  223. </el-input>
  224. </div>
  225. </div>
  226. <div class="horn-max-big-box-one-right">
  227. <div class="big-title-box">
  228. <img src="@/assets/ZDimages/bigData3_2/icon_zdmh.png">
  229. <p>自动灭火</p>
  230. </div>
  231. <div class="fire-max-box" v-if="fireListType">
  232. <div class="fire-min-box">
  233. <p class="fire-title-p" :class="!fireData.temperatureType?'fire-title-color-one':'fire-title-color-two'">{{!fireData.temperatureType?'正常':'温度异常'}}</p>
  234. <img class="center-img" src="@/assets/ZDimages/bigData3_2/icon_zdmh_wd_zc.png" v-if="!fireData.temperatureType">
  235. <img class="center-img" src="@/assets/ZDimages/bigData3_2/icon_zdmh_wd_yc.png" v-if="fireData.temperatureType">
  236. <img class="background-img" src="@/assets/ZDimages/bigData3_2/img_zdmh_zcbg.png" v-if="!fireData.temperatureType">
  237. <img class="background-img" src="@/assets/ZDimages/bigData3_2/img_zdmh_ycbg.png" v-if="fireData.temperatureType">
  238. <p class="fire-name-p">温度</p>
  239. <p class="img-p" :class="!fireData.temperatureType?'img-p-1-one':'img-p-1-two'"></p>
  240. <p class="img-p" :class="!fireData.temperatureType?'img-p-2-one':'img-p-2-two'"></p>
  241. <p class="img-p" :class="!fireData.temperatureType?'img-p-3-one':'img-p-3-two'"></p>
  242. </div>
  243. <div class="fire-min-box">
  244. <p class="fire-title-p" :class="!fireData.smokeType?'fire-title-color-one':'fire-title-color-two'">{{!fireData.smokeType?'正常':'发现烟雾'}}</p>
  245. <img class="center-img" src="@/assets/ZDimages/bigData3_2/icon_zdmh_yg_zc.png" v-if="!fireData.smokeType">
  246. <img class="center-img" src="@/assets/ZDimages/bigData3_2/icon_zdmh_yg_yc.png" v-if="fireData.smokeType">
  247. <img class="background-img" src="@/assets/ZDimages/bigData3_2/img_zdmh_zcbg.png" v-if="!fireData.smokeType">
  248. <img class="background-img" src="@/assets/ZDimages/bigData3_2/img_zdmh_ycbg.png" v-if="fireData.smokeType">
  249. <p class="fire-name-p">烟感</p>
  250. <p class="img-p" :class="!fireData.smokeType?'img-p-1-one':'img-p-1-two'"></p>
  251. <p class="img-p" :class="!fireData.smokeType?'img-p-2-one':'img-p-2-two'"></p>
  252. <p class="img-p" :class="!fireData.smokeType?'img-p-3-one':'img-p-3-two'"></p>
  253. </div>
  254. <div class="fire-min-box">
  255. <p class="fire-title-p" :class="!fireData.flameType?'fire-title-color-one':'fire-title-color-two'">{{!fireData.flameType?'正常':'发现火焰'}}</p>
  256. <img class="center-img" src="@/assets/ZDimages/bigData3_2/icon_zdmh_hyjc_zc.png" v-if="!fireData.flameType">
  257. <img class="center-img" src="@/assets/ZDimages/bigData3_2/icon_zdmh_hyjc_yc.png" v-if="fireData.flameType">
  258. <img class="background-img" src="@/assets/ZDimages/bigData3_2/img_zdmh_zcbg.png" v-if="!fireData.flameType">
  259. <img class="background-img" src="@/assets/ZDimages/bigData3_2/img_zdmh_ycbg.png" v-if="fireData.flameType">
  260. <p class="fire-name-p">火焰监测</p>
  261. <p class="img-p" :class="!fireData.flameType?'img-p-1-one':'img-p-1-two'"></p>
  262. <p class="img-p" :class="!fireData.flameType?'img-p-2-one':'img-p-2-two'"></p>
  263. <p class="img-p" :class="!fireData.flameType?'img-p-3-one':'img-p-3-two'"></p>
  264. </div>
  265. </div>
  266. <p class="fire-button" v-if="fireListType&&!fireStartType&&!fireTextStartType" @click="shadeButton(1)">一键灭火</p>
  267. <p class="fire-text" v-if="fireListType&&fireStartType&&!fireTextStartType">{{fireStartText}},灭火程序将于{{fireStartTime}}秒后结束</p>
  268. <p class="fire-text-one" v-if="fireListType&&!fireStartType&&fireTextStartType">自动灭火完成,请确保在关闭灭火一体机电源后补充灭火耗材,耗</p>
  269. <p class="fire-text-two" v-if="fireListType&&!fireStartType&&fireTextStartType">材补充完毕需要打开电源并点击一体机上的复位按钮</p>
  270. <div class="null-fire-box" v-if="!fireListType">
  271. <img src="@/assets/ZDimages/bigData3_2/icon_sblx.png">
  272. <p>设备已离线,请及时处理</p>
  273. </div>
  274. </div>
  275. </div>
  276. <div class="horn-max-big-box-two" v-show="!fireType">
  277. <div class="big-title-box">
  278. <img src="@/assets/ZDimages/bigData3_2/icon_yygb_tb.png">
  279. <p>语音广播</p>
  280. </div>
  281. <div class="horn-big-box-two">
  282. <div class="horn-max-big-box-two-left scrollbar-box">
  283. <p class="horn-for-p" @click="checkTrumpet(index)" :class="item.type?'check-p':''"
  284. v-for="(item,index) in trumpetList" :key="index">{{item.name}}</p>
  285. <p v-if="!trumpetList[0]" style="line-height:200px;font-size:16px;color:#fff;text-align: center">暂无数据</p>
  286. </div>
  287. <div class="horn-max-big-box-two-right">
  288. <div class="radio-text-box scrollbar-box">
  289. <div v-for="(item,index) in radioTextList" :key="index">
  290. <p>
  291. <span>{{item.name}}</span>
  292. <span>{{item.time}}</span>
  293. </p>
  294. <p>{{item.text}}</p>
  295. </div>
  296. </div>
  297. <div class="radio-input-box">
  298. <el-input placeholder="请输入内容" v-model="inputText" maxLength="50">
  299. <p class="radio-input-button" slot="append" @click="addHxpChemical">发送</p>
  300. </el-input>
  301. </div>
  302. </div>
  303. </div>
  304. </div>
  305. </div>
  306. </div>
  307. <!--右侧 人员/视频-->
  308. <div class="right-max-big-box">
  309. <div class="left-big-box-one">
  310. <div class="big-title-box">
  311. <img src="@/assets/ZDimages/bigData3_2/icon_sysnry_tb.png">
  312. <p>实验室内人员</p>
  313. </div>
  314. <div class="user-max-box scrollbar-box" id="user-max-box">
  315. <div class="user-box" v-for="(item,index) in userList" :key="index">
  316. <div>
  317. <img :src="item.avatar">
  318. <p>{{item.nickName}}</p>
  319. </div>
  320. </div>
  321. <p v-if="!userList[0]" style="line-height:200px;font-size:16px;color:#fff;text-align: center">暂无数据</p>
  322. </div>
  323. </div>
  324. <div class="left-big-box-two scrollbar-box">
  325. <div class="video-max-big-for-box">
  326. <div class="video-max-big-title-box">
  327. <p>实验室摄像头</p>
  328. <i :class="subjectVideoType?'el-icon-arrow-up':'el-icon-arrow-down'" @click="subjectVideoCheckClick"></i>
  329. </div>
  330. <div class="video-mx-big-box" v-show="subjectVideoType"
  331. v-for="(item,index) in subjectVideoList" :key="index">
  332. <video class="video-box" :id="item.divId" ref="videoRef" :poster="videoCover"
  333. autoplay controls muted width="368px" height="210px"></video>
  334. </div>
  335. </div>
  336. <div class="video-max-big-for-box" >
  337. <div class="video-max-big-title-box">
  338. <p>楼层摄像头</p>
  339. <i :class="floorVideoType?'el-icon-arrow-up':'el-icon-arrow-down'" @click="floorVideoCheckClick"></i>
  340. </div>
  341. <div class="video-mx-big-box" v-show="floorVideoType"
  342. v-for="(item,index) in floorVideoList" :key="index">
  343. <video class="video-box" :id="item.divId" ref="videoRef" autoplay controls muted width="368px" height="210px"></video>
  344. </div>
  345. </div>
  346. </div>
  347. </div>
  348. <!--确认弹层-->
  349. <div class="shade-max-big-box" v-if="shadeType != 0">
  350. <div class="shade-big-box">
  351. <p class="off-button el-icon-close" @click="shadeButton(4)"></p>
  352. <div class="text-box" v-if="shadeType == 1">
  353. <p>是否确认执行一键灭火</p>
  354. <p>该操作存在风险,请您务必确认实验室内人员已安全撤离</p>
  355. </div>
  356. <div class="text-box" v-if="shadeType == 2 || shadeType == 3 || shadeType == 4 || shadeType == 5 || shadeType == 6">
  357. <p>{{shadeText}}</p>
  358. <p></p>
  359. </div>
  360. <div class="button-box">
  361. <p class="button-null"></p>
  362. <p class="button-p" style="margin-right:39px;" @click="shadeButton(4)">取消</p>
  363. <p class="button-p" @click="shadeButton(5)">确定</p>
  364. <p class="button-null"></p>
  365. </div>
  366. </div>
  367. </div>
  368. <!--疏散选择-->
  369. <div class="evacuation-shade-max-big-box" v-if="evacuationShadeType">
  370. <div class="evacuation-shade-big-box">
  371. <p class="position-title-p">请确定疏散出口</p>
  372. <p class="position-off-button-p el-icon-close" @click="executeEvacuation(2)"></p>
  373. <div class="evacuation-shade-map-max-big-box">
  374. <div class="evacuation-shade-map-big-box"
  375. :style="'width:'+mapData.width+'px;height:'+mapData.height+'px;transform: scale('+mapData.zoomData+');margin-top:-'+mapData.height/2+'px;margin-left:-'+mapData.width/2+'px;'">
  376. <div class="evacuation-shade-map-box"
  377. :style="'width:'+mapData.width+'px;height:'+mapData.height+'px;'">
  378. <div class="evacuation-shade-map-for-box for-map-box-one"
  379. :class="!item.planType && checkSubId ==item.subId ? 'room-type-one':(
  380. item.planType && checkSubId !=item.subId ? 'room-type-two':(
  381. item.planType && checkSubId ==item.subId ? 'room-type-three':(
  382. !item.loginAdmin ? 'room-type-noe':''
  383. )))"
  384. v-for="(item,index) in shadeMapList" :key="index" v-if="item.type == 1"
  385. :style="'top:'+item.y+'px;left:'+item.x+'px;width:'+item.w+'px;height:'+item.h+'px;'">
  386. <div class="evacuation-shade-map-min-box">
  387. <!--名称/实验室名称-->
  388. <el-tooltip class="item" effect="dark" :content="item.roomType == '-99'?item.roomName:item.subName" placement="top">
  389. <p class="map-for-name-p" :style="'margin-top:'+((item.h/2)-20)+'px;'">{{item.roomType == '-99'?item.roomName:item.subName}}</p>
  390. </el-tooltip>
  391. <!--编号-->
  392. <el-tooltip class="item" effect="dark" :content="'('+item.roomNum+')'" placement="top">
  393. <p class="map-for-num-p">({{item.roomNum}})</p>
  394. </el-tooltip>
  395. <!--门-->
  396. <div class="position-box"
  397. :class="minItem.toward=='top'?'center-move-door-p-t':(minItem.toward=='bottom'?'center-move-door-p-b':(minItem.toward=='left'?'center-move-door-p-l':(minItem.toward=='right'?'center-move-door-p-r':'')))"
  398. v-for="(minItem,minIndex) in item.doorList" :key="minIndex"
  399. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  400. </div>
  401. </div>
  402. <div class="evacuation-shade-map-for-box for-map-box"
  403. v-for="(item,indexOne) in shadeMapList" :key="indexOne" v-if="item.type == 2"
  404. :style="'top:'+item.y+'px;left:'+item.x+'px;width:'+item.w+'px;height:'+item.h+'px;'">
  405. <div class="evacuation-shade-map-min-box"></div>
  406. </div>
  407. <div class="evacuation-shade-map-for-box for-map-box-two"
  408. v-for="(item,indexTwo) in shadeMapList" :key="indexTwo" v-if="item.type == 3"
  409. @click="shadeCheckRoomClick(item)"
  410. :class="item.roomCheckType?'for-map-box-two-check':''"
  411. :style="'top:'+item.y+'px;left:'+item.x+'px;width:'+item.w+'px;height:'+item.h+'px;'">
  412. <div class="evacuation-shade-map-min-box"></div>
  413. </div>
  414. </div>
  415. </div>
  416. </div>
  417. <p class="evacuation-button-p" @click="executeEvacuation(1)">已确定疏散出口,立即执行疏散</p>
  418. </div>
  419. </div>
  420. <!--灭火倒计时-->
  421. <div class="fire-shade-max-big-box" v-if="fireShadeType">
  422. <div class="fire-shade-big-box">
  423. <img src="@/assets/ZDimages/bigData3_2/img_mhz.png">
  424. <p>一键灭火启动中,倒计时<span>{{fireTime}}</span>秒.</p>
  425. <p @click="putOutTheFireButton">放弃一键灭火</p>
  426. </div>
  427. </div>
  428. </div>
  429. </template>
  430. <script>
  431. import mqtt from 'mqtt'
  432. import flvjs from 'flv.js'
  433. import { hardWareControl } from "@/api/laboratory/hardware";
  434. import { subjectInfo,startUrl } from "@/api/laboratory/subject";
  435. import { getCameraByFloor } from '@/api/executeThePlan.js'
  436. import { getDeviceList,addHxpChemical,getHornLastMess, subOnlineUser,
  437. exitHazardTotal,getFireStatus,getFloorData,getBuildOrFloorList,
  438. executeEvacuation,endEvacuation,openLight,closeLight,getRedisEvacuation,
  439. outfirepc,isCancelOutFile,selectTriggerInfo,riskPlanId} from '@/api/evacuationBigData/index.js'
  440. import { closeRiskPlan } from '@/api/bigData/index.js'
  441. import { controlSwitch } from "@/api/laboratory/hardware";
  442. export default {
  443. name: 'newEvacuationBigData',
  444. props:{
  445. propsBigData:{},
  446. },
  447. computed:{
  448. Obj(){
  449. return this.$store.state.settings.planData
  450. }
  451. },
  452. watch:{
  453. Obj(newVal,oldVal){
  454. //可以对数据执行相应的操作
  455. console.log(newVal,oldVal)
  456. this.selectTriggerInfo();
  457. }
  458. },
  459. data() {
  460. return {
  461. videoCover:window.location.href.split('://')[0]+'://' + process.env.VUE_APP_BASE_API + localStorage.getItem('videoCover'),
  462. //当前路由状态
  463. routeType:false,
  464. //全局MQTT相关
  465. allClient:{},
  466. planTopic:"lab/newexit/line",//预案
  467. //楼层MQTT相关
  468. floorClient:{},
  469. messageTopic:"lab/horn",//消息
  470. evacuationTopic:"lab/newexit/line",//疏散
  471. userTopic:"lab/subuser/change",//实验室人员数量
  472. //实验室MQTT相关
  473. subClient:{},
  474. sensorTopic:"lab/function/data",//传感器
  475. switchTopic:"lab/hardware/data",//硬件
  476. //灭火设备MQTT相关
  477. fireClient:{},
  478. fireTopic:"lab/fireDevice/Warn/",//传感器状态异常
  479. fireOnlineTopic:"lab/fireDevice/isOnline/",//设备是否在线
  480. firePerformTopic:"lab/fireDevice/executing/",//是否正在执行灭火操作
  481. //当前实验室/楼栋/楼层
  482. subText:"",
  483. floorText:"",
  484. //楼栋ID
  485. buildingId:null,
  486. //楼层ID
  487. floorId:null,
  488. //实验室ID
  489. subId:null,
  490. //楼栋下拉列表
  491. buildingOptions:[],
  492. //楼层下拉列表
  493. floorOptions:[],
  494. //传感器小图标数据
  495. sensorIconData:null,
  496. //传感器数据
  497. sensorList:[],
  498. //控制器数据
  499. controlList:[],
  500. //控制器开关
  501. code:3,
  502. //喇叭列表
  503. trumpetList:[],
  504. //广播历史记录
  505. inputText:"",
  506. radioTextList:[],
  507. //有无火焰设备状态
  508. fireType:false,
  509. //灭火设备在线离线
  510. fireListType:false,
  511. fireData:{ //0正常 1异常
  512. temperatureType:false,//温度
  513. smokeType:false,//烟感
  514. flameType:false,//火焰
  515. },
  516. //灭火设备code
  517. fireCode:null,
  518. //灭火启动状态
  519. fireStartType:false,
  520. //灭火描述
  521. fireStartText:null,
  522. //灭火完成后展示提示文字状态
  523. fireTextStartType:false,
  524. /***********一键灭火相关数据***********/
  525. //一件灭火遮罩
  526. fireShadeType:false,
  527. //灭火倒计时
  528. fireTime:null,
  529. //灭火倒计时方法数据
  530. fireTimeData:null,
  531. //灭火中倒计时
  532. fireStartTime:null,
  533. //灭火中倒计时方法数据
  534. fireStartTimeData:null,
  535. //一键灭火倒计时开启状态
  536. putOutTheFireType:false,
  537. //实验室人员数据
  538. userList:[],
  539. //地图数据
  540. mapType:false,
  541. mapData:{},
  542. mapList:[],
  543. zoomData:null,
  544. //预案发生实验室弹层数据
  545. planMapList:[],
  546. //遮罩层
  547. shadeType:0,
  548. shadeText:'',
  549. shadeData:{},
  550. //视频监控相关数据
  551. subjectVideoType:false,
  552. subjectVideoIds:[],
  553. subjectVideoList:[],
  554. subjectVideoPlayList:[],
  555. floorVideoType:false,
  556. floorVideoIds:[],
  557. floorVideoList:[],
  558. floorVideoPlayList:[],
  559. /********************疏散遮罩相关数据********************/
  560. //当前疏散状态
  561. evacuationType:false,
  562. //疏散弹窗状态
  563. evacuationShadeType:false,
  564. //疏散用布局数据
  565. shadeMapList:[],
  566. //实验室选中/报警数据
  567. checkSubId:null,
  568. //传参状态
  569. planDataType:false,
  570. //优先显示的提示
  571. checkPlanId:null,
  572. //结束预案时使用的预案ID
  573. checkRiskPlanId:null,
  574. //eCharts
  575. eChartsData:{
  576. nameList: [],
  577. numList: [],
  578. maxNumList: [],
  579. },
  580. }
  581. },
  582. created() {
  583. if(this.$route.path == '/newEvacuationBigData'){
  584. this.$set(this,'routeType',true);
  585. }else{
  586. this.$set(this,'routeType',false);
  587. }
  588. if(this.$route.query.subId){
  589. this.$set(this,'buildingId',parseInt(this.$route.query.buildId));
  590. this.$set(this,'floorId',parseInt(this.$route.query.floorId));
  591. this.$set(this,'subId',parseInt(this.$route.query.subId));
  592. this.$set(this,'checkSubId',parseInt(this.$route.query.subId));
  593. if(this.$route.query.groupId){
  594. this.setRiskPlanId(this.$route.query.groupId);
  595. }
  596. this.$set(this,'planDataType',true);
  597. this.initialization();
  598. console.log('跳转传参',this.$route.query);
  599. }else if(this.propsBigData.subId){
  600. this.$set(this,'buildingId',parseInt(this.propsBigData.buildId));
  601. this.$set(this,'floorId',parseInt(this.propsBigData.floorId));
  602. this.$set(this,'subId',parseInt(this.propsBigData.subId));
  603. this.$set(this,'checkSubId',parseInt(this.propsBigData.subId));
  604. if(this.propsBigData.groupId){
  605. this.setRiskPlanId(this.propsBigData.groupId);
  606. }
  607. this.$set(this,'planDataType',true);
  608. this.initialization();
  609. console.log('父类传参',this.propsBigData);
  610. }else{
  611. this.$set(this,'planDataType',false);
  612. this.initialization();
  613. console.log('无参数',this.$route.query);
  614. }
  615. },
  616. mounted(){
  617. //全局类MQTT
  618. // this.onAllMQTT('on');
  619. //初始化
  620. // this.initialization();
  621. },
  622. methods:{
  623. //标记当前查看的预案
  624. setRiskPlanId(id){
  625. let obj = {
  626. groupId:id,
  627. ifCheck:1,
  628. };
  629. riskPlanId(obj).then(response => {})
  630. },
  631. //初始化
  632. initialization(){
  633. getBuildOrFloorList({type:2,parentId:''}).then(response => {
  634. if(response.data[0]){
  635. for(let i=0;i<response.data.length;i++){
  636. response.data[i].planType = false
  637. }
  638. this.$set(this,'buildingOptions',response.data);
  639. if(this.planDataType){
  640. this.getBuildOrFloorList();
  641. }else{
  642. //处理实验室数量多的楼栋优先选择
  643. let num = 0;
  644. let index = null;
  645. for(let i=0;i<response.data.length;i++){
  646. if(response.data[i].subNum>num){
  647. num = response.data[i].subNum;
  648. index = i;
  649. }
  650. }
  651. this.$set(this,'buildingId',response.data[index].id);
  652. this.getBuildOrFloorList('automatic');
  653. }
  654. }
  655. })
  656. },
  657. //返回按钮
  658. backButton(){
  659. this.$parent.goPage(1);
  660. },
  661. //全屏页面跳转
  662. goRoute(){
  663. if(this.routeType){
  664. this.$router.push({
  665. path: "/emergencyManagement/newPerformEvacuation",
  666. query: {
  667. buildId: this.$route.query.buildId?this.$route.query.buildId:(this.propsBigData.buildId?this.propsBigData.buildId:''),
  668. floorId:this.$route.query.floorId?this.$route.query.floorId:(this.propsBigData.floorId?this.propsBigData.floorId:''),
  669. subId:this.$route.query.subId?this.$route.query.subId:(this.propsBigData.subId?this.propsBigData.subId:''),
  670. }
  671. })
  672. }else{
  673. this.$router.push({
  674. path: "/newEvacuationBigData",
  675. query: {
  676. buildId: this.$route.query.buildId?this.$route.query.buildId:(this.propsBigData.buildId?this.propsBigData.buildId:''),
  677. floorId:this.$route.query.floorId?this.$route.query.floorId:(this.propsBigData.floorId?this.propsBigData.floorId:''),
  678. subId:this.$route.query.subId?this.$route.query.subId:(this.propsBigData.subId?this.propsBigData.subId:''),
  679. }
  680. })
  681. }
  682. },
  683. /*********************************** 点击操作事件-相关接口 *********************************/
  684. //选中实验室
  685. checkSubClick(item){
  686. let self = this;
  687. if(item.roomType != '-99'){
  688. if(item.loginAdmin){
  689. if(this.checkSubId != item.subId){
  690. this.$set(this,'subId',item.subId);
  691. this.$set(this,'checkSubId',item.subId);
  692. let subText = item.roomType == '-99'?item.roomName:item.subName +' - '+ item.roomNum;
  693. this.$set(this,'subText',subText);
  694. this.buttonSubject();
  695. }
  696. if(item.planType){
  697. for(let i=0;i<self.planMapList.length;i++){
  698. if(self.planMapList[i].subId == item.subId){
  699. this.$set(self.planMapList[i],'planType',true)
  700. }
  701. }
  702. }
  703. }else{
  704. this.msgError('操作失败,您不是该实验室的管理人员。')
  705. }
  706. }
  707. },
  708. //关闭实验室预案弹窗
  709. offPlanShade(index){
  710. this.$set(this.planMapList[index],'planType',false)
  711. },
  712. //设备switch开关
  713. changeIsNeedCaptcha(item){
  714. let self = this;
  715. console.log(item)
  716. if(item.code!=3 && item.code!=4){
  717. return
  718. }
  719. this.$set(this,'shadeData',item);
  720. let text = item.code==3?'关闭':(item.code==4?'开启':'')
  721. this.shadeButton(3,`是否`+text+`此设备?`);
  722. },
  723. //遮罩层开关/弹层提示确认
  724. shadeButton(type,text){
  725. if(type == 1){
  726. this.$set(this,'shadeType',1);
  727. }else if(type == 2){
  728. //疏散灯开关 执行疏散时才可以开启
  729. if(this.evacuationType){
  730. let newText = `是否`+(text.openType?'关闭':'开启')+`该疏散灯?`
  731. this.$set(this,'shadeData',text);
  732. this.$set(this,'shadeText',newText);
  733. this.$set(this,'shadeType',2);
  734. }
  735. }else if(type == 3){
  736. //设备开关
  737. this.$set(this,'shadeText',text);
  738. this.$set(this,'shadeType',3);
  739. }else if(type == 4){
  740. this.$set(this,'shadeType',0)
  741. }else if(type == 5){
  742. if(this.shadeType == 1){
  743. //一键灭火弹窗
  744. this.putOutTheFireButton();
  745. }else if(this.shadeType == 2){
  746. //开关灯弹窗
  747. if(this.shadeData.openType){
  748. //关闭
  749. this.closeLight();
  750. }else{
  751. //开启
  752. this.openLight();
  753. }
  754. }else if(this.shadeType == 3){
  755. //设备开关弹窗
  756. this.switchChange(this.shadeData)
  757. }else if(this.shadeType == 4){
  758. //结束疏散
  759. let obj = {
  760. buildId:this.buildingId,
  761. floorId:this.floorId,
  762. }
  763. endEvacuation(obj).then(response => {
  764. this.$set(this,'shadeType',0);
  765. this.getBuildingData();
  766. })
  767. }else if(this.shadeType == 5){
  768. //结束预案
  769. closeRiskPlan({id:this.checkRiskPlanId}).then(response => {
  770. this.$set(this,'shadeType',0);
  771. this.selectTriggerInfo();
  772. });
  773. }else if(this.shadeType == 6){
  774. //通风橱开关
  775. controlSwitch({id:this.checkRiskPlanId}).then(response => {
  776. this.$set(this,'shadeType',0);
  777. this.selectTriggerInfo();
  778. });
  779. }
  780. }else if(type == 6){
  781. this.$set(this,'shadeText','是否结束疏散?');
  782. this.$set(this,'shadeType',4);
  783. }else if(type == 7){
  784. this.$set(this,'shadeText','是否结束预案?');
  785. this.$set(this,'checkRiskPlanId',text);
  786. this.$set(this,'shadeType',5);
  787. }else if(type == 8){
  788. this.$set(this,'shadeText','是否确认操作该通风橱?');
  789. this.$set(this,'checkRiskPlanId',text);
  790. this.$set(this,'shadeType',6);
  791. }
  792. },
  793. //选中优先展示的预案弹窗
  794. checkPlanButton(id){
  795. this.$set(this,'checkPlanId',id);
  796. },
  797. //实验室视频展开收起开关
  798. subjectVideoCheckClick(){
  799. if(this.subjectVideoType){
  800. this.videoOff('subject')
  801. }else{
  802. if(this.subjectVideoIds[0]){
  803. this.startUrl('subject');
  804. }else{
  805. this.msgError('该实验室未配置摄像头')
  806. }
  807. }
  808. },
  809. //楼层视频展开收起开关
  810. floorVideoCheckClick(){
  811. if(this.floorVideoType){
  812. this.videoOff('floor')
  813. }else{
  814. if(this.floorVideoIds[0]){
  815. this.startUrl('floor');
  816. }else{
  817. this.msgError('该楼层未配置摄像头')
  818. }
  819. }
  820. },
  821. //楼栋选择
  822. buildingChange(val){
  823. this.$set(this,'buildingId',val);
  824. this.getBuildOrFloorList('automatic');
  825. },
  826. //楼层选择
  827. floorChange(val){
  828. this.$set(this,'floorId',val);
  829. //获取楼层消息
  830. this.getHornLastMess();
  831. //获取楼层摄像头数据
  832. this.getCameraByFloor();
  833. //获取楼层数据
  834. this.getBuildingData();
  835. //楼层mqtt
  836. this.offFloorMQTT('on');
  837. //断开楼层视频流
  838. this.videoOff('floor');
  839. },
  840. //开始/结束疏散按钮
  841. evacuationButton(){
  842. let self = this;
  843. if(this.evacuationType){
  844. //结束疏散
  845. this.shadeButton(6);
  846. }else{
  847. //开始疏散
  848. //默认勾选所有疏散口
  849. if(!this.mapList[0]){
  850. this.msgError('没有楼层数据,无法疏散')
  851. return
  852. }
  853. for(let i=0;i<self.shadeMapList.length;i++){
  854. if(self.shadeMapList[i].type == 3){
  855. self.shadeMapList[i].roomCheckType = true;
  856. }
  857. }
  858. this.$set(this,'evacuationShadeType',true);
  859. }
  860. },
  861. //选中疏散通道
  862. shadeCheckRoomClick(item){
  863. item.roomCheckType = !item.roomCheckType;
  864. },
  865. //执行疏散 上报疏散通道
  866. executeEvacuation(type){
  867. let self = this;
  868. if(type == 1){
  869. let list = [];
  870. let doorPointNames = [];
  871. for(let i=0;i<self.shadeMapList.length;i++){
  872. if(self.shadeMapList[i].type == 3){
  873. if(!self.shadeMapList[i].roomCheckType){
  874. list.push(self.shadeMapList[i].key)
  875. }else{
  876. doorPointNames.push(self.shadeMapList[i].key)
  877. }
  878. }
  879. }
  880. if(!doorPointNames[0]){
  881. this.msgError('请选择疏散出口')
  882. return
  883. }
  884. let obj = {
  885. buildId:this.buildingId,
  886. floorId:this.floorId,
  887. subId: this.subId,
  888. badPointNames:list,
  889. doorPointNames:doorPointNames,
  890. }
  891. executeEvacuation(obj).then(response => {
  892. for(let o=0;o<self.mapList.length;o++){
  893. if(self.mapList[o].type == 2){
  894. for(let x=0;x<self.mapList[o].lightList.length;x++){
  895. let num = 0;
  896. for(let i=0;i<response.data.lightPointSet.length;i++){
  897. if(self.mapList[o].lightList[x].key == response.data.lightPointSet[i].key){
  898. num++
  899. }
  900. }
  901. self.mapList[o].lightList[x].openType = num != 0;
  902. }
  903. }
  904. }
  905. for(let i=0;i<response.data.doorPointNames.length;i++){
  906. for(let o=0;o<self.mapList.length;o++){
  907. if(self.mapList[o].type == 3){
  908. if(response.data.doorPointNames[i] == self.mapList[o].key){
  909. self.mapList[o].roomCheckType = true;
  910. }
  911. }
  912. }
  913. }
  914. this.msgSuccess(response.msg);
  915. this.$set(this,'evacuationShadeType',false);
  916. this.$set(this,'evacuationType',true);
  917. this.$forceUpdate();
  918. })
  919. console.log('key',list);
  920. }else if(type == 2){
  921. this.$set(this,'evacuationShadeType',false);
  922. }
  923. },
  924. //执行灭火
  925. putOutTheFireButton(){
  926. let self = this;
  927. if(!self.putOutTheFireType){
  928. let obj = {
  929. subjectId:self.subId,
  930. deviceCode:self.fireCode,
  931. }
  932. outfirepc(obj).then(response => {
  933. if(response.data.waitTime){
  934. self.$set(self,'fireTime',response.data.waitTime);
  935. self.fireTimeData = window.setInterval(refreshCount, 1000);
  936. self.$set(self,'shadeType',0);
  937. self.$set(self,'fireShadeType',true);
  938. self.$set(self,'putOutTheFireType',true);
  939. function refreshCount() {
  940. if(self.fireTime<=1){
  941. window.clearInterval(self.fireTimeData);
  942. self.$set(self,'putOutTheFireType',false);
  943. self.$set(self,'fireShadeType',false);
  944. }else{
  945. self.fireTime--
  946. }
  947. }
  948. }else{
  949. self.msgError('一键灭火启动失败')
  950. }
  951. })
  952. }else{
  953. let obj = {
  954. subjectId:this.subId
  955. };
  956. isCancelOutFile(obj).then(response => {
  957. if(response.code == 200){
  958. window.clearInterval(self.fireTimeData);
  959. self.$set(self,'putOutTheFireType',false);
  960. self.$set(self,'fireShadeType',false);
  961. }else{
  962. self.msgError('放弃一键灭火失败')
  963. }
  964. })
  965. }
  966. },
  967. //灭火中倒计时
  968. fireStartTimeFunction(time){
  969. let self = this;
  970. self.$set(self,'fireStartTime',time);
  971. self.fireStartTimeData = window.setInterval(refreshCount, 1000);
  972. function refreshCount() {
  973. if(self.fireStartTime<=1){
  974. window.clearInterval(self.fireStartTimeData);
  975. self.$set(self,'fireStartTimeData',null);
  976. self.$set(self,'fireStartType',false);
  977. self.$set(self,'fireTextStartType',true);
  978. }else{
  979. self.fireStartTime--
  980. }
  981. }
  982. },
  983. //获取相关实验室数据
  984. buttonSubject(){
  985. //获取实验室人员数据
  986. this.subOnlineUser();
  987. //获取危险源数据
  988. this.exitHazardTotal();
  989. //获取楼层喇叭
  990. this.getDeviceList();
  991. //获取实验室数据(传感器/硬件)
  992. this.subjectInfo();
  993. //获取实验室火焰报警数据
  994. this.$set(this,'fireStartType',false);
  995. this.$set(this,'fireTextStartType',false);
  996. if(this.fireStartTimeData){
  997. window.clearInterval(this.fireStartTimeData);
  998. this.$set(this,'fireStartTimeData',null);
  999. }
  1000. this.getFireStatus();
  1001. //实验室相关MQTT
  1002. this.offSubMQTT('on');
  1003. //断开实验室视频流
  1004. this.videoOff('subject');
  1005. },
  1006. /*********************************** 查询当前是否有进行中的疏散-相关接口 *********************************/
  1007. getRedisEvacuation(){
  1008. let self = this;
  1009. let obj = {
  1010. buildId:this.buildingId,
  1011. floorId:this.floorId,
  1012. }
  1013. getRedisEvacuation(obj).then(response => {
  1014. if(response.data.doorPointNames){
  1015. this.$set(this,'evacuationType',true);
  1016. for(let o=0;o<self.mapList.length;o++){
  1017. if(self.mapList[o].type == 2){
  1018. for(let x=0;x<self.mapList[o].lightList.length;x++){
  1019. let num = 0;
  1020. for(let i=0;i<response.data.lightPointSet.length;i++){
  1021. if(response.data.lightPointSet[i]){//处理后端返回的异常的NULL
  1022. if(self.mapList[o].lightList[x].key == response.data.lightPointSet[i].key){
  1023. num++
  1024. }
  1025. }
  1026. }
  1027. self.mapList[o].lightList[x].openType = num != 0;
  1028. }
  1029. }
  1030. }
  1031. for(let i=0;i<response.data.doorPointNames.length;i++){
  1032. for(let o=0;o<self.mapList.length;o++){
  1033. if(self.mapList[o].type == 3){
  1034. if(response.data.doorPointNames[i] == self.mapList[o].key){
  1035. self.mapList[o].roomCheckType = true;
  1036. }
  1037. }
  1038. }
  1039. }
  1040. this.$forceUpdate();
  1041. }else{
  1042. this.$set(this,'evacuationType',false);
  1043. }
  1044. });
  1045. },
  1046. /*********************************** 喇叭-相关接口 *********************************/
  1047. //获取喇叭列表
  1048. getDeviceList(){
  1049. let obj ={
  1050. subId:this.subId,
  1051. floorId:this.floorId,
  1052. page:1,
  1053. pageSize:100,
  1054. };
  1055. getDeviceList(obj).then(response => {
  1056. for(let i=0;i<response.data.length;i++){
  1057. response.data[i].type = false;
  1058. }
  1059. this.$set(this,'trumpetList',response.data)
  1060. });
  1061. },
  1062. //喇叭操作
  1063. checkTrumpet(index){
  1064. let self = this;
  1065. for(let i=0;i<self.trumpetList.length;i++){
  1066. self.trumpetList[i].type = i == index;
  1067. }
  1068. },
  1069. //发送消息到喇叭
  1070. addHxpChemical(){
  1071. let self = this;
  1072. let obj = {
  1073. floorId:this.floorId,
  1074. messageContext:this.inputText,
  1075. };
  1076. let num = 0;
  1077. for(let i=0;i<self.trumpetList.length;i++){
  1078. if(self.trumpetList[i].type){
  1079. obj.playVo=[{
  1080. sn:self.trumpetList[i].deviceSn,
  1081. port:self.trumpetList[i].port,
  1082. deviceIp:self.trumpetList[i].deviceIp,
  1083. type:"",
  1084. name:"",
  1085. speed:"",
  1086. params:{
  1087. tid:"",
  1088. vol:self.trumpetList[i].deviceVol,
  1089. urls:[]
  1090. }
  1091. }];
  1092. num++
  1093. }
  1094. }
  1095. if(num == 0){
  1096. this.msgError('请选择喇叭')
  1097. return
  1098. }
  1099. addHxpChemical(obj).then(response => {
  1100. this.msgSuccess(response.msg);
  1101. this.$set(this,'inputText','');
  1102. });
  1103. },
  1104. //获取楼层消息
  1105. getHornLastMess(){
  1106. let obj = {
  1107. floorId : this.floorId
  1108. }
  1109. getHornLastMess(obj).then(response => {
  1110. if(response.data.messageContext){
  1111. this.$set(this,'radioTextList',[{
  1112. name:response.data.sendName,
  1113. time:response.data.nowTime,
  1114. text:response.data.messageContext
  1115. }]);
  1116. }
  1117. });
  1118. },
  1119. /*********************************** 开关疏散灯-相关接口 *********************************/
  1120. //开启疏散灯
  1121. openLight(){
  1122. let obj = {
  1123. buildId:this.buildingId,
  1124. floorId:this.floorId,
  1125. pointName:this.shadeData.key
  1126. };
  1127. openLight(obj).then(response => {
  1128. if(response.code==200){
  1129. this.$set(this,'shadeType',0)
  1130. this.msgSuccess(response.msg)
  1131. }
  1132. });
  1133. },
  1134. //关闭疏散灯
  1135. closeLight(){
  1136. let obj = {
  1137. buildId:this.buildingId,
  1138. floorId:this.floorId,
  1139. pointName:this.shadeData.key
  1140. };
  1141. closeLight(obj).then(response => {
  1142. if(response.code==200){
  1143. this.$set(this,'shadeType',0)
  1144. this.msgSuccess(response.msg)
  1145. }
  1146. });
  1147. },
  1148. /*********************************** 开关设备-相关接口 *********************************/
  1149. //开关设备按钮
  1150. switchChange(item){
  1151. let switchData = {
  1152. id:item.id,
  1153. switchVal:item.code==3?'close':(item.code==4?'open':'')
  1154. };
  1155. hardWareControl(switchData).then(response => {
  1156. if(response.code==200){
  1157. item.code = item.code==3?4:(item.code==4?3:'')
  1158. this.$set(this,'shadeType',0);
  1159. this.msgSuccess("操作成功")
  1160. }
  1161. });
  1162. },
  1163. /*********************************** 实验室人员-相关接口 *********************************/
  1164. subOnlineUser(id){
  1165. let self = this;
  1166. subOnlineUser({subId:this.subId}).then(response => {
  1167. if(response.rows[0]){
  1168. this.$set(this,'userList',response.rows);
  1169. if(id){
  1170. for(let i=0;i<self.mapList.length;i++){
  1171. if(self.mapList[i].type == '1'){
  1172. if(self.mapList[i].subId == id){
  1173. this.$set(self.mapList[i],'online',response.rows.length);
  1174. }
  1175. }
  1176. }
  1177. }
  1178. }
  1179. });
  1180. },
  1181. /*********************************** 危险源-相关接口 *********************************/
  1182. exitHazardTotal(){
  1183. exitHazardTotal({subjectId:this.subId}).then(response => {
  1184. if(response.data[0]){
  1185. let obj = {
  1186. nameList: [],
  1187. numList: [],
  1188. maxNumList: [],
  1189. }
  1190. for(let i=0;i<response.data.length;i++){
  1191. obj.nameList.push(response.data[i].name)
  1192. obj.numList.push(response.data[i].percentage)
  1193. obj.maxNumList.push(100)
  1194. }
  1195. this.$set(this,'eChartsData',obj);
  1196. this.eChartsFunction(this.eChartsData);
  1197. }else{
  1198. let obj = {
  1199. nameList: [],
  1200. numList: [],
  1201. maxNumList: [],
  1202. }
  1203. this.$set(this,'eChartsData',obj);
  1204. this.eChartsFunction(this.eChartsData);
  1205. // document.getElementById('eCharts').innerHTML = '<p style="line-height:200px;font-size:16px;color:#fff;text-align: center">暂无数据</p>'
  1206. }
  1207. });
  1208. },
  1209. //eCharts表格
  1210. eChartsFunction(obj){
  1211. let self = this;
  1212. let myChart = this.$echarts.init(document.getElementById('eCharts'));
  1213. let option = {
  1214. backgroundColor: 'rgba(0,0,0,0)',
  1215. grid: {
  1216. left: '6%',
  1217. right: '4%',
  1218. bottom: '5%',
  1219. top: '10%',
  1220. containLabel: true,
  1221. },
  1222. legend: [{
  1223. show: false,
  1224. }],
  1225. xAxis: [
  1226. {
  1227. type: 'category',
  1228. data: obj.nameList,
  1229. axisLine: {
  1230. lineStyle: {
  1231. color: 'rgba(5, 80, 93, 1)',
  1232. },
  1233. },
  1234. axisLabel: {
  1235. fontSize: 12,
  1236. // color: 'black',
  1237. color: '#fff',
  1238. fontFamily: 'DIN-Medium',
  1239. padding: [3, 0, 0, 0]
  1240. },
  1241. axisTick: {
  1242. show: false,
  1243. },
  1244. },
  1245. {
  1246. type: 'category',
  1247. data: obj.nameList,
  1248. show: false,
  1249. },],
  1250. yAxis: [{
  1251. type: 'value',
  1252. name: "",
  1253. nameTextStyle: {
  1254. fontSize: 14,
  1255. fontFamily: 'Source Han Sans CN',
  1256. fontWeight: '400',
  1257. color: 'rgba(255, 255, 255, 1)',
  1258. padding: [0, 75, -8, 0]
  1259. },
  1260. nameGap: 24,
  1261. axisLine: {
  1262. show: true,
  1263. lineStyle: {
  1264. color: 'rgba(5, 80, 93, 1)',
  1265. }
  1266. },
  1267. axisTick: {
  1268. show: false,
  1269. },
  1270. splitLine: {
  1271. show: false,
  1272. lineStyle: {
  1273. color: 'rgba(5, 80, 93, 1)',
  1274. type: "dashed",
  1275. },
  1276. },
  1277. alignTicks: true,
  1278. axisLabel: {
  1279. fontSize: 14,
  1280. color: 'rgba(255, 255, 255, 1)',
  1281. fontFamily: 'DIN-Medium',
  1282. padding: [0, 7, 0, 0]
  1283. },
  1284. splitArea: {
  1285. show: false,
  1286. },
  1287. }],
  1288. series: [
  1289. {
  1290. type: 'bar',
  1291. label: {
  1292. normal: {
  1293. show: true,
  1294. position: 'top',
  1295. fontSize: 12,
  1296. color: 'rgba(16, 213, 223, 1)',
  1297. formatter: function (params) {
  1298. return params.value + '%'
  1299. },
  1300. offset: [0, -10],
  1301. },
  1302. },
  1303. tooltip: {
  1304. show: false
  1305. },
  1306. barWidth: 14,
  1307. itemStyle: {
  1308. color: {
  1309. type: 'linear',
  1310. x: 0, x2: 0, y: 0, y2: 1,
  1311. colorStops: [
  1312. { offset: 0, color: '#00FCFC' },
  1313. { offset: 1, color: '#016FCC' }
  1314. ]
  1315. },
  1316. },
  1317. name: '',
  1318. data: obj.numList
  1319. },
  1320. {
  1321. // 分隔
  1322. type: 'pictorialBar',
  1323. itemStyle: {
  1324. normal: {
  1325. color: 'rgba(3, 72, 84, 0.5)',
  1326. },
  1327. },
  1328. symbolRepeat: 'fixed',//重复
  1329. symbolMargin: 2,//上下间隔
  1330. symbol: 'rect',//图形类型
  1331. symbolClip: true,//是否裁剪
  1332. symbolSize: [20, 2],//图形的大小,可以用数组分开表示宽和高
  1333. symbolPosition: 'center',//图形的定位位置
  1334. symbolOffset: [0, 2],//图形相对于原本位置的偏移
  1335. data: obj.numList,
  1336. z: 0,
  1337. zlevel: 1,
  1338. },
  1339. {
  1340. type: 'bar',
  1341. barWidth: 40,
  1342. xAxisIndex: 1,
  1343. itemStyle: {
  1344. color: 'rgba(0, 0, 0, 0)'
  1345. },
  1346. name: '',
  1347. data: obj.maxNumList
  1348. },
  1349. ],
  1350. }
  1351. myChart.setOption(option);
  1352. },
  1353. /*********************************** 传感器/设备/视频-相关接口 *********************************/
  1354. //获取实验室传感器/设备/视屏相关接口
  1355. subjectInfo(){
  1356. //1.只查硬件数据 0.查询所有数据
  1357. subjectInfo(this.subId,1).then(response => {
  1358. let list = [];
  1359. let videoList = [];
  1360. if (response.data.labHardwareVOList){
  1361. for(let i=0;i<response.data.labHardwareVOList.length;i++){
  1362. if((response.data.labHardwareVOList[i].hardwareTypeEnum.enumName == 'AI_VENTILATION' ||
  1363. response.data.labHardwareVOList[i].hardwareTypeEnum.enumName == 'SWITCH') && response.data.labHardwareVOList[i].isPcfire != 1){
  1364. //AI_VENTILATION 通风 SWITCH 电源开关
  1365. let obj = {
  1366. id:response.data.labHardwareVOList[i].id,
  1367. name:response.data.labHardwareVOList[i].hardwareName?response.data.labHardwareVOList[i].hardwareName:'未命名',
  1368. enumName:response.data.labHardwareVOList[i].hardwareTypeEnum.enumName,
  1369. code:response.data.labHardwareVOList[i].state.code,
  1370. pcType:response.data.labHardwareVOList[i].pcType
  1371. }
  1372. list.push(obj);
  1373. }
  1374. if(response.data.labHardwareVOList[i].hardwareTypeEnum.enumName == 'VIDEO_MONITOR'){
  1375. videoList.push(response.data.labHardwareVOList[i].hardwareNUM);
  1376. }
  1377. }
  1378. }
  1379. this.$set(this,'controlList',list);
  1380. this.$set(this,'subjectVideoIds',videoList);
  1381. this.$set(this,'sensorList',this.sensorIconMatching(response.data.sensorFunctionStatusList));
  1382. })
  1383. },
  1384. //获取楼层视频接口
  1385. getCameraByFloor(){
  1386. getCameraByFloor({floorId:this.floorId}).then(response => {
  1387. this.$set(this,'floorVideoIds',response.data);
  1388. })
  1389. },
  1390. /*********************************** 视频-相关接口 *********************************/
  1391. //视频播放接口
  1392. async startUrl(type){
  1393. let self = this;
  1394. let list = [];
  1395. if(type == 'subject'){
  1396. list = self.subjectVideoIds+'';
  1397. }else if(type == 'floor'){
  1398. list = self.floorVideoIds+'';
  1399. }
  1400. let obj = {
  1401. page:"1",
  1402. count:"100",
  1403. deviceIds:list,
  1404. };
  1405. const { data } = await startUrl(obj);
  1406. console.log('data',data);
  1407. if(data.data){
  1408. let newData = data.data;
  1409. let urlText = window.location.href;
  1410. if(urlText.indexOf(localStorage.getItem('ipIdentify')) != -1){
  1411. console.log('本地');
  1412. for(let i=0;i<newData.length;i++){
  1413. let obj = {
  1414. divId:'divId'+type+i,
  1415. hasAudio:false,
  1416. height:false,
  1417. videoUrl:newData[i].ws_flv,
  1418. }
  1419. if(type == 'subject'){
  1420. self.subjectVideoList.push(obj)
  1421. }else if(type == 'floor'){
  1422. self.floorVideoList.push(obj)
  1423. }
  1424. }
  1425. }else{
  1426. console.log('外网');
  1427. for(let i=0;i<newData.length;i++){
  1428. let text = localStorage.getItem('cameraUrl');
  1429. let url = newData[i].ws_flv;
  1430. url = url.split("rtp/");
  1431. let newUrl = text+'rtp/'+url[1];
  1432. let obj = {
  1433. divId:'divId'+type+i,
  1434. hasAudio:false,
  1435. height:false,
  1436. videoUrl:newUrl,
  1437. }
  1438. if(type == 'subject'){
  1439. self.subjectVideoList.push(obj)
  1440. }else if(type == 'floor'){
  1441. self.floorVideoList.push(obj)
  1442. }
  1443. }
  1444. }
  1445. if(type == 'subject'){
  1446. this.$set(this,'subjectVideoType',true);
  1447. }else if(type == 'floor'){
  1448. this.$set(this,'floorVideoType',true);
  1449. }
  1450. setTimeout(function(){
  1451. self.videoPlay(type);
  1452. },300);
  1453. }
  1454. },
  1455. //播放视频流
  1456. videoPlay(type){
  1457. let self = this;
  1458. this.loading = false;
  1459. let videoList = []
  1460. if(type == 'subject'){
  1461. videoList = JSON.parse(JSON.stringify(this.subjectVideoList))
  1462. }else if(type == 'floor'){
  1463. videoList = JSON.parse(JSON.stringify(this.floorVideoList))
  1464. }
  1465. for(let i=0;i<videoList.length;i++){
  1466. let obj = {
  1467. player :{},
  1468. flvPlayer:{}
  1469. };
  1470. obj.player = document.getElementById(videoList[i].divId);
  1471. obj.flvPlayer = flvjs.createPlayer(
  1472. {
  1473. // isLive: true, //=> 是否为直播流
  1474. // hasAudio: false, //=> 是否开启声音
  1475. type: 'flv', //媒体类型 flv 或 mp4
  1476. url: videoList[i].videoUrl //视频流地址
  1477. },
  1478. {
  1479. enableStashBuffer: true,//启用 IO 存储缓冲区。 如果您需要实时流播放(最小延迟),请设置为 false,但如果存在网络抖动,则可能会停止。
  1480. stashInitialSize: 128,//IO 存储缓冲区初始大小。 默认值为 384KB。 指示合适的大小可以改善视频加载/搜索时间。
  1481. isLive: true,//是否是直播
  1482. lazyLoadRecoverDuration: 30,//指示以秒为单位的lazyLoad 恢复时间边界。
  1483. autoCleanupSourceBuffer: true,//进行自动清理
  1484. autoCleanupMaxBackwardDuration: 3 * 60,//3 * 60 当向后缓冲持续时间超过这个值(以秒为单位)时,对 SourceBuffer 进行自动清理
  1485. autoCleanupMinBackwardDuration: 2 * 60,//2 * 60 指示在执行自动清理时为后向缓冲区保留的持续时间(以秒为单位)。
  1486. }
  1487. );
  1488. if(type == 'subject'){
  1489. self.subjectVideoPlayList.push(obj);
  1490. }else if(type == 'floor'){
  1491. self.floorVideoPlayList.push(obj);
  1492. }
  1493. }
  1494. if(type == 'subject'){
  1495. for(let i=0;i<self.subjectVideoPlayList.length;i++){
  1496. self.subjectVideoPlayList[i].flvPlayer.attachMediaElement(self.subjectVideoPlayList[i].player);
  1497. self.subjectVideoPlayList[i].flvPlayer.load(); //加载
  1498. self.subjectVideoPlayList[i].flvPlayer.play(); //加载
  1499. }
  1500. }else if(type == 'floor'){
  1501. for(let i=0;i<self.floorVideoPlayList.length;i++){
  1502. self.floorVideoPlayList[i].flvPlayer.attachMediaElement(self.floorVideoPlayList[i].player);
  1503. self.floorVideoPlayList[i].flvPlayer.load(); //加载
  1504. self.floorVideoPlayList[i].flvPlayer.play(); //加载
  1505. }
  1506. }
  1507. },
  1508. //断开视频流
  1509. videoOff(type){
  1510. let self = this;
  1511. if(type == 'subject'){
  1512. if(self.subjectVideoPlayList[0]){
  1513. for(let i=0;i<self.subjectVideoPlayList.length;i++){
  1514. if(self.subjectVideoPlayList[i].flvPlayer){
  1515. self.subjectVideoPlayList[i].flvPlayer.pause();
  1516. self.subjectVideoPlayList[i].flvPlayer.unload();
  1517. self.subjectVideoPlayList[i].flvPlayer.detachMediaElement();
  1518. self.subjectVideoPlayList[i].flvPlayer.destroy();
  1519. self.subjectVideoPlayList[i].flvPlayer = null;
  1520. }
  1521. }
  1522. self.$set(self,'subjectVideoList',[]);
  1523. self.$set(self,'subjectVideoPlayList',[]);
  1524. self.$set(self,'subjectVideoType',false);
  1525. }
  1526. }else if(type == 'floor'){
  1527. if(self.floorVideoPlayList[0]){
  1528. for(let i=0;i<self.floorVideoPlayList.length;i++){
  1529. if(self.floorVideoPlayList[i].flvPlayer){
  1530. self.floorVideoPlayList[i].flvPlayer.pause();
  1531. self.floorVideoPlayList[i].flvPlayer.unload();
  1532. self.floorVideoPlayList[i].flvPlayer.detachMediaElement();
  1533. self.floorVideoPlayList[i].flvPlayer.destroy();
  1534. self.floorVideoPlayList[i].flvPlayer = null;
  1535. }
  1536. }
  1537. self.$set(self,'floorVideoList',[]);
  1538. self.$set(self,'floorVideoPlayList',[]);
  1539. self.$set(self,'floorVideoType',false);
  1540. }
  1541. }
  1542. },
  1543. /*********************************** 火焰报警-相关接口 *********************************/
  1544. //获取实验室灭火设备数据
  1545. getFireStatus(type){
  1546. getFireStatus({subjectId:this.subId}).then(response => {
  1547. if(response.data.isexist){
  1548. console.log('miehuo',response.data);
  1549. this.$set(this,'fireType',response.data.isexist);
  1550. if(response.data.online){
  1551. this.$set(this,'fireListType',response.data.online);
  1552. this.$set(this.fireData,'temperatureType',response.data.temperature);
  1553. this.$set(this.fireData,'smokeType',response.data.smoke);
  1554. this.$set(this.fireData,'flameType',response.data.fire);
  1555. this.$set(this,'fireCode',response.data.fireDevice.deviceCode);
  1556. if(type != 'mqtt'){
  1557. this.offFireMQTT('on');
  1558. }
  1559. if(response.data.temperature && response.data.smoke){
  1560. if(!this.fireStartType){
  1561. this.$set(this,'fireStartType',true);
  1562. this.$set(this,'fireStartText','自动灭火中');
  1563. this.fireStartTimeFunction(response.data.timeDifference);
  1564. }
  1565. }else if(response.data.timeDifference != -1){
  1566. if(!this.fireStartType){
  1567. this.$set(this,'fireStartType',true);
  1568. this.$set(this,'fireStartText','灭火中');
  1569. this.fireStartTimeFunction(response.data.timeDifference);
  1570. }
  1571. }
  1572. }else{
  1573. this.$set(this,'fireListType',false);
  1574. this.$set(this.fireData,'temperatureType',false);
  1575. this.$set(this.fireData,'smokeType',false);
  1576. this.$set(this.fireData,'flameType',false);
  1577. this.$set(this,'fireCode',null);
  1578. if(type != 'mqtt'){
  1579. this.offFireMQTT('on');
  1580. }
  1581. }
  1582. }else{
  1583. this.$set(this,'fireType',false);
  1584. if(type != 'mqtt'){
  1585. this.offFireMQTT('on');
  1586. }
  1587. }
  1588. })
  1589. },
  1590. /*********************************** 楼层数据-相关接口 *********************************/
  1591. //地图数据
  1592. getBuildingData(){
  1593. let self = this;
  1594. getFloorData(this.floorId).then(response => {
  1595. if(response.data.buildFloorLayoutVoList[0]){
  1596. let list = JSON.parse(response.data.labExitLineVertex.layoutJoinData)
  1597. for(let i=0;i<list.length;i++){
  1598. if(list[i].type == '2'){
  1599. //楼道
  1600. for(let o=0;o<list[i].lightList.length;o++){
  1601. list[i].lightList[o].openType = false;
  1602. }
  1603. }else if(list[i].type == '1'){
  1604. for(let o=0;o<response.data.buildFloorLayoutVoList.length;o++){
  1605. if(list[i].key == response.data.buildFloorLayoutVoList[o].pointName){
  1606. list[i].id = response.data.buildFloorLayoutVoList[o].id;
  1607. list[i].buildId = response.data.buildFloorLayoutVoList[o].buildId;
  1608. list[i].floorId = response.data.buildFloorLayoutVoList[o].floorId;
  1609. list[i].roomType = response.data.buildFloorLayoutVoList[o].roomType;
  1610. list[i].roomName = response.data.buildFloorLayoutVoList[o].roomName;
  1611. list[i].roomNum = response.data.buildFloorLayoutVoList[o].roomNum;
  1612. list[i].subName = response.data.buildFloorLayoutVoList[o].subName;
  1613. list[i].subId = response.data.buildFloorLayoutVoList[o].subId;
  1614. list[i].online = response.data.buildFloorLayoutVoList[o].online;
  1615. list[i].loginAdmin = response.data.buildFloorLayoutVoList[o].loginAdmin;
  1616. list[i].planType = false;
  1617. }
  1618. }
  1619. }else if(list[i].type == 3){
  1620. list[i].roomCheckType = false;
  1621. }
  1622. }
  1623. let obj = this.calculateMapMax(list)
  1624. this.$set(this.mapData,'width',obj.maxWidth);
  1625. this.$set(this.mapData,'height',obj.maxHeight);
  1626. this.$set(this.mapData,'zoomData',obj.zoomData);
  1627. this.$set(this,'mapList',JSON.parse(JSON.stringify(list)));
  1628. this.$set(this,'shadeMapList',JSON.parse(JSON.stringify(list)));
  1629. this.$set(this,'mapType',true);
  1630. let floorText = '';
  1631. for(let i=0;i<self.buildingOptions.length;i++){
  1632. if(self.buildingOptions[i].id == self.buildingId){
  1633. floorText = floorText + self.buildingOptions[i].name
  1634. }
  1635. }
  1636. for(let i=0;i<self.floorOptions.length;i++){
  1637. if(self.floorOptions[i].id == self.floorId){
  1638. floorText = floorText + ' - ' + self.floorOptions[i].name
  1639. }
  1640. }
  1641. this.$set(this,'floorText',floorText);
  1642. //自动选中楼层中该用户有权限的第一个实验室
  1643. if(!this.planDataType){
  1644. console.log('无传参');
  1645. for(let i=0;i<response.data.buildFloorLayoutVoList.length;i++){
  1646. if(response.data.buildFloorLayoutVoList[i].loginAdmin === true){
  1647. let subText = response.data.buildFloorLayoutVoList[i].roomType == '-99'?response.data.buildFloorLayoutVoList[i].roomName:response.data.buildFloorLayoutVoList[i].subName +' - '+ response.data.buildFloorLayoutVoList[i].roomNum;
  1648. this.$set(this,'subText',subText);
  1649. this.$set(this,'subId',response.data.buildFloorLayoutVoList[i].subId);
  1650. this.$set(this,'checkSubId',response.data.buildFloorLayoutVoList[i].subId);
  1651. break
  1652. }
  1653. }
  1654. }else{
  1655. console.log('传参');
  1656. for(let i=0;i<response.data.buildFloorLayoutVoList.length;i++){
  1657. if(response.data.buildFloorLayoutVoList[i].subId == self.subId){
  1658. let subText = response.data.buildFloorLayoutVoList[i].roomType == '-99'?response.data.buildFloorLayoutVoList[i].roomName:response.data.buildFloorLayoutVoList[i].subName +' - '+ response.data.buildFloorLayoutVoList[i].roomNum;
  1659. this.$set(this,'subText',subText);
  1660. break
  1661. }
  1662. }
  1663. }
  1664. //处理实验室弹窗数据
  1665. let roomList = [];
  1666. for(let i=0;i<list.length;i++){
  1667. if(list[i].type == 1 && list[i].subId){
  1668. let roomObj = {
  1669. subId:list[i].subId
  1670. };
  1671. if(list[i].doorList[0].toward == 'top'){
  1672. roomObj.width = 266;
  1673. roomObj.height = 111;
  1674. roomObj.left = (list[i].w/2) + (list[i].x) - 133;
  1675. roomObj.top = list[i].y - 111;
  1676. roomObj.planType = false;
  1677. }else if(list[i].doorList[0].toward == 'bottom'){
  1678. roomObj.width = 266;
  1679. roomObj.height = 111;
  1680. roomObj.left = (list[i].w/2) + (list[i].x) - 133;
  1681. roomObj.top = list[i].y + list[i].h;
  1682. roomObj.planType = false;
  1683. }else if(list[i].doorList[0].toward == 'left'){
  1684. roomObj.width = 266;
  1685. roomObj.height = 111;
  1686. roomObj.left = list[i].x - 133;
  1687. roomObj.top = (list[i].h/2) + (list[i].y) - 56;
  1688. roomObj.planType = false;
  1689. }else if(list[i].doorList[0].toward == 'fight'){
  1690. roomObj.width = 266;
  1691. roomObj.height = 111;
  1692. roomObj.left = list[i].x + list[i].w + 133;
  1693. roomObj.top = (list[i].h/2) + (list[i].y) - 56;
  1694. roomObj.planType = false;
  1695. }
  1696. roomList.push(roomObj);
  1697. }
  1698. }
  1699. this.$set(this,'planMapList',roomList);
  1700. //获取相关实验室数据
  1701. this.buttonSubject();
  1702. //查询当前是否有进行中的疏散
  1703. this.getRedisEvacuation();
  1704. //测试查询预案
  1705. this.selectTriggerInfo();
  1706. this.$set(this,'planDataType',false);
  1707. }
  1708. })
  1709. },
  1710. //计算布局最大尺寸
  1711. calculateMapMax(list) {
  1712. //基础参数
  1713. let height = 500;
  1714. let width = 1000;
  1715. let maxWidth = 0
  1716. let maxHeight = 0
  1717. let zoomData = 1;
  1718. //参数处理
  1719. for (let i = 0; i < list.length; i++) {
  1720. if ((list[i].x + list[i].w) > maxWidth) {
  1721. maxWidth = list[i].x + list[i].w
  1722. }
  1723. if ((list[i].y + list[i].h) > maxHeight) {
  1724. maxHeight = list[i].y + list[i].h
  1725. }
  1726. }
  1727. //处理等值数据
  1728. if(maxHeight == height){
  1729. maxHeight++
  1730. }
  1731. if(maxWidth == width){
  1732. maxWidth++
  1733. }
  1734. //缩放判断
  1735. let zoomNumOne = height / maxHeight;
  1736. if(parseInt(this.accMul(zoomNumOne,maxHeight)) <= height && parseInt(this.accMul(zoomNumOne,maxWidth)) <= width){
  1737. zoomData = zoomNumOne;
  1738. this.$set(this,'zoomData',zoomNumOne);
  1739. }
  1740. let zoomNumTwo = width / maxWidth;
  1741. if(parseInt(this.accMul(zoomNumTwo,maxHeight)) <= height && parseInt(this.accMul(zoomNumTwo,maxWidth)) <= width){
  1742. zoomData = zoomNumTwo;
  1743. this.$set(this,'zoomData',zoomNumTwo);
  1744. }
  1745. return { maxWidth: maxWidth, maxHeight: maxHeight,zoomData:zoomData }
  1746. },
  1747. accMul(arg1,arg2){
  1748. var m=0,s1=arg1.toString(),s2=arg2.toString();
  1749. try{m+=s1.split(".")[1].length}catch(e){}
  1750. try{m+=s2.split(".")[1].length}catch(e){}
  1751. return Number(s1.replace(".",""))*Number(s2.replace(".",""))/Math.pow(10,m)
  1752. },
  1753. /*********************************** 楼层/楼栋数据-相关接口 *********************************/
  1754. //根据楼栋获取楼层数据
  1755. getBuildOrFloorList(type){
  1756. let obj = {
  1757. type : 3,
  1758. parentId : this.buildingId
  1759. }
  1760. getBuildOrFloorList(obj).then(response => {
  1761. if(response.data[0]){
  1762. for(let i=0;i<response.data.length;i++){
  1763. response.data[i].planType = false
  1764. }
  1765. this.$set(this,'floorOptions',response.data);
  1766. if(!this.planDataType){
  1767. if(type == 'automatic'){
  1768. //处理实验室数量多的楼层优先选择
  1769. let num = 0;
  1770. let index = null;
  1771. for(let i=0;i<response.data.length;i++){
  1772. if(response.data[i].subNum>num){
  1773. num = response.data[i].subNum;
  1774. index = i;
  1775. }
  1776. }
  1777. console.log('floorId',this.floorId)
  1778. console.log('index',index)
  1779. console.log('response.data',response.data)
  1780. this.$set(this,'floorId',response.data[index].id);
  1781. }
  1782. }
  1783. //获取楼层消息
  1784. this.getHornLastMess();
  1785. //获取楼层摄像头数据
  1786. this.getCameraByFloor();
  1787. //获取楼层数据
  1788. this.getBuildingData();
  1789. //楼层mqtt
  1790. this.offFloorMQTT('on');
  1791. //断开楼层视频流
  1792. this.videoOff('floor');
  1793. }
  1794. })
  1795. },
  1796. //查询当前用户下的预案触发数据
  1797. selectTriggerInfo(){
  1798. let self = this;
  1799. selectTriggerInfo().then(response => {
  1800. //楼栋预案标记
  1801. for(let o=0;o<self.buildingOptions.length;o++){
  1802. let num = 0;
  1803. for(let i=0;i<response.data.length;i++){
  1804. if(response.data[i].buildId == self.buildingOptions[o].id){
  1805. num++
  1806. }
  1807. }
  1808. self.buildingOptions[o].planType = num != 0;
  1809. }
  1810. //楼层预案标记
  1811. for(let o=0;o<self.floorOptions.length;o++){
  1812. let num = 0;
  1813. for(let i=0;i<response.data.length;i++){
  1814. if(response.data[i].floorId == self.floorOptions[o].id){
  1815. num++
  1816. }
  1817. }
  1818. self.floorOptions[o].planType = num != 0;
  1819. }
  1820. //实验室预案标记
  1821. for(let o=0;o<self.mapList.length;o++){
  1822. if(self.mapList[o].type == 1){
  1823. let num = 0;
  1824. let newData = {};
  1825. for(let i=0;i<response.data.length;i++){
  1826. if(response.data[i].subId == self.mapList[o].subId){
  1827. num++
  1828. newData = response.data[i];
  1829. }
  1830. }
  1831. if(num != 0){
  1832. self.mapList[o].planType = true;
  1833. for(let x=0;x<self.planMapList.length;x++){
  1834. if(self.planMapList[x].subId == self.mapList[o].subId){
  1835. self.planMapList[x].riskPlanTriggerTime = newData.riskPlanTriggerTime;
  1836. self.planMapList[x].riskAttribute = newData.riskAttribute;
  1837. self.planMapList[x].riskPlanLevel = newData.riskPlanLevel;
  1838. self.planMapList[x].riskPlanLevelName = newData.riskPlanLevelName;
  1839. self.planMapList[x].name = newData.name;
  1840. self.planMapList[x].groupId = newData.groupId;
  1841. self.planMapList[x].planType = true;
  1842. }
  1843. }
  1844. }else{
  1845. self.mapList[o].planType = false;
  1846. for(let x=0;x<self.planMapList.length;x++){
  1847. if(self.planMapList[x].subId == self.mapList[o].subId){
  1848. self.planMapList[x].planType = false;
  1849. self.planMapList[x].riskPlanTriggerTime = null;
  1850. self.planMapList[x].riskAttribute = null;
  1851. self.planMapList[x].riskPlanLevel = null;
  1852. self.planMapList[x].riskPlanLevelName = null;
  1853. self.planMapList[x].groupId = null;
  1854. self.planMapList[x].name = null;
  1855. }
  1856. }
  1857. }
  1858. }
  1859. }
  1860. //浮层实验室预案标记
  1861. for(let o=0;o<self.shadeMapList.length;o++){
  1862. if(self.shadeMapList[o].type == 1){
  1863. let num = 0;
  1864. for(let i=0;i<response.data.length;i++){
  1865. if(response.data[i].subId == self.shadeMapList[o].subId){
  1866. num++
  1867. }
  1868. }
  1869. self.shadeMapList[o].planType = num != 0;
  1870. }
  1871. }
  1872. this.$forceUpdate();
  1873. })
  1874. },
  1875. /*********************************** MQTT相关-相关接口 *********************************/
  1876. //全局-MQTT订阅
  1877. onAllMQTT(){
  1878. let self = this;
  1879. this.allClient = mqtt.connect(localStorage.getItem('mqttUrl'), {
  1880. username: localStorage.getItem('mqttUser'),
  1881. password: localStorage.getItem('mqttPassword')
  1882. });
  1883. this.allClient.on("connect", e =>{
  1884. console.log("连接成功");
  1885. this.allClient.subscribe(self.planTopic, (err) => {
  1886. if (!err) {
  1887. console.log("预案-订阅成功:" + self.planTopic);
  1888. }
  1889. });
  1890. });
  1891. this.allClient.on("message", (topic, message) => {
  1892. if (message){
  1893. let data = JSON.parse(message)
  1894. if(data){
  1895. console.log('data',data);
  1896. if(topic == self.planTopic){
  1897. //传感器状态
  1898. console.log('预案-状态');
  1899. }
  1900. }
  1901. }
  1902. });
  1903. },
  1904. //楼层-MQTT订阅
  1905. onFloorMQTT(){
  1906. let self = this;
  1907. this.floorClient = mqtt.connect(localStorage.getItem('mqttUrl'), {
  1908. username: localStorage.getItem('mqttUser'),
  1909. password: localStorage.getItem('mqttPassword')
  1910. });
  1911. this.floorClient.on("connect", e =>{
  1912. console.log("连接成功");
  1913. this.floorClient.subscribe(self.messageTopic+self.floorId, (err) => {
  1914. if (!err) {
  1915. console.log("消息订阅成功:" + self.messageTopic+self.floorId);
  1916. }
  1917. });
  1918. });
  1919. this.floorClient.subscribe(self.evacuationTopic+self.floorId, (err) => {
  1920. if (!err) {
  1921. console.log("疏散-订阅成功:" + self.evacuationTopic+self.floorId);
  1922. self.getRedisEvacuation();
  1923. }
  1924. });
  1925. this.floorClient.subscribe(self.userTopic+self.floorId, (err) => {
  1926. if (!err) {
  1927. console.log("实验室人数-订阅成功:" + self.userTopic+self.floorId);
  1928. }
  1929. });
  1930. this.floorClient.on("message", (topic, message) => {
  1931. if (message){
  1932. let data = JSON.parse(message)
  1933. if(data){
  1934. console.log('data',data);
  1935. if(topic == (self.messageTopic+self.floorId)){
  1936. //消息状态
  1937. console.log('消息-状态');
  1938. if(data.data == 'FLOOR_HORN'){
  1939. self.getHornLastMess();
  1940. }
  1941. }else if(topic == (self.evacuationTopic+self.floorId)){
  1942. console.log('疏散-状态');
  1943. if(data.data == 'FLOOR_EXITLINE'){
  1944. //疏散消息
  1945. self.getRedisEvacuation();
  1946. }else if(data.data == 'FLOOR_OVER_EXITLINE'){
  1947. self.getBuildingData();
  1948. }
  1949. }else if(topic == (self.userTopic+self.floorId)){
  1950. console.log('实验室人数-状态');
  1951. //实验室人数
  1952. self.subOnlineUser(data.data);
  1953. }
  1954. }
  1955. }
  1956. });
  1957. },
  1958. //实验室-MQTT订阅
  1959. onSubMQTT(){
  1960. let self = this;
  1961. this.subClient = mqtt.connect(localStorage.getItem('mqttUrl'), {
  1962. username: localStorage.getItem('mqttUser'),
  1963. password: localStorage.getItem('mqttPassword')
  1964. });
  1965. this.subClient.on("connect", e =>{
  1966. console.log("连接成功");
  1967. this.subClient.subscribe(self.sensorTopic+self.subId, (err) => {
  1968. if (!err) {
  1969. console.log("传感器-订阅成功:" + self.sensorTopic+self.subId);
  1970. }
  1971. });
  1972. this.subClient.subscribe(self.switchTopic+self.subId, (err) => {
  1973. if (!err) {
  1974. console.log("设备-订阅成功:" + self.switchTopic+self.subId);
  1975. }
  1976. });
  1977. });
  1978. this.subClient.on("message", (topic, message) => {
  1979. if (message){
  1980. let data = JSON.parse(message)
  1981. if(data){
  1982. console.log('data',data);
  1983. if(topic == (self.sensorTopic+self.subId)){
  1984. //传感器状态
  1985. console.log('实验室传感器-状态');
  1986. this.$set(this,'sensorList',this.sensorIconMatching(data.data.functionStatuses));
  1987. }else if(topic == (self.switchTopic+self.subId)){
  1988. //设备在线状态
  1989. console.log('实验室设备-状态');
  1990. for (let i = 0; i < data.data.length; i++) {
  1991. if (self.controlList[0]) {
  1992. for (let k = 0; k < self.controlList.length; k++) {
  1993. if (self.controlList[k].id == data.data[i].num) {
  1994. if (data.data[i].hardwareOperate == 'CLOSE') {
  1995. self.controlList[k].code = 4;
  1996. } else if (data.data[i].hardwareOperate == 'OPEN') {
  1997. self.controlList[k].code = 3;
  1998. } else if (data.data[i].hardwareOperate == 'OFFLINE') {
  1999. self.controlList[k].code = 0;
  2000. }
  2001. }
  2002. }
  2003. }
  2004. }
  2005. }
  2006. }
  2007. }
  2008. });
  2009. },
  2010. //灭火设备-MQTT订阅
  2011. onFireMQTT(){
  2012. let self = this;
  2013. if(self.fireCode){
  2014. this.fireClient = mqtt.connect(localStorage.getItem('mqttUrl'), {
  2015. username: localStorage.getItem('mqttUser'),
  2016. password: localStorage.getItem('mqttPassword')
  2017. });
  2018. this.fireClient.on("connect", e =>{
  2019. console.log("连接成功");
  2020. this.fireClient.subscribe(self.fireTopic+self.fireCode, (err) => {
  2021. if (!err) {
  2022. console.log("火灾传感器状态-订阅成功:" + self.fireTopic+self.fireCode);
  2023. }
  2024. });
  2025. this.fireClient.subscribe(self.fireOnlineTopic+self.fireCode, (err) => {
  2026. if (!err) {
  2027. console.log("火灾设备是否在线-订阅成功:" + self.fireOnlineTopic+self.fireCode);
  2028. }
  2029. });
  2030. this.fireClient.subscribe(self.firePerformTopic+self.fireCode, (err) => {
  2031. if (!err) {
  2032. console.log("火灾是否正在执行灭火操作-订阅成功:" + self.firePerformTopic+self.fireCode);
  2033. }
  2034. });
  2035. });
  2036. this.fireClient.on("message", (topic, message) => {
  2037. if (message){
  2038. let data = JSON.parse(message)
  2039. if(data){
  2040. console.log('data',data);
  2041. console.log('topic',topic);
  2042. console.log('self.fireTopic + self.fireCode',self.fireTopic + self.fireCode);
  2043. console.log('self.fireOnlineTopic + self.fireCode',self.fireOnlineTopic + self.fireCode);
  2044. console.log('self.firePerformTopic + self.fireCode',self.firePerformTopic + self.fireCode);
  2045. if(topic == (self.fireTopic + self.fireCode)){
  2046. //火灾传感器状态
  2047. console.log('火灾传感器状态');
  2048. self.getFireStatus('mqtt');
  2049. }else if(topic == (self.fireOnlineTopic + self.fireCode)){
  2050. //设备在线状态
  2051. console.log('设备在线状态');
  2052. self.getFireStatus('mqtt');
  2053. }else if(topic == (self.firePerformTopic + self.fireCode)){
  2054. //灭火执行操作
  2055. if(data.fireStatus == 1){
  2056. if(!self.fireStartType){
  2057. self.getFireStatus('mqtt');
  2058. // self.$set(self,'fireStartType',true);
  2059. // self.$set(self,'fireStartText','灭火中');
  2060. // self.fireStartTimeFunction(data.direTime);
  2061. }
  2062. }else if(data.fireStatus == 0){
  2063. self.msgError('一键灭火启动失败')
  2064. }
  2065. }
  2066. }
  2067. }
  2068. });
  2069. }
  2070. },
  2071. //取消订阅-全局-关闭MQTT连接
  2072. offAllMQTT(type){
  2073. let self = this;
  2074. //判断是否已有连接如果有责断开
  2075. if(this.allClient.unsubscribe){
  2076. this.allClient.unsubscribe(self.planTopic, error => {
  2077. if (error) {
  2078. console.log('预案-MQTT断开报错=>', error)
  2079. }
  2080. })
  2081. this.allClient.end();
  2082. this.$set(this,'allClient',{});
  2083. }
  2084. //判断传入参数如果存在 发起一次新的连接
  2085. if(type){
  2086. this.onAllMQTT();
  2087. }
  2088. },
  2089. //取消订阅-楼层-关闭MQTT连接
  2090. offFloorMQTT(type){
  2091. let self = this;
  2092. //判断是否已有连接如果有责断开
  2093. if(this.floorClient.unsubscribe){
  2094. this.floorClient.unsubscribe(self.evacuationTopic+self.floorId, error => {
  2095. if (error) {
  2096. console.log('疏散-MQTT断开报错=>', error)
  2097. }
  2098. })
  2099. this.floorClient.unsubscribe(self.messageTopic+self.floorId, error => {
  2100. if (error) {
  2101. console.log('消息-MQTT断开报错=>', error)
  2102. }
  2103. })
  2104. this.floorClient.unsubscribe(self.userTopic+self.floorId, error => {
  2105. if (error) {
  2106. console.log('实验室人数-MQTT断开报错=>', error)
  2107. }
  2108. })
  2109. this.floorClient.end();
  2110. this.$set(this,'floorClient',{});
  2111. }
  2112. //判断传入参数如果存在 发起一次新的连接
  2113. if(type){
  2114. this.onFloorMQTT();
  2115. }
  2116. },
  2117. //取消订阅-实验室-关闭MQTT连接
  2118. offSubMQTT(type){
  2119. let self = this;
  2120. //判断是否已有连接如果有责断开
  2121. if(this.subClient.unsubscribe){
  2122. this.subClient.unsubscribe(self.sensorTopic+self.subId, error => {
  2123. if (error) {
  2124. console.log('传感器-MQTT断开报错=>', error)
  2125. }
  2126. })
  2127. this.subClient.unsubscribe(self.switchTopic+self.subId, error => {
  2128. if (error) {
  2129. console.log('硬件-MQTT断开报错=>', error)
  2130. }
  2131. })
  2132. this.subClient.end();
  2133. this.$set(this,'subClient',{});
  2134. }
  2135. //判断传入参数如果存在 发起一次新的连接
  2136. if(type){
  2137. this.onSubMQTT();
  2138. }
  2139. },
  2140. //取消订阅-灭火设备-关闭MQTT连接
  2141. offFireMQTT(type){
  2142. let self = this;
  2143. //判断是否已有连接如果有责断开
  2144. if(this.fireClient.unsubscribe){
  2145. this.fireClient.unsubscribe(self.fireTopic+self.fireCode, error => {
  2146. if (error) {
  2147. console.log('火灾传感器状态-MQTT断开报错=>', error)
  2148. }
  2149. })
  2150. this.fireClient.unsubscribe(self.fireOnlineTopic+self.fireCode, error => {
  2151. if (error) {
  2152. console.log('火灾设备是否在线-MQTT断开报错=>', error)
  2153. }
  2154. })
  2155. this.fireClient.unsubscribe(self.firePerformTopic+self.fireCode, error => {
  2156. if (error) {
  2157. console.log('火灾是否正在执行灭火操作-MQTT断开报错=>', error)
  2158. }
  2159. })
  2160. this.fireClient.end();
  2161. this.$set(this,'fireClient',{});
  2162. }
  2163. //判断传入参数如果存在 发起一次新的连接
  2164. if(type){
  2165. this.onFireMQTT();
  2166. }
  2167. },
  2168. /*********************************** 其他-相关接口 *********************************/
  2169. // 传感器图标匹配
  2170. sensorIconMatching(list){
  2171. if(!this.sensorIconData){
  2172. this.$set(this,'sensorIconData',{
  2173. wendu_zc : require('@/assets/ZDimages/bigData3_2/icon_znjc_wsd.png'),
  2174. wendu_yc : require('@/assets/ZDimages/bigData3_2/icon_znjc_wsd_yc.png'),
  2175. shidu_zc : require('@/assets/ZDimages/bigData3_2/icon_znjc_sd.png'),
  2176. shidu_yc : require('@/assets/ZDimages/bigData3_2/icon_znjc_sd_yc.png'),
  2177. co_zc : require('@/assets/ZDimages/bigData3_2/icon_znjc_yyht_zc.png'),
  2178. co_yc : require('@/assets/ZDimages/bigData3_2/icon_znjc_yyht_yc.png'),
  2179. jiawan_zc : require('@/assets/ZDimages/bigData3_2/icon_znjc_jw.png'),
  2180. jiawan_yc : require('@/assets/ZDimages/bigData3_2/icon_znjc_jw_yc.png'),
  2181. o2_zc : require('@/assets/ZDimages/bigData3_2/icon_znjc_yq_zc.png'),
  2182. o2_yc : require('@/assets/ZDimages/bigData3_2/icon_znjc_yq_yc.png'),
  2183. yanwu_zc : require('@/assets/ZDimages/bigData3_2/icon_yg_zc.png'),
  2184. yanwu_yc : require('@/assets/ZDimages/bigData3_2/icon_yg_yc.png'),
  2185. daqiya_zc : require('@/assets/ZDimages/bigData3_2/icon_znjc_dqy.png'),
  2186. daqiya_yc : require('@/assets/ZDimages/bigData3_2/icon_znjc_dqy_yc.png'),
  2187. voc_zc : require('@/assets/ZDimages/bigData3_2/icon_znjc_voc.png'),
  2188. voc_yc : require('@/assets/ZDimages/bigData3_2/icon_znjc_voc_yc.png'),
  2189. tvoc_zc : require('@/assets/ZDimages/bigData3_2/icon_znjc_tcoc.png'),
  2190. tvoc_yc : require('@/assets/ZDimages/bigData3_2/icon_znjc_tcoc_yc.png'),
  2191. so2_zc : require('@/assets/ZDimages/bigData3_2/icon_znjc_soer.png'),
  2192. so2_yc : require('@/assets/ZDimages/bigData3_2/icon_znjc_soe_yc.png'),
  2193. no1_zc : require('@/assets/ZDimages/bigData3_2/icon_znjc_noy.png'),
  2194. no1_yc : require('@/assets/ZDimages/bigData3_2/icon_znjc_noy_yc.png'),
  2195. fenchen_zc : require('@/assets/ZDimages/bigData3_2/icon_znjc_fc.png'),
  2196. fenchen_yc : require('@/assets/ZDimages/bigData3_2/icon_znjc_fc_yc.png'),
  2197. H2_zc : require('@/assets/ZDimages/bigData3_2/icon_znjc_he.png'),
  2198. H2_yc : require('@/assets/ZDimages/bigData3_2/icon_znjc_he_yc.png'),
  2199. guangqi_zc : require('@/assets/ZDimages/bigData3_2/icon_yygb_gq.png'),
  2200. guangqi_yc : require('@/assets/ZDimages/bigData3_2/icon_yygb_gq_yc.png'),
  2201. lvqi_zc : require('@/assets/ZDimages/bigData3_2/icon_znjc_lq.png'),
  2202. lvqi_yc : require('@/assets/ZDimages/bigData3_2/icon_znjc_lq_yc.png'),
  2203. jiaquan_zc : require('@/assets/ZDimages/bigData3_2/icon_znjc_jq_zc.png'),
  2204. jiaquan_yc : require('@/assets/ZDimages/bigData3_2/icon_znjc_jq_yc.png'),
  2205. huoyan_zc : require('@/assets/ZDimages/bigData3_2/icon_zdmh_hyjc_zc.png'),
  2206. huoyan_yc : require('@/assets/ZDimages/bigData3_2/icon_zdmh_hyjc_yc.png'),
  2207. nullClass : require('@/assets/ZDimages/evacuation3_2/icon_znwl_sybz.png'),
  2208. });
  2209. }
  2210. let newList = [];
  2211. for(let i=0;i<list.length;i++){
  2212. let obj = {
  2213. id:list[i].id,
  2214. funcName:list[i].funcName,
  2215. funNum:list[i].funNum,
  2216. formatVal:list[i].formatVal,
  2217. type:0,
  2218. }
  2219. switch (list[i].funNum)
  2220. {
  2221. case 'wendu':
  2222. obj.zcImg = this.sensorIconData.wendu_zc;
  2223. obj.ycImg = this.sensorIconData.wendu_yc;
  2224. break;
  2225. case 'shidu':
  2226. obj.zcImg = this.sensorIconData.shidu_zc;
  2227. obj.ycImg = this.sensorIconData.shidu_yc;
  2228. break;
  2229. case 'co':
  2230. obj.zcImg = this.sensorIconData.co_zc;
  2231. obj.ycImg = this.sensorIconData.co_yc;
  2232. break;
  2233. case 'jiawan':
  2234. obj.zcImg = this.sensorIconData.jiawan_zc;
  2235. obj.ycImg = this.sensorIconData.jiawan_yc;
  2236. break;
  2237. case 'o2':
  2238. obj.zcImg = this.sensorIconData.o2_zc;
  2239. obj.ycImg = this.sensorIconData.o2_yc;
  2240. break;
  2241. case 'yanwu':
  2242. obj.zcImg = this.sensorIconData.yanwu_zc;
  2243. obj.ycImg = this.sensorIconData.yanwu_yc;
  2244. break;
  2245. case 'daqiya':
  2246. obj.zcImg = this.sensorIconData.daqiya_zc;
  2247. obj.ycImg = this.sensorIconData.daqiya_yc;
  2248. break;
  2249. case 'voc':
  2250. obj.zcImg = this.sensorIconData.voc_zc;
  2251. obj.ycImg = this.sensorIconData.voc_yc;
  2252. break;
  2253. case 'tvoc':
  2254. obj.zcImg = this.sensorIconData.tvoc_zc;
  2255. obj.ycImg = this.sensorIconData.tvoc_yc;
  2256. break;
  2257. case 'so2':
  2258. obj.zcImg = this.sensorIconData.so2_zc;
  2259. obj.ycImg = this.sensorIconData.so2_yc;
  2260. break;
  2261. case 'no1':
  2262. obj.zcImg = this.sensorIconData.no1_zc;
  2263. obj.ycImg = this.sensorIconData.no1_yc;
  2264. break;
  2265. case 'fenchen':
  2266. obj.zcImg = this.sensorIconData.fenchen_zc;
  2267. obj.ycImg = this.sensorIconData.fenchen_yc;
  2268. break;
  2269. case 'H2':
  2270. obj.zcImg = this.sensorIconData.H2_zc;
  2271. obj.ycImg = this.sensorIconData.H2_yc;
  2272. break;
  2273. case 'guangqi':
  2274. obj.zcImg = this.sensorIconData.guangqi_zc;
  2275. obj.ycImg = this.sensorIconData.guangqi_yc;
  2276. break;
  2277. case 'lvqi':
  2278. obj.zcImg = this.sensorIconData.lvqi_zc;
  2279. obj.ycImg = this.sensorIconData.lvqi_yc;
  2280. break;
  2281. case 'jiaquan':
  2282. obj.zcImg = this.sensorIconData.jiaquan_zc;
  2283. obj.ycImg = this.sensorIconData.jiaquan_yc;
  2284. break;
  2285. case 'huoyan':
  2286. obj.zcImg = this.sensorIconData.huoyan_zc;
  2287. obj.ycImg = this.sensorIconData.huoyan_yc;
  2288. break;
  2289. default:
  2290. obj.zcImg = this.sensorIconData.nullClass;
  2291. obj.ycImg = this.sensorIconData.nullClass;
  2292. }
  2293. newList.push(obj)
  2294. }
  2295. return newList;
  2296. },
  2297. },
  2298. beforeDestroy() {
  2299. //清除定时器
  2300. let self = this;
  2301. self.videoOff('floor');
  2302. self.videoOff('subject');
  2303. // self.offAllMQTT();
  2304. self.offFloorMQTT();
  2305. self.offSubMQTT();
  2306. if(self.fireListType){
  2307. self.offFireMQTT();
  2308. }
  2309. console.log("beforeDestroy");
  2310. },
  2311. }
  2312. </script>
  2313. <style scoped lang="scss">
  2314. .newEvacuationBigData{
  2315. flex:1;
  2316. position: relative;
  2317. display: flex;
  2318. width:1920px;
  2319. height:1080px;
  2320. background: url("../assets/ZDimages/bigData3_2/img_bg.png") repeat;
  2321. background-size: 100% 100%;
  2322. p{
  2323. margin:0;
  2324. }
  2325. .evacuation-title-position-box{
  2326. position: absolute;
  2327. top:0;
  2328. /*left:2%;*/
  2329. /*width:96%;*/
  2330. height:92px;
  2331. left:41px;
  2332. width: 1837px;
  2333. background: url("../assets/ZDimages/bigData3_2/sy_db_bg.png");
  2334. background-size: 100% 100%;
  2335. text-align: center;
  2336. font-size:40px;
  2337. line-height:82px;
  2338. color:#24d1f9;
  2339. font-weight:900;
  2340. letter-spacing:10px
  2341. }
  2342. .evacuation-out-button-position-box{
  2343. display: flex;
  2344. position: absolute;
  2345. top:0;
  2346. right:0;
  2347. width:110px;
  2348. cursor: pointer;
  2349. i{
  2350. margin:0 10px;
  2351. line-height:40px;
  2352. color:#24D1F9;
  2353. font-size:18px;
  2354. }
  2355. p{
  2356. line-height:40px;
  2357. color:#24D1F9;
  2358. font-size:14px;
  2359. }
  2360. }
  2361. .big-title-box{
  2362. width:181px;
  2363. height:59px;
  2364. background: url("../assets/ZDimages/bigData3_2/img_zjdp_bg.png");
  2365. background-size: 100%;
  2366. display: flex;
  2367. img{
  2368. width:18px;
  2369. height:18px;
  2370. margin:27px 16px 0 20px;
  2371. }
  2372. p{
  2373. margin-top:16px;
  2374. line-height:40px;
  2375. color:#fff;
  2376. font-size:16px;
  2377. }
  2378. }
  2379. .left-max-big-box{
  2380. width:462px;
  2381. /*智能监测*/
  2382. .left-big-box-one{
  2383. margin-left:30px;
  2384. margin-top:70px;
  2385. height:414px;
  2386. .max-sensor-box{
  2387. height:318px;
  2388. margin:17px 20px 20px 0;
  2389. .sensor-for-max-box{
  2390. width:348px;
  2391. height:70px;
  2392. margin-bottom:12px;
  2393. display: flex;
  2394. position: relative;
  2395. .sensor-min-img-box{
  2396. position: absolute;
  2397. width:54px;
  2398. height:54px;
  2399. top:8px;
  2400. left:12px;
  2401. z-index: 5;
  2402. animation:rotating 6s linear infinite; //旋转动画
  2403. }
  2404. img{
  2405. width:24px;
  2406. height:24px;
  2407. margin:23px 50px 23px 27px;
  2408. z-index: 10;
  2409. }
  2410. .sensor-name-p{
  2411. width:130px;
  2412. line-height:70px;
  2413. font-size:18px;
  2414. }
  2415. .sensor-num-p{
  2416. flex:1;
  2417. line-height:70px;
  2418. font-size:20px;
  2419. }
  2420. }
  2421. .sensor-alarm-one{
  2422. background: url("../assets/ZDimages/bigData3_2/img_yc_bg.png");
  2423. background-size: 100% 100%;
  2424. color:#E80000;
  2425. .sensor-min-img-box{
  2426. background: url("../assets/ZDimages/bigData3_2/icon_cgqbg_yc.png");
  2427. background-size: 100% 100%;
  2428. }
  2429. }
  2430. .sensor-alarm-two{
  2431. color:#24D1F9;
  2432. background: url("../assets/ZDimages/bigData3_2/img_zc_bg.png");
  2433. background-size: 100% 100%;
  2434. .sensor-min-img-box{
  2435. background: url("../assets/ZDimages/bigData3_2/icon_cgqbg_zc.png");
  2436. background-size: 100% 100%;
  2437. }
  2438. }
  2439. }
  2440. }
  2441. .left-big-box-two{
  2442. margin-left:30px;
  2443. height:274px;
  2444. /*智能控制*/
  2445. .control-max-box{
  2446. height:214px;
  2447. margin-right: 20px;
  2448. .control-for-box:nth-child(2n+1){
  2449. margin-right:72px;
  2450. }
  2451. .control-for-box{
  2452. overflow: hidden;
  2453. height:210px;
  2454. width:160px;
  2455. display: inline-block;
  2456. position: relative;
  2457. .control-for-title-p{
  2458. line-height:40px;
  2459. margin-top:5px;
  2460. text-align: center;
  2461. font-size:18px;
  2462. color:#24D1F9;
  2463. }
  2464. .control-for-img-box{
  2465. width:104px;
  2466. height:104px;
  2467. position: relative;
  2468. margin:0 28px;
  2469. .position-img{
  2470. position:absolute;
  2471. width:84px;
  2472. height:84px;
  2473. margin:10px;
  2474. z-index:5;
  2475. animation:rotating 6s linear infinite; //旋转动画
  2476. }
  2477. .for-img{
  2478. width:50px;
  2479. height:50px;
  2480. margin:27px;
  2481. z-index:10;
  2482. }
  2483. }
  2484. .position-big-img{
  2485. width:104px;
  2486. height:104px;
  2487. position: absolute;
  2488. top:45px;
  2489. left:28px;
  2490. animation: scaleDraw 5s ease-in-out infinite;
  2491. -webkit-animation: scaleDraw 5s ease-in-out infinite;
  2492. }
  2493. .control-null-p{
  2494. color:#999;
  2495. width:70px;
  2496. height:30px;
  2497. line-height:30px;
  2498. border:1px solid #999;
  2499. font-size:14px;
  2500. text-align: center;
  2501. border-radius:15px;
  2502. margin:12px 0 0 44px;
  2503. }
  2504. .control-button-p{
  2505. color:#24D1F9;
  2506. width:70px;
  2507. height:30px;
  2508. line-height:30px;
  2509. border:1px solid #24D1F9;
  2510. font-size:14px;
  2511. text-align: center;
  2512. border-radius:15px;
  2513. margin:12px 0 0 44px;
  2514. cursor: pointer;
  2515. }
  2516. }
  2517. }
  2518. }
  2519. .left-big-box-three{
  2520. margin-left:30px;
  2521. height:322px;
  2522. position: relative;
  2523. #eCharts{
  2524. height:233px;
  2525. }
  2526. .eCharts-null-p{
  2527. color:#fff;
  2528. position: absolute;
  2529. top:170px;
  2530. left:168px;
  2531. }
  2532. }
  2533. }
  2534. .center-max-big-box{
  2535. flex:1;
  2536. .left-big-box-one{
  2537. height:137px;
  2538. margin-top:92px;
  2539. display: flex;
  2540. .text-p{
  2541. width:359px;
  2542. margin-right:10px;
  2543. margin-top:45px;
  2544. height:40px;
  2545. line-height:40px;
  2546. flex:1;
  2547. color:#24d1f9;
  2548. overflow:hidden;
  2549. text-overflow:ellipsis;
  2550. white-space:nowrap;
  2551. }
  2552. .button-p-one{
  2553. width:172px;
  2554. height:38px;
  2555. line-height:38px;
  2556. color:#24d1f9;
  2557. text-align: center;
  2558. background: url("../assets/ZDimages/bigData3_2/icon_sspt_ljssbk.png");
  2559. margin-right:5px;
  2560. margin-top:45px;
  2561. cursor: pointer;
  2562. }
  2563. .button-p-two{
  2564. width:120px;
  2565. height:38px;
  2566. line-height:38px;
  2567. color:#24d1f9;
  2568. text-align: center;
  2569. background: url("../assets/ZDimages/bigData3_2/icon_yjzh_fh.png");
  2570. margin-top:45px;
  2571. cursor: pointer;
  2572. }
  2573. }
  2574. .left-big-box-two{
  2575. height:500px;
  2576. position: relative;
  2577. .newEvacuation-map-max-big-box{
  2578. position: absolute;
  2579. top: 50%;
  2580. left: 50%;
  2581. -webkit-user-select: none;
  2582. img{
  2583. -webkit-user-drag: none;
  2584. }
  2585. .newEvacuation-map-big-box{
  2586. position: relative;
  2587. border:1px dashed #24D1F9;
  2588. .newEvacuation-map-for-box{
  2589. position: absolute;
  2590. display: flex;
  2591. flex-direction: column;
  2592. overflow: hidden;
  2593. .newEvacuation-map-for-min-box{
  2594. height:100%;
  2595. position: relative;
  2596. .map-for-name-p{
  2597. padding:0 10px;
  2598. height:20px;
  2599. line-height:20px;
  2600. font-size:14px;
  2601. text-align: center;
  2602. color:#24D1F9;
  2603. overflow: hidden;
  2604. text-overflow:ellipsis;
  2605. white-space:nowrap;
  2606. }
  2607. .map-for-num-p{
  2608. padding:0 10px;
  2609. height:20px;
  2610. line-height:20px;
  2611. font-size:14px;
  2612. text-align: center;
  2613. color:#24D1F9;
  2614. overflow: hidden;
  2615. text-overflow:ellipsis;
  2616. white-space:nowrap;
  2617. }
  2618. .user-num-box{
  2619. position: absolute;
  2620. left:0;
  2621. display: flex;
  2622. img{
  2623. width:20px;
  2624. height:15px;
  2625. margin:10px;
  2626. }
  2627. p{
  2628. line-height:35px;
  2629. font-size:14px;
  2630. color:#24D1F9;
  2631. }
  2632. }
  2633. .user-num-one{
  2634. top:0;
  2635. }
  2636. .user-num-two{
  2637. bottom:0;
  2638. }
  2639. .position-box{
  2640. position: absolute;
  2641. font-size:14px;
  2642. overflow: hidden;
  2643. }
  2644. .center-move-door-p-t {
  2645. background: url("../assets/ZDimages/bigData3_2/icon_pmbjt_m.png") !important;
  2646. background-size: 100% !important;
  2647. transform: rotate(180deg);
  2648. }
  2649. .center-move-door-p-b {
  2650. background: url("../assets/ZDimages/bigData3_2/icon_pmbjt_m.png") !important;
  2651. background-size: 100% !important;
  2652. }
  2653. .center-move-door-p-l {
  2654. background: url("../assets/ZDimages/bigData3_2/icon_pmbjt_m.png") !important;
  2655. background-size: 100% !important;
  2656. transform: rotate(90deg);
  2657. }
  2658. .center-move-door-p-r {
  2659. background: url("../assets/ZDimages/bigData3_2/icon_pmbjt_m.png") !important;
  2660. background-size: 100% !important;
  2661. transform: rotateZ(270deg);
  2662. }
  2663. .lightTopOn {
  2664. background: url("../assets/ZDimages/evacuation3_2/icon_sjt.png");
  2665. background-size: 100%;
  2666. }
  2667. .lightTopOff {
  2668. background: url("../assets/ZDimages/evacuation3_2/icon_shang_hs.png");
  2669. background-size: 100%;
  2670. }
  2671. .lightBottomOn {
  2672. background: url("../assets/ZDimages/evacuation3_2/icon_xjt.png");
  2673. background-size: 100%;
  2674. }
  2675. .lightBottomOff {
  2676. background: url("../assets/ZDimages/evacuation3_2/icon_xia_hs.png");
  2677. background-size: 100%;
  2678. }
  2679. .lightLeftOn {
  2680. background: url("../assets/ZDimages/evacuation3_2/icon_zuo.png");
  2681. background-size: 100%;
  2682. }
  2683. .lightLeftOff {
  2684. background: url("../assets/ZDimages/evacuation3_2/icon_zou_hs.png");
  2685. background-size: 100%;
  2686. }
  2687. .lightRightOn {
  2688. background: url("../assets/ZDimages/evacuation3_2/icon_yuo.png");
  2689. background-size: 100%;
  2690. }
  2691. .lightRightOff {
  2692. background: url("../assets/ZDimages/evacuation3_2/icon_you_hs.png");
  2693. background-size: 100%;
  2694. }
  2695. }
  2696. }
  2697. .for-map-box-one{
  2698. border:1px solid #24D1F9;
  2699. }
  2700. .for-map-box{
  2701. background: rgba(1,16,32,0.5);
  2702. }
  2703. .for-map-box-two{
  2704. background: url("../assets/ZDimages/bigData3_2/icon_jjck.png") center center no-repeat rgba(5,45,43,0.5);
  2705. background-size: 80px 80px;
  2706. }
  2707. .for-map-box-two-check{
  2708. background: url("../assets/ZDimages/bigData3_2/icon_jjck.png") center center no-repeat rgba(50,205,50,1);
  2709. background-size: 80px 80px;
  2710. }
  2711. .room-type-one{
  2712. //选中
  2713. background: rgba(30,118,142,0.4);
  2714. }
  2715. .room-type-two{
  2716. //报警
  2717. background: rgba(232,0,0,0.4);
  2718. box-shadow:0 0 10px 1px #E80000 inset;
  2719. }
  2720. .room-type-three{
  2721. //选中报警
  2722. background: rgba(30,118,142,0.4);
  2723. box-shadow:0 0 10px 1px #E80000 inset;
  2724. }
  2725. .room-type-noe{
  2726. /*border:1px solid #666;*/
  2727. /*background: rgba(102,102,102,0.6);*/
  2728. /*color:#666!important;*/
  2729. p{
  2730. /*color:#666!important;*/
  2731. }
  2732. }
  2733. .plan-map-for-box{
  2734. font-weight:500;
  2735. position:absolute;
  2736. z-index:100;
  2737. background: url("../assets/ZDimages/bigData3_2/img_zhpt_bg.png");
  2738. .plan-top-button-box{
  2739. display: flex;
  2740. p:nth-child(1){
  2741. flex:1;
  2742. }
  2743. p:nth-child(2){
  2744. font-size:14px;
  2745. color:#fff;
  2746. cursor: pointer;
  2747. margin:9px 12px 0 0 ;
  2748. }
  2749. }
  2750. .plan-time-box{
  2751. display: flex;
  2752. img{
  2753. width:24px;
  2754. height:24px;
  2755. margin-left:19px;
  2756. margin-right:8px;
  2757. }
  2758. p{
  2759. line-height:24px;
  2760. color:#fff;
  2761. font-size:14px;
  2762. }
  2763. }
  2764. .plan-text-box{
  2765. display: flex;
  2766. color:#fff;
  2767. margin-top:10px;
  2768. overflow: hidden;
  2769. .plan-title-p{
  2770. width:60px;
  2771. height:20px;
  2772. line-height:20px;
  2773. font-size:14px;
  2774. text-align: center;
  2775. margin:0 10px 0 18px;
  2776. border-radius:15px;
  2777. }
  2778. .plan-text-p{
  2779. width:170px;
  2780. height:20px;
  2781. line-height:20px;
  2782. font-size:14px;
  2783. overflow:hidden;
  2784. text-overflow:ellipsis;
  2785. white-space:nowrap;
  2786. }
  2787. .color-type-1{
  2788. background: #0183FA;
  2789. }
  2790. .color-type-2{
  2791. background: #FF9900;
  2792. }
  2793. .color-type-3{
  2794. background: #FF4800;
  2795. }
  2796. .color-type-4{
  2797. background: #FF0000;
  2798. }
  2799. }
  2800. .plan-text-box-two{
  2801. display: flex;
  2802. color:#fff;
  2803. margin-top:22px;
  2804. overflow: hidden;
  2805. .plan-title-p{
  2806. width:60px;
  2807. height:20px;
  2808. line-height:20px;
  2809. font-size:14px;
  2810. text-align: center;
  2811. margin:0 10px 0 18px;
  2812. border-radius:15px;
  2813. }
  2814. .plan-text-p{
  2815. width:170px;
  2816. height:20px;
  2817. line-height:20px;
  2818. font-size:14px;
  2819. overflow:hidden;
  2820. text-overflow:ellipsis;
  2821. white-space:nowrap;
  2822. }
  2823. .color-type-1{
  2824. background: #0183FA;
  2825. }
  2826. .color-type-2{
  2827. background: #FF9900;
  2828. }
  2829. .color-type-3{
  2830. background: #FF4800;
  2831. }
  2832. .color-type-4{
  2833. background: #FF0000;
  2834. }
  2835. }
  2836. .plan-button-p{
  2837. margin:5px auto 0;
  2838. width:80px;
  2839. line-height:22px;
  2840. background: #00a0e9;
  2841. color:#fff;
  2842. text-align: center;
  2843. border-radius:10px;
  2844. cursor: pointer;
  2845. }
  2846. }
  2847. .check-plan-map-for-box{
  2848. z-index:1000!important;
  2849. }
  2850. }
  2851. }
  2852. .null-mapList{
  2853. text-align: center;
  2854. font-size:16px;
  2855. color:#fff;
  2856. line-height:300px;
  2857. }
  2858. }
  2859. .left-big-box-three{
  2860. height:284px;
  2861. margin-top:47px;
  2862. .big-title-box{
  2863. margin-left:21px;
  2864. }
  2865. .horn-max-big-box-one{
  2866. display: flex;
  2867. margin-top:20px;
  2868. .horn-max-big-box-one-left{
  2869. flex:1;
  2870. //广播
  2871. .radio-button-box{
  2872. margin:10px 40px 10px 12px;
  2873. height:60px;
  2874. p{
  2875. width:128px;
  2876. line-height:28px;
  2877. font-size:14px;
  2878. text-align: center;
  2879. color:#fff;
  2880. border: 1px solid #1E768E;
  2881. border-radius: 5px;
  2882. display: inline-block;
  2883. margin:0 0 10px 10px;
  2884. cursor: pointer;
  2885. }
  2886. p:hover{
  2887. color:#24d1f9;
  2888. }
  2889. .check-p{
  2890. color:#24d1f9;
  2891. }
  2892. }
  2893. .radio-text-box{
  2894. height:90px;
  2895. margin:0 40px 0 22px;
  2896. div{
  2897. margin-bottom:10px;
  2898. p:nth-child(1){
  2899. color:#24D1F9;
  2900. font-size: 16px;
  2901. line-height:18px;
  2902. margin-bottom:10px;
  2903. span{
  2904. margin-right:20px;
  2905. }
  2906. }
  2907. p:nth-child(2){
  2908. font-size:14px;
  2909. line-height:16px;
  2910. color:#fff;
  2911. }
  2912. }
  2913. }
  2914. .radio-input-box{
  2915. margin:10px 40px 10px 22px;
  2916. .radio-input-button{
  2917. cursor: pointer;
  2918. }
  2919. }
  2920. }
  2921. .horn-max-big-box-one-right{
  2922. width:473px;
  2923. //火焰
  2924. .fire-max-box{
  2925. display: flex;
  2926. margin-left:16px;
  2927. .fire-min-box{
  2928. width:147px;
  2929. height:165px;
  2930. position: relative;
  2931. .fire-title-color-one{
  2932. color:#24d1f9;
  2933. }
  2934. .fire-title-color-two{
  2935. color:#FF2333;
  2936. }
  2937. .fire-title-p{
  2938. font-size:16px;
  2939. margin-top:28px;
  2940. text-align: center;
  2941. }
  2942. .center-img{
  2943. width:40px;
  2944. height:40px;
  2945. position: absolute;
  2946. top:60px;
  2947. left:54px;
  2948. }
  2949. .background-img{
  2950. position: absolute;
  2951. top:28px;
  2952. left:0;
  2953. width:147px;
  2954. height:113px;
  2955. }
  2956. .fire-name-p{
  2957. text-align: center;
  2958. margin-top:94px;
  2959. line-height:24px;
  2960. font-size:16px;
  2961. color:#fff;
  2962. }
  2963. .img-p{
  2964. z-index:10;
  2965. }
  2966. .img-p-1-one{
  2967. width:109px;
  2968. height:59px;
  2969. position: absolute;
  2970. top: 35px;
  2971. left:19px;
  2972. background: url("../assets/ZDimages/bigData3_2/img_yh_db_zdmh.png");
  2973. -webkit-animation-name: ringMove;
  2974. -webkit-animation-duration: 2s;
  2975. -webkit-animation-iteration-count: infinite;
  2976. -webkit-animation-delay: 0s;
  2977. }
  2978. .img-p-2-one{
  2979. width:117px;
  2980. height:59px;
  2981. position: absolute;
  2982. top: 25px;
  2983. left:15px;
  2984. background: url("../assets/ZDimages/bigData3_2/img_yh_zj_zdmh.png");
  2985. -webkit-animation-name: ringMove;
  2986. -webkit-animation-duration: 2s;
  2987. -webkit-animation-iteration-count: infinite;
  2988. -webkit-animation-delay: 0.2s;
  2989. }
  2990. .img-p-3-one{
  2991. width:133px;
  2992. height:65px;
  2993. position: absolute;
  2994. top: 8px;
  2995. left:7px;
  2996. background: url("../assets/ZDimages/bigData3_2/img_yh_dd_zdmh.png");
  2997. -webkit-animation-name: ringMove;
  2998. -webkit-animation-duration: 2s;
  2999. -webkit-animation-iteration-count: infinite;
  3000. -webkit-animation-delay: 0.4s;
  3001. }
  3002. .img-p-1-two{
  3003. width:109px;
  3004. height:59px;
  3005. position: absolute;
  3006. top: 35px;
  3007. left:19px;
  3008. background: url("../assets/ZDimages/bigData3_2/img_yh_db_zdmh_yc.png");
  3009. -webkit-animation-name: ringMove;
  3010. -webkit-animation-duration: 2s;
  3011. -webkit-animation-iteration-count: infinite;
  3012. -webkit-animation-delay: 0s;
  3013. }
  3014. .img-p-2-two{
  3015. width:117px;
  3016. height:59px;
  3017. position: absolute;
  3018. top: 25px;
  3019. left:15px;
  3020. background: url("../assets/ZDimages/bigData3_2/img_yh_zj_zdmh_yc.png");
  3021. -webkit-animation-name: ringMove;
  3022. -webkit-animation-duration: 2s;
  3023. -webkit-animation-iteration-count: infinite;
  3024. -webkit-animation-delay: 0.2s;
  3025. }
  3026. .img-p-3-two{
  3027. width:133px;
  3028. height:65px;
  3029. position: absolute;
  3030. top: 8px;
  3031. left:7px;
  3032. background: url("../assets/ZDimages/bigData3_2/img_yh_dd_zdmh_yc.png");
  3033. -webkit-animation-name: ringMove;
  3034. -webkit-animation-duration: 2s;
  3035. -webkit-animation-iteration-count: infinite;
  3036. -webkit-animation-delay: 0.4s;
  3037. }
  3038. }
  3039. }
  3040. .fire-button{
  3041. width:200px;
  3042. line-height:40px;
  3043. font-size:16px;
  3044. border:1px solid #FF2333;
  3045. color:#FF2333;
  3046. text-align: center;
  3047. border-radius:6px;
  3048. margin:15px auto;
  3049. cursor: pointer;
  3050. }
  3051. .fire-button:hover{
  3052. border:1px solid #FF2333;
  3053. background:#FF2333;
  3054. color:#fff;
  3055. }
  3056. .fire-text{
  3057. color:#FF2333;
  3058. font-size:14px;
  3059. text-align: center;
  3060. margin-top:25px;
  3061. }
  3062. .fire-text-one{
  3063. color:#FF2333;
  3064. font-size:14px;
  3065. text-align: center;
  3066. margin-top:20px;
  3067. line-height:20px;
  3068. }
  3069. .fire-text-two{
  3070. color:#FF2333;
  3071. font-size:14px;
  3072. text-align: center;
  3073. line-height:20px;
  3074. }
  3075. .null-fire-box{
  3076. img{
  3077. width:60px;
  3078. height:47px;
  3079. margin:88px 0 20px 204px;
  3080. }
  3081. p{
  3082. color:#fff;
  3083. font-size:16px;
  3084. text-align: center;
  3085. }
  3086. }
  3087. }
  3088. }
  3089. .horn-max-big-box-two{
  3090. margin-top:20px;
  3091. .horn-big-box-two{
  3092. display: flex;
  3093. margin-top:20px;
  3094. .horn-max-big-box-two-left{
  3095. height: 195px;
  3096. width:470px;
  3097. margin-right:20px;
  3098. .horn-for-p{
  3099. width:128px;
  3100. line-height:28px;
  3101. font-size:14px;
  3102. text-align: center;
  3103. color:#fff;
  3104. border: 1px solid #1E768E;
  3105. border-radius: 5px;
  3106. display: inline-block;
  3107. margin:0 0 20px 20px;
  3108. cursor: pointer;
  3109. }
  3110. .horn-for-p:hover{
  3111. color:#24d1f9;
  3112. }
  3113. .check-p{
  3114. color:#24d1f9;
  3115. }
  3116. }
  3117. .horn-max-big-box-two-right{
  3118. flex:1;
  3119. .radio-text-box{
  3120. height:150px;
  3121. margin:0 0 0 22px;
  3122. div{
  3123. margin-bottom:10px;
  3124. p:nth-child(1){
  3125. color:#24D1F9;
  3126. font-size: 16px;
  3127. line-height:18px;
  3128. margin-bottom:10px;
  3129. span{
  3130. margin-right:20px;
  3131. }
  3132. }
  3133. p:nth-child(2){
  3134. font-size:14px;
  3135. line-height:16px;
  3136. color:#fff;
  3137. }
  3138. }
  3139. }
  3140. .radio-input-box{
  3141. margin:10px 0 10px 22px;
  3142. .radio-input-button{
  3143. cursor: pointer;
  3144. }
  3145. }
  3146. }
  3147. }
  3148. }
  3149. }
  3150. }
  3151. .right-max-big-box{
  3152. width:462px;
  3153. .left-big-box-one{
  3154. margin-top:70px;
  3155. height:365px;
  3156. .big-title-box{
  3157. margin-left:65px;
  3158. }
  3159. .user-max-box{
  3160. height:340px;
  3161. margin-left:65px;
  3162. margin-top:27px;
  3163. .user-box{
  3164. width:175px;
  3165. line-height:48px;
  3166. border-radius:5px;
  3167. border: 1px solid #24D1F9;
  3168. display: inline-block;
  3169. margin:0 20px 18px 0;
  3170. div{
  3171. display: flex;
  3172. img{
  3173. margin:7px 16px;
  3174. height:36px;
  3175. width:36px;
  3176. border: 1px solid #24D1F9;
  3177. border-radius:50%;
  3178. padding:2px;
  3179. overflow: hidden;
  3180. box-shadow:0 0 5px 1px #24D1F9
  3181. }
  3182. p{
  3183. color:#24D1F9;
  3184. display:block;
  3185. overflow:hidden;
  3186. text-overflow:ellipsis;
  3187. white-space:nowrap;
  3188. margin-right:10px;
  3189. }
  3190. }
  3191. }
  3192. }
  3193. }
  3194. .left-big-box-two{
  3195. height:550px;
  3196. margin:70px 20px 0 65px;
  3197. .video-max-big-for-box{
  3198. .video-max-big-title-box{
  3199. border-bottom: 1px dashed #24d1f9;
  3200. display: flex;
  3201. color:#24d1f9;
  3202. margin-bottom:14px;
  3203. p{
  3204. line-height:55px;
  3205. margin-left:8px;
  3206. font-size:16px;
  3207. flex:1;
  3208. }
  3209. i{
  3210. font-size:16px;
  3211. line-height:55px;
  3212. margin-right:32px;
  3213. cursor: pointer;
  3214. }
  3215. }
  3216. .video-mx-big-box{
  3217. width:368px;
  3218. height:210px;
  3219. margin-top:14px;
  3220. }
  3221. }
  3222. }
  3223. }
  3224. .shade-max-big-box{
  3225. height:100%;
  3226. width:100%;
  3227. position: absolute;
  3228. top:0;
  3229. left:0;
  3230. background: rgba(0,0,0,0.5);
  3231. .shade-big-box{
  3232. position: absolute;
  3233. top:50%;
  3234. left:50%;
  3235. margin-left:-250px;
  3236. margin-top:-125px;
  3237. width:500px;
  3238. height:250px;
  3239. background: #011020;
  3240. border:1px solid #116e8e;
  3241. border-radius:10px;
  3242. .off-button{
  3243. position: absolute;
  3244. right:15px;
  3245. top:15px;
  3246. color:#fff;
  3247. font-size:16px;
  3248. cursor: pointer;
  3249. }
  3250. .text-box{
  3251. height:160px;
  3252. color:#fff;
  3253. overflow: hidden;
  3254. p{
  3255. padding:0 45px;
  3256. font-size:16px;
  3257. height:20px;
  3258. line-height:20px;
  3259. }
  3260. p:nth-child(1){
  3261. margin-top:55px;
  3262. }
  3263. p:nth-child(2){
  3264. margin-top:20px;
  3265. }
  3266. }
  3267. .button-box{
  3268. height:88px;
  3269. border-top:2px solid #116e8e;
  3270. display: flex;
  3271. .button-null{
  3272. flex:1;
  3273. }
  3274. .button-p{
  3275. width:80px;
  3276. height:30px;
  3277. line-height:30px;
  3278. margin-top:29px;
  3279. text-align: center;
  3280. border:1px solid #24D1F9;
  3281. color:#fff;
  3282. font-size:16px;
  3283. border-radius:4px;
  3284. cursor: pointer;
  3285. }
  3286. .button-p:hover{
  3287. border:1px solid #24D1F9;
  3288. background: #24D1F9;
  3289. color:#fff;
  3290. }
  3291. }
  3292. }
  3293. }
  3294. .evacuation-shade-max-big-box{
  3295. height:100%;
  3296. width:100%;
  3297. position: absolute;
  3298. top:0;
  3299. left:0;
  3300. background: rgba(0,0,0,0.5);
  3301. .evacuation-shade-big-box{
  3302. position: absolute;
  3303. top:50%;
  3304. left:50%;
  3305. margin-left:-550px;
  3306. margin-top:-335px;
  3307. width:1100px;
  3308. height:670px;
  3309. background: #011020;
  3310. border:1px solid #116e8e;
  3311. border-radius:10px;
  3312. .position-title-p{
  3313. position: absolute;
  3314. top:31px;
  3315. left:28px;
  3316. font-size:16px;
  3317. color:#fff;
  3318. line-height:18px;
  3319. }
  3320. .position-off-button-p{
  3321. position: absolute;
  3322. top:32px;
  3323. right:28px;
  3324. font-size:16px;
  3325. width:14px;
  3326. height:14px;
  3327. color:#24D1F9;
  3328. cursor: pointer;
  3329. }
  3330. .evacuation-shade-map-max-big-box{
  3331. width:1000px;
  3332. height:500px;
  3333. margin:77px 50px 20px;
  3334. position: relative;
  3335. /*border:1px solid #1E768E;*/
  3336. .evacuation-shade-map-big-box{
  3337. position: absolute;
  3338. top: 50%;
  3339. left: 50%;
  3340. -webkit-user-select: none;
  3341. .evacuation-shade-map-box{
  3342. position: relative;
  3343. border:1px dashed #24D1F9;
  3344. overflow: hidden;
  3345. .evacuation-shade-map-for-box{
  3346. position: absolute;
  3347. display: flex;
  3348. flex-direction: column;
  3349. overflow: hidden;
  3350. .evacuation-shade-map-min-box{
  3351. height:100%;
  3352. position: relative;
  3353. .map-for-name-p{
  3354. padding:0 10px;
  3355. height:20px;
  3356. line-height:20px;
  3357. font-size:14px;
  3358. text-align: center;
  3359. color:#24D1F9;
  3360. overflow: hidden;
  3361. text-overflow:ellipsis;
  3362. white-space:nowrap;
  3363. }
  3364. .map-for-num-p{
  3365. padding:0 10px;
  3366. height:20px;
  3367. line-height:20px;
  3368. font-size:14px;
  3369. text-align: center;
  3370. color:#24D1F9;
  3371. overflow: hidden;
  3372. text-overflow:ellipsis;
  3373. white-space:nowrap;
  3374. }
  3375. .user-num-box{
  3376. position: absolute;
  3377. left:0;
  3378. display: flex;
  3379. img{
  3380. width:20px;
  3381. height:15px;
  3382. margin:10px;
  3383. }
  3384. p{
  3385. line-height:35px;
  3386. font-size:14px;
  3387. color:#24D1F9;
  3388. }
  3389. }
  3390. .user-num-one{
  3391. top:0;
  3392. }
  3393. .user-num-two{
  3394. bottom:0;
  3395. }
  3396. .position-box{
  3397. position: absolute;
  3398. font-size:14px;
  3399. overflow: hidden;
  3400. }
  3401. .center-move-door-p-t {
  3402. background: url("../assets/ZDimages/bigData3_2/icon_pmbjt_m.png") !important;
  3403. background-size: 100% !important;
  3404. transform: rotate(180deg);
  3405. }
  3406. .center-move-door-p-b {
  3407. background: url("../assets/ZDimages/bigData3_2/icon_pmbjt_m.png") !important;
  3408. background-size: 100% !important;
  3409. }
  3410. .center-move-door-p-l {
  3411. background: url("../assets/ZDimages/bigData3_2/icon_pmbjt_m.png") !important;
  3412. background-size: 100% !important;
  3413. transform: rotate(90deg);
  3414. }
  3415. .center-move-door-p-r {
  3416. background: url("../assets/ZDimages/bigData3_2/icon_pmbjt_m.png") !important;
  3417. background-size: 100% !important;
  3418. transform: rotateZ(270deg);
  3419. }
  3420. .lightTopOn {
  3421. background: url("../assets/ZDimages/evacuation3_2/icon_sjt.png");
  3422. background-size: 100%;
  3423. }
  3424. .lightTopOff {
  3425. background: url("../assets/ZDimages/evacuation3_2/icon_shang_hs.png");
  3426. background-size: 100%;
  3427. }
  3428. .lightBottomOn {
  3429. background: url("../assets/ZDimages/evacuation3_2/icon_xjt.png");
  3430. background-size: 100%;
  3431. }
  3432. .lightBottomOff {
  3433. background: url("../assets/ZDimages/evacuation3_2/icon_xia_hs.png");
  3434. background-size: 100%;
  3435. }
  3436. .lightLeftOn {
  3437. background: url("../assets/ZDimages/evacuation3_2/icon_zuo.png");
  3438. background-size: 100%;
  3439. }
  3440. .lightLeftOff {
  3441. background: url("../assets/ZDimages/evacuation3_2/icon_zou_hs.png");
  3442. background-size: 100%;
  3443. }
  3444. .lightRightOn {
  3445. background: url("../assets/ZDimages/evacuation3_2/icon_yuo.png");
  3446. background-size: 100%;
  3447. }
  3448. .lightRightOff {
  3449. background: url("../assets/ZDimages/evacuation3_2/icon_you_hs.png");
  3450. background-size: 100%;
  3451. }
  3452. }
  3453. }
  3454. .for-map-box-one{
  3455. background: rgba(7,36,54,1);
  3456. border:1px solid #24D1F9;
  3457. }
  3458. .for-map-box{
  3459. /*background: rgba(1,16,32,1);*/
  3460. background: rgba(6,30,48,1);
  3461. }
  3462. .for-map-box-two{
  3463. background: url("../assets/ZDimages/bigData3_2/icon_jjck.png") center center no-repeat rgba(5,45,43,1);
  3464. background-size: 80px 80px;
  3465. }
  3466. .for-map-box-two-check{
  3467. background: url("../assets/ZDimages/bigData3_2/icon_jjck.png") center center no-repeat rgba(50,205,50,1);
  3468. background-size: 80px 80px;
  3469. }
  3470. .room-type-one{
  3471. //选中
  3472. background: rgba(30,118,142,0.4);
  3473. }
  3474. .room-type-two{
  3475. //报警
  3476. background: rgba(232,0,0,0.4);
  3477. box-shadow:0 0 10px 1px #E80000 inset;
  3478. }
  3479. .room-type-three{
  3480. //选中报警
  3481. background: rgba(30,118,142,0.4);
  3482. box-shadow:0 0 10px 1px #E80000 inset;
  3483. }
  3484. .room-type-noe{
  3485. /*border:1px solid #666;*/
  3486. /*background: rgba(102,102,102,0.6);*/
  3487. }
  3488. }
  3489. }
  3490. }
  3491. .evacuation-button-p{
  3492. width:500px;
  3493. line-height:50px;
  3494. border:1px solid #1E768E;
  3495. box-shadow:0 0 10px 1px #1E768E inset;
  3496. color:#24D1F9;
  3497. border-radius:6px;
  3498. text-align: center;
  3499. margin:0 300px;
  3500. cursor: pointer;
  3501. }
  3502. }
  3503. }
  3504. .fire-shade-max-big-box{
  3505. height:100%;
  3506. width:100%;
  3507. position: absolute;
  3508. top:0;
  3509. left:0;
  3510. background: rgba(0,0,0,0.8);
  3511. .fire-shade-big-box{
  3512. position: absolute;
  3513. top:50%;
  3514. left:50%;
  3515. margin-left:-175px;
  3516. margin-top:-105px;
  3517. width:350px;
  3518. height:210px;
  3519. border-radius:10px;
  3520. img{
  3521. width:106px;
  3522. height:81px;
  3523. margin:0 122px 25px;
  3524. }
  3525. p:nth-child(2){
  3526. font-size:22px;
  3527. line-height:30px;
  3528. text-align: center;
  3529. color:#fff;
  3530. margin-bottom:26px;
  3531. span{
  3532. font-size:28px;
  3533. color:#D60000;
  3534. font-weight:400;
  3535. }
  3536. }
  3537. p:nth-child(3){
  3538. font-size:14px;
  3539. box-shadow:0 0 10px 1px rgba(214,0,0,0.8) inset;
  3540. border: 1px solid #D60000;
  3541. color:#DE1F1F;
  3542. line-height:50px;
  3543. width:350px;
  3544. text-align: center;
  3545. cursor: pointer;
  3546. border-radius:10px;
  3547. }
  3548. }
  3549. }
  3550. /******************** css动画 ***********************/
  3551. //旋转
  3552. @keyframes rotating{
  3553. 0% {
  3554. transform: rotate(0deg);
  3555. /*transform: rotatex(0deg) rotateY(0deg) rotateZ(0deg);*/
  3556. }
  3557. 100% {
  3558. transform: rotate(360deg);
  3559. /*transform: rotatex(360deg) rotateY(360deg) rotateZ(360deg);*/
  3560. }
  3561. /*100%{transform:rotate(360deg);}*/
  3562. }
  3563. //心跳
  3564. @keyframes scaleDraw { /*定义关键帧、scaleDrew是需要绑定到选择器的关键帧名称*/
  3565. 0%{
  3566. transform: scale(1); /*开始为原始大小*/
  3567. }
  3568. 25%{
  3569. transform: scale(0.9); /*放大1.1倍*/
  3570. }
  3571. 50%{
  3572. transform: scale(1);
  3573. }
  3574. 75%{
  3575. transform: scale(0.9);
  3576. }
  3577. }
  3578. //上浮
  3579. @-webkit-keyframes ringMove {
  3580. 0% {
  3581. -webkit-transform: translateY(0px);
  3582. /*transform:scale(0.5px;*/
  3583. /*opacity:1;*/
  3584. }
  3585. 50% {
  3586. -webkit-transform: translateY(20px);
  3587. /*transform:scale(0.5px;*/
  3588. /*opacity:0;*/
  3589. }
  3590. 100% {
  3591. -webkit-transform: translateY(0);
  3592. /*transform:scale(0.6px;/*/
  3593. /*opacity:0;*/
  3594. }
  3595. }
  3596. }
  3597. </style>
  3598. <style lang="scss">
  3599. .newEvacuationBigData{
  3600. .building-select-box{
  3601. margin-top:45px;
  3602. width:200px;
  3603. margin-right:10px;
  3604. .el-input__inner{
  3605. background:rgba(0,0,0,0);
  3606. border:1px solid #24D1F9;
  3607. box-shadow:0 0 5px 1px #24D1F9 inset;
  3608. color:#fff;
  3609. }
  3610. .el-input__inner:hover{
  3611. border:1px solid #24D1F9;
  3612. box-shadow:0 0 5px 1px #24D1F9 inset;
  3613. }
  3614. }
  3615. .floor-select-box{
  3616. margin-top:45px;
  3617. width:100px;
  3618. margin-right:20px;
  3619. .el-input__inner{
  3620. background:rgba(0,0,0,0);
  3621. border:1px solid #24D1F9;
  3622. box-shadow:0 0 5px 1px #24D1F9 inset;
  3623. color:#fff;
  3624. }
  3625. .el-input__inner:hover{
  3626. border:1px solid #24D1F9;
  3627. box-shadow:0 0 5px 1px #24D1F9 inset;
  3628. }
  3629. }
  3630. .el-select-dropdown{
  3631. background:#01294d;
  3632. border:1px solid #24D1F9;
  3633. .el-select-dropdown__item{
  3634. background: rgba(0,0,0,0);
  3635. color:#fff;
  3636. }
  3637. .el-select-dropdown__item:hover{
  3638. background: #24D1F9;
  3639. }
  3640. }
  3641. .popper__arrow{
  3642. top:-7px;
  3643. border-bottom-color:#24D1F9!important;
  3644. }
  3645. ::after{
  3646. border-bottom-color:#24D1F9!important;
  3647. }
  3648. ::placeholder{
  3649. color: #fff;
  3650. }
  3651. .scrollbar-box::-webkit-scrollbar{
  3652. width: 4px; /*高宽分别对应横竖滚动条的尺寸*/
  3653. height: 4px;
  3654. }
  3655. .scrollbar-box::-webkit-scrollbar-thumb{
  3656. border-radius: 5px;
  3657. -webkit-box-shadow: inset 0 0 5px #116e8e;
  3658. background: #116e8e;
  3659. }
  3660. .scrollbar-box::-webkit-scrollbar-track{
  3661. -webkit-box-shadow: inset 0 0 5px rgba(255,255,255,0);
  3662. border-radius: 0;
  3663. background: rgba(255,255,255,0);
  3664. }
  3665. //switch开关
  3666. .control-for-box{
  3667. .switch .el-switch__label {
  3668. position: absolute;
  3669. display: none;
  3670. }
  3671. .switch .el-switch__label--right {
  3672. z-index: 1;
  3673. }
  3674. .switch .el-switch__label--right span{
  3675. margin-right: 9px;
  3676. }
  3677. .switch .el-switch__label--left {
  3678. z-index: 1;
  3679. }
  3680. .switch .el-switch__label--left span{
  3681. margin-left: 9px;
  3682. }
  3683. .switch .el-switch__label.is-active {
  3684. display: block;
  3685. }
  3686. .switch.el-switch .el-switch__core,
  3687. .el-switch .el-switch__label {
  3688. width: 72px !important;
  3689. height:32px!important;
  3690. line-height:32px!important;
  3691. -webkit-border-radius: 20px!important;
  3692. -moz-border-radius: 20px!important;
  3693. border-radius: 20px!important;
  3694. margin: 0;
  3695. position: absolute;
  3696. top: 0;
  3697. }
  3698. .switch .el-switch__label--left span{
  3699. margin-left:36px!important;
  3700. color: #24d1f9;
  3701. }
  3702. .switch .el-switch__label--right span{
  3703. margin-left:8px!important;
  3704. color:#0c516b;
  3705. }
  3706. .el-switch__core:after{
  3707. height:24px!important;
  3708. width:24px!important;
  3709. top:3px!important;
  3710. margin-left: 2px!important;
  3711. background-color: #24d1f9;
  3712. }
  3713. .el-switch__core{
  3714. border-color: #24d1f9;
  3715. background-color: rgba(0,0,0,0);
  3716. }
  3717. .el-switch.is-checked .el-switch__core{
  3718. border-color: #0c516b;
  3719. background-color: rgba(0,0,0,0);
  3720. }
  3721. .el-switch.is-checked .el-switch__core::after{
  3722. background-color: #0c516b;
  3723. margin-left: -27px!important;
  3724. }
  3725. .el-switch{
  3726. margin:12px 0 0 42px;
  3727. display: block;
  3728. width:80px!important;
  3729. height:4px!important;
  3730. }
  3731. }
  3732. //input 样式
  3733. .radio-input-box{
  3734. .el-input__inner{
  3735. background:rgba(0,0,0,0);
  3736. border:1px solid #24D1F9;
  3737. box-shadow:0 0 5px 1px #24D1F9 inset;
  3738. color:#fff;
  3739. border-bottom-left-radius: 4px;
  3740. border-top-left-radius: 4px;
  3741. border-bottom-right-radius: 0!important;
  3742. border-top-right-radius: 0!important;
  3743. }
  3744. .el-input-group__append{
  3745. background:rgba(0,0,0,0);
  3746. border:1px solid #24D1F9;
  3747. box-shadow:0 0 5px 1px #24D1F9 inset;
  3748. color:#fff;
  3749. border-bottom-left-radius: 0!important;
  3750. border-top-left-radius: 0!important;
  3751. }
  3752. }
  3753. }
  3754. </style>