newEvacuationBigData.vue 138 KB

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