newEvacuationBigData.vue 154 KB

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