newEvacuationBigData.vue 140 KB

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