newEvacuationBigData.vue 138 KB

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