newEvacuationBigData.vue 133 KB

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