newEvacuationBigData.vue 139 KB

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