newEvacuationBigData.vue 140 KB

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