newEvacuationBigData.vue 132 KB

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