newEvacuationBigData.vue 137 KB

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