newEvacuationBigData.vue 141 KB

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