performEvacuationHome.vue 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727
  1. <!-- 应急疏散首页 -->
  2. <template>
  3. <div class="performEvacuationHome" ref="maxBox">
  4. <div class="top-title-box">
  5. <div class="top-title-img-box">应 急 处 置</div>
  6. <div class="top-title-button-box" @click="goRoute">
  7. <i class="el-icon-switch-button"></i>
  8. <p>{{routeType?'退出全屏':'全屏'}}</p>
  9. </div>
  10. </div>
  11. <div class="content-box">
  12. <div class="content-left-max-big-box">
  13. <!--楼层选择/实时人数-->
  14. <div class="content-floor-num-box">
  15. <!--楼层选择-->
  16. <div class="content-floor-box">
  17. <el-select v-model="buildId" placeholder="请选择"
  18. :popper-append-to-body="false"
  19. @change="buildingChange"
  20. style="width:240px;"
  21. class="building-select-box">
  22. <el-option
  23. v-for="item in buildOptions"
  24. :key="item.id"
  25. :label="item.name"
  26. :value="item.id">
  27. <div style="display: flex" v-if="item.planType">
  28. <img src="@/assets/ZDimages/emergencyManagement/icon_lc_yc.png" style="margin:11px 10px 0 0;width:14px;height:12px;">
  29. <p style="margin-right:24px;">{{ item.name }}</p>
  30. </div>
  31. <div style="display: flex" v-else>
  32. <p style="margin:0 24px;">{{ item.name }}</p>
  33. </div>
  34. </el-option>
  35. </el-select>
  36. </div>
  37. <!--实时人数-->
  38. <div class="content-num-box">
  39. <img src="@/assets/ZDimages/emergencyManagement/newImg/icon_zhpt_rs.png">
  40. <p>实时人数:</p>
  41. <p>{{floorUserNum}} 人</p>
  42. </div>
  43. </div>
  44. <!--楼层图/楼层选择-->
  45. <div class="content-map-select-box">
  46. <!--楼层图-->
  47. <div class="content-map-box">
  48. <div class="newEvacuation-map-max-big-box"
  49. v-if="mapType"
  50. :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;'">
  51. <div class="newEvacuation-map-big-box" @click="clickMap"
  52. :style="'width:'+mapData.width+'px;height:'+mapData.height+'px;'">
  53. <div class="newEvacuation-map-for-box for-map-box-one"
  54. :class="!item.planType && checkSubId ==item.subId ? 'room-type-one':(
  55. item.planType && checkSubId !=item.subId ? 'room-type-two':(
  56. item.planType && checkSubId ==item.subId ? 'room-type-three':(
  57. !item.loginAdmin ? 'room-type-noe':''
  58. )))"
  59. v-for="(item,index) in mapList" :key="item.key" v-if="item.type == 1"
  60. :style="'top:'+item.y+'px;left:'+item.x+'px;width:'+item.w+'px;height:'+item.h+'px;'+(item.levelColor?'background-color:'+item.levelColor+';':'')">
  61. <div class="newEvacuation-map-for-min-box">
  62. <!--名称/实验室名称-->
  63. <el-tooltip class="item" effect="dark" :content="item.roomType == '-99'?item.roomName:(item.subName?item.subName:'未绑定')" placement="top">
  64. <p class="map-for-name-p" :style="'margin-top:'+((item.h/2)-20)+'px;'">{{item.roomType == '-99'?item.roomName:(item.subName?item.subName:'未绑定')}}</p>
  65. </el-tooltip>
  66. <!--编号-->
  67. <el-tooltip class="item" effect="dark" :content="'('+item.roomNum+')'" placement="top">
  68. <p class="map-for-num-p">({{item.roomNum}})</p>
  69. </el-tooltip>
  70. <!--门-->
  71. <div class="position-box"
  72. :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':'')))"
  73. v-for="(minItem,minIndex) in item.doorList" :key="minIndex"
  74. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  75. <!--实验室人数-->
  76. <div v-if="item.onLineNum!=null" class="user-num-box" :class="item.doorList[0].toward == 'top'?'user-num-two':'user-num-one'">
  77. <img src="@/assets/ZDimages/emergencyManagement/icon_pmt_ry.png">
  78. <p>{{item.onLineNum}} 人</p>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="newEvacuation-map-for-box for-map-box"
  83. v-for="(item,indexOne) in mapList" :key="item.key" v-if="item.type == 2"
  84. :style="'top:'+item.y+'px;left:'+item.x+'px;width:'+item.w+'px;height:'+item.h+'px;'">
  85. <div class="newEvacuation-map-for-min-box">
  86. <!--灯-->
  87. <div class="position-box"
  88. :class="
  89. minItem.state=='1'&&minItem.openType?'lightTopOn':(minItem.state=='1'&&!minItem.openType?'lightTopOff':
  90. (minItem.state=='2'&&minItem.openType?'lightBottomOn':(minItem.state=='2'&&!minItem.openType?'lightBottomOff':
  91. (minItem.state=='3'&&minItem.openType?'lightLeftOn':(minItem.state=='3'&&!minItem.openType?'lightLeftOff':
  92. (minItem.state=='4'&&minItem.openType?'lightRightOn':(minItem.state=='4'&&!minItem.openType?'lightRightOff':'')))))))"
  93. v-for="(minItem,minIndex) in item.lightList" :key="minIndex"
  94. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  95. </div>
  96. </div>
  97. <div class="newEvacuation-map-for-box for-map-box-two"
  98. v-for="(item,indexTwo) in mapList" :key="item.key" v-if="item.type == 3"
  99. :class="item.roomCheckType?'for-map-box-two-check':''"
  100. :style="'top:'+item.y+'px;left:'+item.x+'px;width:'+item.w+'px;height:'+item.h+'px;'">
  101. <div class="newEvacuation-map-for-min-box"></div>
  102. </div>
  103. <div class="plan-map-for-box" :class="checkPlanId == item.subId?'check-plan-map-for-box':''"
  104. :style="'width:'+item.width+'px;height:'+item.height+'px;left:'+item.left+'px;top:'+item.top+'px;'"
  105. v-for="(item,index) in planMapList" :key="item.subId" v-if="item.planType">
  106. <div class="plan-top-button-box">
  107. </div>
  108. <div class="plan-time-box">
  109. <img src="@/assets/ZDimages/emergencyManagement/icon_dp_bjsj.png">
  110. <p>{{item.riskPlanTriggerTime}}</p>
  111. </div>
  112. <div class="plan-text-box">
  113. <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>
  114. <p class="plan-text-p">{{item.name}}</p>
  115. </div>
  116. <!--<p class="plan-button-p" @click="shadeButton(7,item.groupId)">结束预案</p>-->
  117. </div>
  118. </div>
  119. </div>
  120. <p class="null-mapList" v-if="!mapList[0]">暂无数据</p>
  121. </div>
  122. <!--楼层选择-->
  123. <div class="content-select-box">
  124. <div class="for-select-box">
  125. <p class="for-select-p" :class="checkFloor == index ?'for-select-p-check':''"
  126. @click="clickFloor(item,index)"
  127. v-for="(item,index) in floorOptions" :key="index">
  128. {{index+1}}
  129. </p>
  130. </div>
  131. </div>
  132. </div>
  133. <!--智能物联/危险源-->
  134. <div class="content-monitor-danger-box">
  135. <!--智能物联-->
  136. <div class="content-monitor-box">
  137. <div class="big-title-box">
  138. <img src="@/assets/ZDimages/emergencyManagement/icon_znjc_tb.png">
  139. <p>智能物联</p>
  140. </div>
  141. <p class="content-position-monitor-num-p">总数:{{monitorNum}}</p>
  142. <div class="content-monitor-for-box scrollbar-box" :class="!monitorList[0]?'content-monitor-null-box':''">
  143. <div class="monitor-for-box" v-for="(item,index) in monitorList" :key="index">
  144. <div class="monitor-num-box">
  145. <p class="monitor-num-p">{{item.count}}</p>
  146. <div class="monitor-img-box">
  147. <!--svg组件-->
  148. <!--<svg-icon class="svg-img" icon-class="http://192.168.1.43/labSystem/admin/statics/statics/bigFile/2022020818/404.svg"/>-->
  149. <svg-icon v-if="item.exceptionIcon" class="svg-img" :icon-class="item.exceptionIcon"/>
  150. </div>
  151. </div>
  152. <p class="monitor-name-p">{{item.name}}</p>
  153. </div>
  154. <div class="null-box" v-if="!monitorList[0]">
  155. <img class="null-img" src="@/assets/ZDimages/emergencyManagement/newImg/img_zhpt_znjcsj.png">
  156. <p class="null-p">暂无数据</p>
  157. </div>
  158. </div>
  159. </div>
  160. <!--危险源-->
  161. <div class="content-danger-box">
  162. <div class="big-title-box">
  163. <img src="@/assets/ZDimages/emergencyManagement/icon_yygb_wxy.png">
  164. <p>危险源</p>
  165. </div>
  166. <div class="content-danger-for-box" :class="!dangerList.nameList[0]?'content-danger-null-box':''">
  167. <div class="danger-for-box" id="eCharts" v-show="dangerList.nameList[0]"></div>
  168. <div class="null-box" v-if="!dangerList.nameList[0]">
  169. <img class="null-img" src="@/assets/ZDimages/emergencyManagement/newImg/img_zhpt_zwzzsj.png">
  170. <p class="null-p">暂无数据</p>
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. <!--摄像头-->
  177. <div class="content-right-max-big-box">
  178. <div class="big-title-box">
  179. <img src="@/assets/ZDimages/emergencyManagement/icon_sysnry_jk.png">
  180. <p>视频监控</p>
  181. </div>
  182. <div class="content-video-for-box" :class="!videoList[0]?'content-video-null-box':''">
  183. <div class="video-for-box" v-if="videoType">
  184. <H5PlayerVideo style="margin:10px 0 0;"
  185. v-for="(item,index) in videoList" :key="index" :videoProps="item"></H5PlayerVideo>
  186. </div>
  187. <div class="pagination-box">
  188. <p class="flex-null-p"></p>
  189. <pagination
  190. v-show="videoTotal > 3"
  191. :total="videoTotal"
  192. layout="total, prev, pager, next"
  193. :page.sync="videoQueryParams.page"
  194. :limit.sync="videoQueryParams.pageSize"
  195. @pagination="videoInitialize"
  196. />
  197. <p class="flex-null-p"></p>
  198. </div>
  199. <div class="null-box" v-if="!videoList[0]">
  200. <img class="null-img" src="@/assets/ZDimages/emergencyManagement/newImg/img_zhpt_zwsj.png">
  201. <p class="null-p">暂无数据</p>
  202. </div>
  203. </div>
  204. </div>
  205. </div>
  206. </div>
  207. </template>
  208. <script>
  209. import mqtt from 'mqtt'
  210. import { laboratoryBigViewGetBuildByBigView,laboratoryBigViewGetFloorByBigView,
  211. laboratoryBigViewHazardCensus, iotBigViewStatisticsHardwareDeviceType,
  212. laboratoryBigViewOnLineUserList, laboratoryExitLineGetRedisEvacuation } from "@/api/emergencyManagement/index";
  213. import { laboratoryBigViewSelectTriggerInfo } from "@/api/commonality/permission";
  214. import { iotCameraFindByCondition } from "@/api/basicsModules/index";
  215. import H5PlayerVideo from '@/components/H5PlayerVideo/H5PlayerVideo.vue';
  216. export default {
  217. name: 'performEvacuationHome',
  218. components: {
  219. H5PlayerVideo,
  220. },
  221. props:{
  222. propsBigData:{},
  223. },
  224. data () {
  225. return {
  226. //当前路由状态
  227. routeType:false,
  228. //楼栋数据
  229. buildId:null,
  230. buildOptions:[],
  231. //楼层数据
  232. floorId:null,
  233. floorOptions:[],
  234. //楼层人数
  235. floorUserNum:0,
  236. //选中楼层
  237. checkFloor:0,
  238. //智能物联
  239. monitorList:[],
  240. monitorNum:0,
  241. //危险源
  242. dangerList:{
  243. nameList: [],
  244. numList: [],
  245. maxNumList: [],
  246. },
  247. width:397,
  248. height:223,
  249. videoType:false,
  250. //视频数据
  251. videoQueryParams:{
  252. page:1,
  253. pageSize:3,
  254. },
  255. videoList:[],
  256. videoTotal:0,
  257. //地图数据
  258. mapList:[],
  259. zoomData:null,
  260. mapData:{},
  261. planMapList:[],
  262. mapType:false,
  263. //实验室选中/报警数据
  264. checkSubId:null,
  265. //优先显示的提示
  266. checkPlanId:null,
  267. //疏散灯
  268. lightOpic:"iot/hardware/evacuationLight/floor/",
  269. lightClient:{},
  270. //疏散
  271. evacuateOpic:"lab/floor/exit/line",
  272. evacuateClient:{},
  273. //预案
  274. planOpic:'lab/risk/plan/change',
  275. planClient:{},
  276. }
  277. },
  278. created () {
  279. //根据判定当前全屏状态
  280. if(this.$route.path == '/performEvacuationBig'){
  281. this.$set(this,'routeType',true);
  282. }else{
  283. this.$set(this,'routeType',false);
  284. }
  285. this.$set(this,'buildId',this.propsBigData.buildId);
  286. this.$set(this,'floorId',this.propsBigData.floorId);
  287. },
  288. mounted () {
  289. this.getBuild();
  290. },
  291. methods: {
  292. //地图点击跳转2级
  293. clickMap(){
  294. let obj = {
  295. buildId:this.buildId,
  296. floorId:this.floorId,
  297. }
  298. this.$parent.goPage(2,obj);
  299. },
  300. //获取楼层相关数据
  301. getFloorData(){
  302. //重置 摄像头查询参数
  303. this.$set(this,'videoQueryParams',{
  304. page:1,
  305. pageSize:3,
  306. });
  307. //获取楼层-摄像头列表;
  308. this.videoInitialize();
  309. //获取楼层布局数据
  310. this.laboratoryBigViewGetFloorByBigView();
  311. //获取楼层-总人数;
  312. this.laboratoryBigViewOnLineUserList();
  313. //获取楼层-智能物联设备列表;
  314. this.iotBigViewStatisticsHardwareDeviceType();
  315. //获取楼层-危险源统计;
  316. this.laboratoryBigViewHazardCensus();
  317. this.offLightMQTT('on')
  318. //判断是否已有链接
  319. if(!this.evacuateClient.unsubscribe){
  320. this.offEvacuateMQTT('on');
  321. }
  322. //判断是否已有链接
  323. if(!this.planClient.unsubscribe){
  324. this.offPlanMQTT('on');
  325. }
  326. },
  327. videoInitialize() {
  328. let self = this;
  329. self.$set(self, 'videoType', false);
  330. self.$set(self, 'videoList', []);
  331. // type 1.楼栋 2.楼层 3.楼道 4.实验室
  332. let obj = {
  333. page:this.videoQueryParams.page,
  334. pageSize:this.videoQueryParams.pageSize,
  335. buildId:'',
  336. floorId:this.floorId,
  337. passageway:'',
  338. subIds:[],
  339. };
  340. iotCameraFindByCondition(obj).then(response => {
  341. let list = [];
  342. for(let i=0;i<response.data.records.length;i++){
  343. list.push(
  344. {
  345. width: this.width, //(宽度:非必传-默认600)
  346. height: this.height, //(高度:非必传-默认338)
  347. url: response.data.records[i].streamUrl,
  348. }
  349. )
  350. }
  351. this.$set(this,'videoList',list)
  352. this.$set(this,'videoTotal',response.data.total);
  353. this.$nextTick(()=>{
  354. setTimeout(function(){
  355. self.$set(self, 'videoType', true);
  356. },1000);
  357. })
  358. });
  359. },
  360. //切换楼层
  361. clickFloor(item,index){
  362. this.$set(this,'checkFloor',index);
  363. this.$set(this,'floorId',item.id);
  364. this.getFloorData();
  365. },
  366. //楼栋数据选择
  367. buildingChange(){
  368. //获取楼层数据
  369. this.getFloor(2);
  370. },
  371. //跳转
  372. goRoute(){
  373. if(this.routeType){
  374. this.$router.push({
  375. path: "/emergencyManagement/performEvacuation",
  376. query: {
  377. buildId: this.buildId,
  378. floorId:this.floorId,
  379. type:1,
  380. }
  381. })
  382. this.exitfull();
  383. }else{
  384. this.$router.push({
  385. path: "/performEvacuationBig",
  386. query: {
  387. buildId: this.buildId,
  388. floorId:this.floorId,
  389. type:1,
  390. }
  391. })
  392. this.fullScreen();
  393. }
  394. },
  395. //获取楼栋数据
  396. getBuild(){
  397. laboratoryBigViewGetBuildByBigView({type:2}).then(response => {
  398. if(response.data[0]){
  399. this.$set(this,'buildOptions',response.data);
  400. if(!this.buildId){
  401. this.$set(this,'buildId',response.data[0].id);
  402. }
  403. //获取楼层数据
  404. this.getFloor(1);
  405. }
  406. })
  407. },
  408. //获取楼层数据
  409. getFloor(type){
  410. let self = this;
  411. laboratoryBigViewGetBuildByBigView({id:this.buildId,type:3}).then(response => {
  412. //重置 楼层数据
  413. this.$set(this,'floorOptions',response.data);
  414. if(type == 1){
  415. if(self.floorId){
  416. response.data.forEach((item,index)=>{
  417. if(item.id == self.floorId){
  418. this.$set(this,'checkFloor',index);
  419. }
  420. })
  421. }else{
  422. this.$set(this,'floorId',response.data[0].id);
  423. //重置 选中楼层
  424. this.$set(this,'checkFloor',0);
  425. }
  426. }else if(type == 2){
  427. this.$set(this,'floorId',response.data[0].id);
  428. //重置 选中楼层
  429. this.$set(this,'checkFloor',0);
  430. }
  431. this.getFloorData();
  432. })
  433. },
  434. //获取楼层布局数据
  435. laboratoryBigViewGetFloorByBigView(){
  436. laboratoryBigViewGetFloorByBigView({id:this.floorId}).then(response => {
  437. if(response.data[0]){
  438. if(response.data[0].buildLayoutVoList && response.data[0].labExitLineVo){
  439. let list = JSON.parse(response.data[0].labExitLineVo.layoutJoinData)
  440. for(let i=0;i<list.length;i++){
  441. if(list[i].type == '2'){
  442. //楼道
  443. for(let o=0;o<list[i].lightList.length;o++){
  444. list[i].lightList[o].openType = false;
  445. }
  446. }else if(list[i].type == '1'){
  447. const hex2Rgba = (bgColor) => {
  448. let color = bgColor.slice(1); // 去掉'#'号
  449. let rgba = [
  450. parseInt("0x" + color.slice(0, 2)),
  451. parseInt("0x" + color.slice(2, 4)),
  452. parseInt("0x" + color.slice(4, 6)),
  453. 0.6
  454. ];
  455. return "rgba(" + rgba.toString() + ")";
  456. };
  457. for(let o=0;o<response.data[0].buildLayoutVoList.length;o++){
  458. if(list[i].key == response.data[0].buildLayoutVoList[o].pointName){
  459. list[i].id = response.data[0].buildLayoutVoList[o].id;
  460. list[i].buildId = response.data[0].buildLayoutVoList[o].buildId;
  461. list[i].floorId = response.data[0].buildLayoutVoList[o].floorId;
  462. list[i].roomType = response.data[0].buildLayoutVoList[o].roomType;
  463. list[i].roomName = response.data[0].buildLayoutVoList[o].roomName;
  464. list[i].roomNum = response.data[0].buildLayoutVoList[o].roomNum;
  465. list[i].subName = response.data[0].buildLayoutVoList[o].subName;
  466. list[i].subId = response.data[0].buildLayoutVoList[o].subId;
  467. list[i].onLineNum = response.data[0].buildLayoutVoList[o].onLineNum;
  468. list[i].loginAdmin = response.data[0].buildLayoutVoList[o].loginAdmin;
  469. list[i].levelColor = response.data[0].buildLayoutVoList[o].levelColor?hex2Rgba(response.data[0].buildLayoutVoList[o].levelColor):'';
  470. list[i].planType = false;
  471. }
  472. }
  473. }else if(list[i].type == 3){
  474. list[i].roomCheckType = false;
  475. }
  476. }
  477. let obj = this.calculateMapMax(list)
  478. this.$set(this.mapData,'width',obj.maxWidth);
  479. this.$set(this.mapData,'height',obj.maxHeight);
  480. this.$set(this.mapData,'zoomData',obj.zoomData);
  481. this.$set(this,'mapList',JSON.parse(JSON.stringify(list)));
  482. this.$set(this,'mapType',true);
  483. //处理实验室弹窗数据
  484. let roomList = [];
  485. for(let i=0;i<list.length;i++){
  486. if(list[i].type == 1 && list[i].subId){
  487. let roomObj = {
  488. subId:list[i].subId
  489. };
  490. if(list[i].doorList[0].toward == 'top'){
  491. roomObj.width = 266;
  492. roomObj.height = 142;
  493. roomObj.left = (list[i].w/2) + (list[i].x) - 133;
  494. roomObj.top = list[i].y - 111;
  495. roomObj.planType = false;
  496. }else if(list[i].doorList[0].toward == 'bottom'){
  497. roomObj.width = 266;
  498. roomObj.height = 142;
  499. roomObj.left = (list[i].w/2) + (list[i].x) - 133;
  500. roomObj.top = list[i].y + list[i].h;
  501. roomObj.planType = false;
  502. }else if(list[i].doorList[0].toward == 'left'){
  503. roomObj.width = 266;
  504. roomObj.height = 142;
  505. roomObj.left = list[i].x - 133;
  506. roomObj.top = (list[i].h/2) + (list[i].y) - 56;
  507. roomObj.planType = false;
  508. }else if(list[i].doorList[0].toward == 'fight'){
  509. roomObj.width = 266;
  510. roomObj.height = 142;
  511. roomObj.left = list[i].x + list[i].w + 133;
  512. roomObj.top = (list[i].h/2) + (list[i].y) - 56;
  513. roomObj.planType = false;
  514. }
  515. roomList.push(roomObj);
  516. }
  517. }
  518. this.$set(this,'planMapList',roomList);
  519. }else{
  520. this.$set(this,'mapData',{});
  521. this.$set(this,'mapList',[]);
  522. this.$set(this,'mapType',false);
  523. this.$set(this,'planMapList',[]);
  524. }
  525. //获取预案列表
  526. this.laboratoryBigViewSelectTriggerInfo();
  527. //获取疏散数据
  528. this.laboratoryExitLineGetRedisEvacuation();
  529. }
  530. })
  531. },
  532. //查询楼层人数
  533. laboratoryBigViewOnLineUserList(){
  534. laboratoryBigViewOnLineUserList({floorId:this.floorId}).then(response => {
  535. this.$set(this,'floorUserNum',response.data);
  536. })
  537. },
  538. //查询当前正在发生的预案
  539. laboratoryBigViewSelectTriggerInfo(){
  540. let self = this;
  541. laboratoryBigViewSelectTriggerInfo().then(response => {
  542. //楼栋预案标记
  543. for(let o=0;o<self.buildOptions.length;o++){
  544. let num = 0;
  545. for(let i=0;i<response.data.length;i++){
  546. if(response.data[i].buildId == self.buildOptions[o].id){
  547. num++
  548. }
  549. }
  550. self.$set(self.buildOptions[o],'planType',num != 0);
  551. }
  552. //实验室预案标记
  553. for(let o=0;o<self.mapList.length;o++){
  554. let num = 0;
  555. if(self.mapList[o].type == 1){
  556. let newData = {};
  557. for(let i=0;i<response.data.length;i++){
  558. if(response.data[i].subId == self.mapList[o].subId){
  559. num++
  560. newData = response.data[i];
  561. }
  562. }
  563. if(num != 0){
  564. self.$set(self.mapList[o],'planType',true);
  565. for(let x=0;x<self.planMapList.length;x++){
  566. if(self.planMapList[x].subId == self.mapList[o].subId){
  567. self.$set(self.planMapList[x],'riskPlanTriggerTime',this.parseTime(newData.eventStartTime,"{y}-{m}-{d} {h}:{i}:{s}"));
  568. self.$set(self.planMapList[x],'riskAttribute',newData.riskAttribute);
  569. self.$set(self.planMapList[x],'riskPlanLevel',newData.riskPlanLevel);
  570. self.$set(self.planMapList[x],'riskPlanLevelName',newData.riskPlanLevel==1?'低风险':(newData.riskPlanLevel==2?'中风险':(newData.riskPlanLevel==3?'较高风险':(newData.riskPlanLevel==4?'高风险':''))));
  571. self.$set(self.planMapList[x],'name',newData.riskPlanName);
  572. self.$set(self.planMapList[x],'groupId',newData.eventId);
  573. self.$set(self.planMapList[x],'planType',true);
  574. }
  575. }
  576. }else{
  577. self.mapList[o].planType = false;
  578. for(let x=0;x<self.planMapList.length;x++){
  579. if(self.planMapList[x].subId == self.mapList[o].subId){
  580. self.$set(self.planMapList[x],'planType',false);
  581. self.$set(self.planMapList[x],'riskPlanTriggerTime',null);
  582. self.$set(self.planMapList[x],'riskAttribute',null);
  583. self.$set(self.planMapList[x],'riskPlanLevel',null);
  584. self.$set(self.planMapList[x],'riskPlanLevelName',null);
  585. self.$set(self.planMapList[x],'groupId',null);
  586. self.$set(self.planMapList[x],'name',null);
  587. }
  588. }
  589. }
  590. }
  591. }
  592. this.$forceUpdate();
  593. })
  594. },
  595. //查询当前楼栋楼层下发生的疏散数据
  596. laboratoryExitLineGetRedisEvacuation(){
  597. let self = this;
  598. let obj = {
  599. buildId:this.buildId,
  600. floorId:this.floorId,
  601. }
  602. laboratoryExitLineGetRedisEvacuation(obj).then(response => {
  603. if(response.data.doorPointNames){
  604. for(let o=0;o<self.mapList.length;o++){
  605. if(self.mapList[o].type == 2){
  606. for(let x=0;x<self.mapList[o].lightList.length;x++){
  607. let num = 0;
  608. for(let i=0;i<response.data.lightPointSet.length;i++){
  609. if(response.data.lightPointSet[i]){//处理后端返回的异常的NULL
  610. if(self.mapList[o].lightList[x].key == response.data.lightPointSet[i].key){
  611. num++
  612. }
  613. }
  614. }
  615. self.mapList[o].lightList[x].openType = num != 0;
  616. }
  617. }
  618. if(self.mapList[o].type == 3){
  619. let age = 0;
  620. for(let i=0;i<response.data.doorPointNames.length;i++){
  621. if(response.data.doorPointNames[i] == self.mapList[o].key){
  622. age++
  623. }
  624. }
  625. self.mapList[o].roomCheckType = age != 0;
  626. }
  627. }
  628. }else{
  629. for(let o=0;o<self.mapList.length;o++){
  630. if(self.mapList[o].type == 2){
  631. for(let x=0;x<self.mapList[o].lightList.length;x++){
  632. self.mapList[o].lightList[x].openType = false;
  633. }
  634. }
  635. if(self.mapList[o].type == 3){
  636. self.mapList[o].roomCheckType = false;
  637. }
  638. }
  639. }
  640. this.$forceUpdate();
  641. });
  642. },
  643. //获取楼层-智能物联设备列表;
  644. iotBigViewStatisticsHardwareDeviceType(){
  645. iotBigViewStatisticsHardwareDeviceType({floorId:this.floorId}).then(response => {
  646. response.data.devices.forEach((item)=>{
  647. item.exceptionIcon = item.exceptionIcon?localStorage.getItem('fileBrowseEnvironment')+item.exceptionIcon:null;
  648. })
  649. this.$set(this,'monitorList',response.data.devices);
  650. this.$set(this,'monitorNum',response.data.total);
  651. })
  652. },
  653. //查询实验室危险源
  654. laboratoryBigViewHazardCensus(){
  655. laboratoryBigViewHazardCensus({floorId:this.floorId}).then(response => {
  656. if(response.data[0]){
  657. let obj = {
  658. nameList: [],
  659. numList: [],
  660. maxNumList: [],
  661. }
  662. for(let i=0;i<response.data.length;i++){
  663. obj.nameList.push(response.data[i].name)
  664. obj.numList.push(response.data[i].total)
  665. obj.maxNumList.push(response.data[i].total+5)
  666. }
  667. this.$set(this,'dangerList',obj);
  668. this.eChartsFunction(this.dangerList);
  669. }else{
  670. let obj = {
  671. nameList: [],
  672. numList: [],
  673. maxNumList: [],
  674. }
  675. this.$set(this,'dangerList',obj);
  676. this.eChartsFunction(this.dangerList);
  677. }
  678. })
  679. },
  680. //eCharts表格
  681. eChartsFunction(obj){
  682. let self = this;
  683. let myChart = this.$echarts.init(document.getElementById('eCharts'));
  684. let option = {
  685. backgroundColor: 'rgba(0,0,0,0)',
  686. grid: {
  687. left: '6%',
  688. right: '4%',
  689. bottom: '5%',
  690. top: '10%',
  691. containLabel: true,
  692. },
  693. legend: [{
  694. show: false,
  695. }],
  696. xAxis: [
  697. {
  698. type: 'category',
  699. data: obj.nameList,
  700. axisLine: {
  701. lineStyle: {
  702. color: 'rgba(5, 80, 93, 1)',
  703. },
  704. },
  705. axisLabel: {
  706. fontSize: 12,
  707. // color: 'black',
  708. color: '#fff',
  709. fontFamily: 'DIN-Medium',
  710. padding: [3, 0, 0, 0],
  711. //设置一行显示几个字,自己设置
  712. formatter: function (params) {
  713. var newParamsName = "";
  714. var paramsNameNumber = params.length;
  715. var provideNumber = 6;
  716. var rowNumber = Math.ceil(paramsNameNumber / provideNumber);
  717. if (paramsNameNumber > provideNumber) {
  718. for (var p = 0; p < rowNumber; p++) {
  719. var tempStr = "";
  720. var start = p * provideNumber;
  721. var end = start + provideNumber;
  722. if (p == rowNumber - 1) {
  723. tempStr = params.substring(start, paramsNameNumber);
  724. } else {
  725. tempStr = params.substring(start, end) + "\n";
  726. }
  727. newParamsName += tempStr;
  728. }
  729. } else {
  730. newParamsName = params;
  731. }
  732. return newParamsName;
  733. },
  734. interval: 0,//使x轴上的文字显示完全,
  735. },
  736. axisTick: {
  737. show: false,
  738. },
  739. },
  740. {
  741. type: 'category',
  742. data: obj.nameList,
  743. show: false,
  744. },],
  745. yAxis: [{
  746. type: 'value',
  747. name: "",
  748. nameTextStyle: {
  749. fontSize: 14,
  750. fontFamily: 'Source Han Sans CN',
  751. fontWeight: '400',
  752. color: 'rgba(255, 255, 255, 1)',
  753. padding: [0, 75, -8, 0]
  754. },
  755. nameGap: 24,
  756. axisLine: {
  757. show: true,
  758. lineStyle: {
  759. color: 'rgba(5, 80, 93, 1)',
  760. }
  761. },
  762. axisTick: {
  763. show: false,
  764. },
  765. splitLine: {
  766. show: false,
  767. lineStyle: {
  768. color: 'rgba(5, 80, 93, 1)',
  769. type: "dashed",
  770. },
  771. },
  772. alignTicks: true,
  773. axisLabel: {
  774. fontSize: 14,
  775. color: 'rgba(255, 255, 255, 1)',
  776. fontFamily: 'DIN-Medium',
  777. padding: [0, 7, 0, 0]
  778. },
  779. splitArea: {
  780. show: false,
  781. },
  782. }],
  783. series: [
  784. {
  785. type: 'bar',
  786. label: {
  787. normal: {
  788. show: true,
  789. position: 'top',
  790. fontSize: 12,
  791. color: 'rgba(16, 213, 223, 1)',
  792. formatter: function (params) {
  793. return params.value
  794. },
  795. offset: [0, -10],
  796. },
  797. },
  798. tooltip: {
  799. show: false
  800. },
  801. barWidth: 14,
  802. itemStyle: {
  803. color: {
  804. type: 'linear',
  805. x: 0, x2: 0, y: 0, y2: 1,
  806. colorStops: [
  807. { offset: 0, color: '#00FCFC' },
  808. { offset: 1, color: '#016FCC' }
  809. ]
  810. },
  811. },
  812. name: '',
  813. data: obj.numList
  814. },
  815. {
  816. // 分隔
  817. type: 'pictorialBar',
  818. itemStyle: {
  819. normal: {
  820. color: 'rgba(3, 72, 84, 0.5)',
  821. },
  822. },
  823. symbolRepeat: 'fixed',//重复
  824. symbolMargin: 2,//上下间隔
  825. symbol: 'rect',//图形类型
  826. symbolClip: true,//是否裁剪
  827. symbolSize: [20, 2],//图形的大小,可以用数组分开表示宽和高
  828. symbolPosition: 'center',//图形的定位位置
  829. symbolOffset: [0, 2],//图形相对于原本位置的偏移
  830. data: obj.numList,
  831. z: 0,
  832. zlevel: 1,
  833. },
  834. {
  835. type: 'bar',
  836. barWidth: 40,
  837. xAxisIndex: 1,
  838. itemStyle: {
  839. color: 'rgba(0, 0, 0, 0)'
  840. },
  841. name: '',
  842. data: obj.maxNumList
  843. },
  844. ],
  845. }
  846. myChart.setOption(option);
  847. },
  848. //计算布局最大尺寸
  849. calculateMapMax(list) {
  850. //基础参数
  851. let height = 500;
  852. let width = 1020;
  853. let maxWidth = 0
  854. let maxHeight = 0
  855. let zoomData = 1;
  856. //参数处理
  857. for (let i = 0; i < list.length; i++) {
  858. if ((list[i].x + list[i].w) > maxWidth) {
  859. maxWidth = list[i].x + list[i].w
  860. }
  861. if ((list[i].y + list[i].h) > maxHeight) {
  862. maxHeight = list[i].y + list[i].h
  863. }
  864. }
  865. //处理等值数据
  866. if(maxHeight == height){
  867. maxHeight++
  868. }
  869. if(maxWidth == width){
  870. maxWidth++
  871. }
  872. //缩放判断
  873. let zoomNumOne = height / maxHeight;
  874. if(parseInt(this.accMul(zoomNumOne,maxHeight)) <= height && parseInt(this.accMul(zoomNumOne,maxWidth)) <= width){
  875. zoomData = zoomNumOne;
  876. this.$set(this,'zoomData',zoomNumOne);
  877. }
  878. let zoomNumTwo = width / maxWidth;
  879. if(parseInt(this.accMul(zoomNumTwo,maxHeight)) <= height && parseInt(this.accMul(zoomNumTwo,maxWidth)) <= width){
  880. zoomData = zoomNumTwo;
  881. this.$set(this,'zoomData',zoomNumTwo);
  882. }
  883. return { maxWidth: maxWidth, maxHeight: maxHeight,zoomData:zoomData }
  884. },
  885. accMul(arg1,arg2){
  886. var m=0,s1=arg1.toString(),s2=arg2.toString();
  887. try{m+=s1.split(".")[1].length}catch(e){}
  888. try{m+=s2.split(".")[1].length}catch(e){}
  889. return Number(s1.replace(".",""))*Number(s2.replace(".",""))/Math.pow(10,m)
  890. },/*********************************** MQTT相关 *********************************/
  891. //疏散-MQTT连接
  892. offEvacuateMQTT(type){
  893. let self = this;
  894. if(self.evacuateClient.unsubscribe){
  895. self.evacuateClient.unsubscribe(self.evacuateOpic, error => {
  896. if (error) {
  897. // console.log('mqtt关闭连接错误:', error)
  898. }
  899. })
  900. self.evacuateClient.end();
  901. this.$set(this,'evacuateClient',{});
  902. }
  903. //判断传入参数如果存在 发起一次新的连接
  904. if(type){
  905. this.evacuateMQTT();
  906. }
  907. },
  908. //疏散-MQTT订阅
  909. evacuateMQTT(){
  910. let self = this;
  911. this.evacuateClient = mqtt.connect(localStorage.getItem('mqttUrl'), {
  912. username: localStorage.getItem('mqttUser'),
  913. password:localStorage.getItem('mqttPassword')
  914. });
  915. this.evacuateClient.on("connect", e =>{
  916. this.evacuateClient.subscribe(self.evacuateOpic, (err) => {
  917. if (!err) {
  918. // console.log("疏散-订阅成功:" + self.evacuateOpic);
  919. }else{
  920. // console.log("疏散-连接错误:" + err);
  921. }
  922. });
  923. });
  924. this.evacuateClient.on("message", (topic, message) => {
  925. if (message){
  926. // console.log('疏散-message');
  927. //获取疏散数据
  928. this.laboratoryExitLineGetRedisEvacuation();
  929. }
  930. });
  931. },
  932. //疏散灯-MQTT连接
  933. offLightMQTT(type){
  934. let self = this;
  935. if(self.lightClient.unsubscribe){
  936. self.lightClient.unsubscribe(self.lightOpic+self.floorId, error => {
  937. if (error) {
  938. // console.log('mqtt关闭连接错误:', error)
  939. }
  940. })
  941. self.lightClient.end();
  942. this.$set(this,'lightClient',{});
  943. }
  944. //判断传入参数如果存在 发起一次新的连接
  945. if(type){
  946. this.lightMQTT();
  947. }
  948. },
  949. //疏散灯-MQTT订阅
  950. lightMQTT(){
  951. let self = this;
  952. this.lightClient = mqtt.connect(localStorage.getItem('mqttUrl'), {
  953. username: localStorage.getItem('mqttUser'),
  954. password:localStorage.getItem('mqttPassword')
  955. });
  956. this.lightClient.on("connect", e =>{
  957. this.lightClient.subscribe(self.lightOpic+self.floorId, (err) => {
  958. if (!err) {
  959. // console.log("疏散灯-订阅成功:" + self.lightOpic+self.floorId);
  960. }else{
  961. // console.log("疏散灯-连接错误:" + err);
  962. }
  963. });
  964. });
  965. this.lightClient.on("message", (topic, message) => {
  966. if (message){
  967. // console.log('疏散灯-message',message);
  968. let data = JSON.parse(message)
  969. // console.log('疏散灯-data',data);
  970. for(let i=0;i<self.mapList.length;i++){
  971. if(self.mapList[i].type == 2){
  972. for(let o=0;o<self.mapList[i].lightList.length;o++){
  973. if(data.hardwareNo == self.mapList[i].lightList[o].configName){
  974. self.$set(self.mapList[i].lightList[o],'openType',data.operatingState);
  975. }
  976. }
  977. }
  978. }
  979. }
  980. });
  981. },
  982. //预案-MQTT连接
  983. offPlanMQTT(type){
  984. let self = this;
  985. if(self.planClient.unsubscribe){
  986. self.planClient.unsubscribe(self.planOpic, error => {
  987. if (error) {
  988. // console.log('mqtt关闭连接错误:', error)
  989. }
  990. })
  991. self.planClient.end();
  992. this.$set(this,'planClient',{});
  993. }
  994. //判断传入参数如果存在 发起一次新的连接
  995. if(type){
  996. this.planMQTT();
  997. }
  998. },
  999. //预案-MQTT订阅
  1000. planMQTT(){
  1001. let self = this;
  1002. this.planClient = mqtt.connect(localStorage.getItem('mqttUrl'), {
  1003. username: localStorage.getItem('mqttUser'),
  1004. password:localStorage.getItem('mqttPassword')
  1005. });
  1006. this.planClient.on("connect", e =>{
  1007. this.planClient.subscribe(self.planOpic, (err) => {
  1008. if (!err) {
  1009. // console.log("预案-订阅成功:" + self.planOpic);
  1010. }else{
  1011. // console.log("预案-连接错误:" + err);
  1012. }
  1013. });
  1014. });
  1015. this.planClient.on("message", (topic, message) => {
  1016. if (message){
  1017. // console.log('预案-message',message);
  1018. //获取预案数据
  1019. this.laboratoryBigViewSelectTriggerInfo();
  1020. }
  1021. });
  1022. },
  1023. //退出全屏
  1024. exitfull() {
  1025. if (document.exitFullscreen) {
  1026. document.exitFullscreen();
  1027. } else if (document.mozCancelFullScreen) {
  1028. document.mozCancelFullScreen();
  1029. } else if (document.webkitExitFullscreen) {
  1030. document.webkitExitFullscreen();
  1031. } else if (document.msExitFullscreen) {
  1032. document.msExitFullscreen();
  1033. }
  1034. },
  1035. //进入全屏
  1036. fullScreen() {
  1037. let element = document.documentElement;
  1038. if (element.requestFullscreen) {
  1039. element.requestFullscreen();
  1040. } else if (element.msRequestFullscreen) {
  1041. element.msRequestFullscreen();
  1042. } else if (element.mozRequestFullScreen) {
  1043. element.mozRequestFullScreen();
  1044. } else if (element.webkitRequestFullscreen) {
  1045. element.webkitRequestFullscreen();
  1046. }
  1047. },
  1048. },
  1049. beforeDestroy() {
  1050. //清除MQTT
  1051. let self = this;
  1052. self.offEvacuateMQTT();
  1053. self.offLightMQTT();
  1054. self.offPlanMQTT();
  1055. },
  1056. }
  1057. </script>
  1058. <style scoped lang="scss">
  1059. .performEvacuationHome{
  1060. flex:1;
  1061. position: relative;
  1062. display: flex;
  1063. flex-direction: column;
  1064. width:1920px;
  1065. height:1080px;
  1066. background: url("../../../assets/ZDimages/emergencyManagement/img_bg.png") repeat;
  1067. background-size: 100% 100%;
  1068. overflow: hidden;
  1069. .top-title-box{
  1070. height:92px;
  1071. position: relative;
  1072. .top-title-img-box{
  1073. position: absolute;
  1074. top:0;
  1075. height:92px;
  1076. left:41px;
  1077. width: 1837px;
  1078. background: url("../../../assets/ZDimages/emergencyManagement/sy_db_bg.png");
  1079. background-size: 100% 100%;
  1080. text-align: center;
  1081. font-size:40px;
  1082. line-height:82px;
  1083. color:#24d1f9;
  1084. font-weight:900;
  1085. letter-spacing:10px
  1086. }
  1087. .top-title-button-box{
  1088. display: flex;
  1089. position: absolute;
  1090. top:0;
  1091. right:0;
  1092. width:110px;
  1093. cursor: pointer;
  1094. i{
  1095. margin:0 10px;
  1096. line-height:40px;
  1097. color:#24D1F9;
  1098. font-size:18px;
  1099. }
  1100. p{
  1101. line-height:40px;
  1102. color:#24D1F9;
  1103. font-size:14px;
  1104. }
  1105. }
  1106. }
  1107. .content-box{
  1108. flex: 1;
  1109. display: flex;
  1110. overflow: hidden;
  1111. .content-left-max-big-box{
  1112. flex:1;
  1113. display: flex;
  1114. flex-direction: column;
  1115. overflow: hidden;
  1116. .content-floor-num-box{
  1117. height:87px;
  1118. display: flex;
  1119. .content-floor-box{
  1120. ::v-deep .building-select-box{
  1121. margin:12px 0 0 33px;
  1122. .el-input__inner{
  1123. background:rgba(0,0,0,0);
  1124. border:1px solid #24D1F9;
  1125. box-shadow:0 0 5px 1px #24D1F9 inset;
  1126. color:#fff;
  1127. }
  1128. .el-input__inner:hover{
  1129. border:1px solid #24D1F9;
  1130. box-shadow:0 0 5px 1px #24D1F9 inset;
  1131. }
  1132. }
  1133. ::v-deep .el-select-dropdown{
  1134. width:240px;
  1135. background:#01294d;
  1136. border:1px solid #24D1F9;
  1137. .el-select-dropdown__item{
  1138. background: rgba(0,0,0,0);
  1139. color:#fff;
  1140. }
  1141. .el-select-dropdown__item:hover{
  1142. background: #24D1F9;
  1143. }
  1144. }
  1145. }
  1146. .content-num-box{
  1147. margin-left:92px;
  1148. display: flex;
  1149. img{
  1150. margin:20px 13px 0 0;
  1151. display: block;
  1152. width:26px;
  1153. height:23px;
  1154. }
  1155. p{
  1156. margin-top: 12px;
  1157. line-height:40px;
  1158. color:#24D1F9;
  1159. }
  1160. p:nth-child(2){
  1161. margin-right:22px;
  1162. font-size:16px;
  1163. }
  1164. p:nth-child(3){
  1165. font-size:30px;
  1166. font-weight:700;
  1167. }
  1168. }
  1169. }
  1170. .content-map-select-box{
  1171. flex:1;
  1172. display: flex;
  1173. .content-map-box{
  1174. margin-left:92px;
  1175. flex:1;
  1176. height:500px;
  1177. position: relative;
  1178. .newEvacuation-map-max-big-box{
  1179. position: absolute;
  1180. top: 50%;
  1181. left: 50%;
  1182. -webkit-user-select: none;
  1183. img{
  1184. -webkit-user-drag: none;
  1185. }
  1186. .newEvacuation-map-big-box{
  1187. position: relative;
  1188. border:1px dashed #24D1F9;
  1189. cursor: pointer;
  1190. .newEvacuation-map-for-box{
  1191. position: absolute;
  1192. display: flex;
  1193. flex-direction: column;
  1194. overflow: hidden;
  1195. .newEvacuation-map-for-min-box{
  1196. height:100%;
  1197. position: relative;
  1198. .map-for-name-p{
  1199. padding:0 10px;
  1200. height:20px;
  1201. line-height:20px;
  1202. font-size:14px;
  1203. text-align: center;
  1204. color:#24D1F9;
  1205. overflow: hidden;
  1206. text-overflow:ellipsis;
  1207. white-space:nowrap;
  1208. }
  1209. .map-for-num-p{
  1210. padding:0 10px;
  1211. height:20px;
  1212. line-height:20px;
  1213. font-size:14px;
  1214. text-align: center;
  1215. color:#24D1F9;
  1216. overflow: hidden;
  1217. text-overflow:ellipsis;
  1218. white-space:nowrap;
  1219. }
  1220. .user-num-box{
  1221. position: absolute;
  1222. left:0;
  1223. display: flex;
  1224. img{
  1225. width:20px;
  1226. height:15px;
  1227. margin:10px;
  1228. }
  1229. p{
  1230. line-height:35px;
  1231. font-size:14px;
  1232. color:#24D1F9;
  1233. }
  1234. }
  1235. .user-num-one{
  1236. top:0;
  1237. }
  1238. .user-num-two{
  1239. bottom:0;
  1240. }
  1241. .position-box{
  1242. position: absolute;
  1243. font-size:14px;
  1244. overflow: hidden;
  1245. }
  1246. .center-move-door-p-t {
  1247. background: url("../../../assets/ZDimages/emergencyManagement/icon_pmbjt_m.png") !important;
  1248. background-size: 100% !important;
  1249. transform: rotate(180deg);
  1250. }
  1251. .center-move-door-p-b {
  1252. background: url("../../../assets/ZDimages/emergencyManagement/icon_pmbjt_m.png") !important;
  1253. background-size: 100% !important;
  1254. }
  1255. .center-move-door-p-l {
  1256. background: url("../../../assets/ZDimages/emergencyManagement/icon_pmbjt_m.png") !important;
  1257. background-size: 100% !important;
  1258. transform: rotate(90deg);
  1259. }
  1260. .center-move-door-p-r {
  1261. background: url("../../../assets/ZDimages/emergencyManagement/icon_pmbjt_m.png") !important;
  1262. background-size: 100% !important;
  1263. transform: rotateZ(270deg);
  1264. }
  1265. .lightTopOn {
  1266. background: url("../../../assets/ZDimages/emergencyManagement/icon_sjt.png");
  1267. background-size: 100%;
  1268. }
  1269. .lightTopOff {
  1270. background: url("../../../assets/ZDimages/emergencyManagement/icon_shang_hs.png");
  1271. background-size: 100%;
  1272. }
  1273. .lightBottomOn {
  1274. background: url("../../../assets/ZDimages/emergencyManagement/icon_xjt.png");
  1275. background-size: 100%;
  1276. }
  1277. .lightBottomOff {
  1278. background: url("../../../assets/ZDimages/emergencyManagement/icon_xia_hs.png");
  1279. background-size: 100%;
  1280. }
  1281. .lightLeftOn {
  1282. background: url("../../../assets/ZDimages/emergencyManagement/icon_zuo.png");
  1283. background-size: 100%;
  1284. }
  1285. .lightLeftOff {
  1286. background: url("../../../assets/ZDimages/emergencyManagement/icon_zou_hs.png");
  1287. background-size: 100%;
  1288. }
  1289. .lightRightOn {
  1290. background: url("../../../assets/ZDimages/emergencyManagement/icon_yuo.png");
  1291. background-size: 100%;
  1292. }
  1293. .lightRightOff {
  1294. background: url("../../../assets/ZDimages/emergencyManagement/icon_you_hs.png");
  1295. background-size: 100%;
  1296. }
  1297. }
  1298. }
  1299. .for-map-box-one{
  1300. border:1px solid #24D1F9;
  1301. }
  1302. .for-map-box{
  1303. background: rgba(1,16,32,0.5);
  1304. }
  1305. .for-map-box-two{
  1306. background: url("../../../assets/ZDimages/emergencyManagement/icon_jjck.png") center center no-repeat rgba(5,45,43,0.5);
  1307. background-size: 80px 80px;
  1308. }
  1309. .for-map-box-two-check{
  1310. background: url("../../../assets/ZDimages/emergencyManagement/icon_jjck.png") center center no-repeat rgba(50,205,50,1);
  1311. background-size: 80px 80px;
  1312. }
  1313. .room-type-one{
  1314. //选中
  1315. background: rgba(30,118,142,0.4);
  1316. }
  1317. .room-type-two{
  1318. //报警
  1319. background: rgba(232,0,0,0.4);
  1320. box-shadow:0 0 10px 1px #E80000 inset;
  1321. }
  1322. .room-type-three{
  1323. //选中报警
  1324. background: rgba(30,118,142,0.4);
  1325. box-shadow:0 0 10px 1px #E80000 inset;
  1326. }
  1327. .room-type-noe{
  1328. /*border:1px solid #666;*/
  1329. /*background: rgba(102,102,102,0.6);*/
  1330. /*color:#666!important;*/
  1331. p{
  1332. /*color:#666!important;*/
  1333. }
  1334. }
  1335. .plan-map-for-box{
  1336. font-weight:500;
  1337. position:absolute;
  1338. z-index:100;
  1339. background: url("../../../assets/ZDimages/emergencyManagement/img_bg_yatk.png");
  1340. .plan-top-button-box{
  1341. height:22px;
  1342. }
  1343. .plan-time-box{
  1344. display: flex;
  1345. img{
  1346. width:24px;
  1347. height:24px;
  1348. margin-left:19px;
  1349. margin-right:8px;
  1350. }
  1351. p{
  1352. line-height:24px;
  1353. color:#fff;
  1354. font-size:14px;
  1355. }
  1356. }
  1357. .plan-text-box{
  1358. display: flex;
  1359. color:#fff;
  1360. margin-top:15px;
  1361. overflow: hidden;
  1362. .plan-title-p{
  1363. width:60px;
  1364. height:20px;
  1365. line-height:20px;
  1366. font-size:14px;
  1367. text-align: center;
  1368. margin:0 10px 0 18px;
  1369. border-radius:15px;
  1370. }
  1371. .plan-text-p{
  1372. width:170px;
  1373. height:20px;
  1374. line-height:20px;
  1375. font-size:14px;
  1376. overflow:hidden;
  1377. text-overflow:ellipsis;
  1378. white-space:nowrap;
  1379. }
  1380. .color-type-1{
  1381. background: #0183FA;
  1382. }
  1383. .color-type-2{
  1384. background: #FF9900;
  1385. }
  1386. .color-type-3{
  1387. background: #FF4800;
  1388. }
  1389. .color-type-4{
  1390. background: #FF0000;
  1391. }
  1392. }
  1393. .plan-text-box-two{
  1394. display: flex;
  1395. color:#fff;
  1396. margin-top:22px;
  1397. overflow: hidden;
  1398. .plan-title-p{
  1399. width:60px;
  1400. height:20px;
  1401. line-height:20px;
  1402. font-size:14px;
  1403. text-align: center;
  1404. margin:0 10px 0 18px;
  1405. border-radius:15px;
  1406. }
  1407. .plan-text-p{
  1408. width:170px;
  1409. height:20px;
  1410. line-height:20px;
  1411. font-size:14px;
  1412. overflow:hidden;
  1413. text-overflow:ellipsis;
  1414. white-space:nowrap;
  1415. }
  1416. .color-type-1{
  1417. background: #0183FA;
  1418. }
  1419. .color-type-2{
  1420. background: #FF9900;
  1421. }
  1422. .color-type-3{
  1423. background: #FF4800;
  1424. }
  1425. .color-type-4{
  1426. background: #FF0000;
  1427. }
  1428. }
  1429. .plan-button-p{
  1430. margin:15px auto 0;
  1431. width:100px;
  1432. line-height:30px;
  1433. background: #163277;
  1434. color:#fff;
  1435. text-align: center;
  1436. border-radius:6px;
  1437. cursor: pointer;
  1438. }
  1439. }
  1440. .check-plan-map-for-box{
  1441. z-index:1000!important;
  1442. }
  1443. }
  1444. }
  1445. .null-mapList{
  1446. text-align: center;
  1447. font-size:16px;
  1448. color:#fff;
  1449. line-height:300px;
  1450. }
  1451. }
  1452. .content-select-box{
  1453. width:128px;
  1454. height: 534px;
  1455. margin-right:30px;
  1456. display: flex;
  1457. overflow: hidden;
  1458. .for-select-box::-webkit-scrollbar{
  1459. width: 6px!important; /*高宽分别对应横竖滚动条的尺寸*/
  1460. height: 6px!important;
  1461. }
  1462. .for-select-box::-webkit-scrollbar-thumb{
  1463. border-radius: 5px!important;
  1464. -webkit-box-shadow: inset 0 0 5px #116e8e!important;
  1465. background: #116e8e!important;
  1466. }
  1467. .for-select-box::-webkit-scrollbar-track{
  1468. -webkit-box-shadow: inset 0 0 5px rgba(255,255,255,0)!important;
  1469. border-radius: 0!important;
  1470. background: rgba(255,255,255,0)!important;
  1471. }
  1472. .for-select-box{
  1473. flex:1;
  1474. margin: 0 0 51px 29px;
  1475. padding-right:30px;
  1476. display: flex;
  1477. flex-direction: column-reverse;
  1478. align-items: flex-end;
  1479. overflow-y: scroll;
  1480. .for-select-p:nth-child(1){
  1481. border-bottom:1px solid #19667e;
  1482. border-bottom-left-radius:4px;
  1483. border-bottom-right-radius:4px;
  1484. }
  1485. .for-select-p:last-child{
  1486. border-top-left-radius:4px;
  1487. border-top-right-radius:4px;
  1488. }
  1489. .for-select-p{
  1490. cursor: pointer;
  1491. width:40px;
  1492. line-height:40px;
  1493. text-align: center;
  1494. color:#19667e;
  1495. border-top:1px solid #19667e;
  1496. border-left:1px solid #19667e;
  1497. border-right:1px solid #19667e;
  1498. }
  1499. .for-select-p-check{
  1500. /*border:1px solid #20d0fa !important;*/
  1501. color:#fff;
  1502. box-shadow: inset 0 0 4px 1px rgba(32,208,250,1);
  1503. }
  1504. }
  1505. }
  1506. }
  1507. .content-monitor-danger-box{
  1508. height:367px;
  1509. display: flex;
  1510. .content-monitor-box{
  1511. width:954px;
  1512. position: relative;
  1513. overflow: hidden;
  1514. .content-position-monitor-num-p{
  1515. position: absolute;
  1516. top:27px;
  1517. right:90px;
  1518. color:#CCD6D6;
  1519. font-size:16px;
  1520. }
  1521. .big-title-box{
  1522. margin-left:33px;
  1523. }
  1524. .content-monitor-for-box{
  1525. margin-left:33px;
  1526. margin-top:20px;
  1527. width:870px;
  1528. height:260px;
  1529. position: relative;
  1530. .monitor-for-box{
  1531. display: inline-block;
  1532. margin:14px 30px 0 0;
  1533. .monitor-num-box{
  1534. background: url("../../../assets/ZDimages/emergencyManagement/monitor/icon_znjc_bg.png");
  1535. background-size: 100%;
  1536. width:77px;
  1537. height:86px;
  1538. .monitor-num-p{
  1539. line-height:24px;
  1540. text-align: center;
  1541. font-size:24px;
  1542. color:#23FFFC;
  1543. }
  1544. .monitor-img-box{
  1545. height:62px;
  1546. width:77px;
  1547. //栅格布局居中
  1548. display: grid;
  1549. align-items: center;
  1550. justify-items: center;
  1551. overflow: hidden;
  1552. .svg-img{
  1553. display: block;
  1554. width:40px;
  1555. height:40px;
  1556. color:#24D1F9;
  1557. /*svg投影改色*/
  1558. //filter: drop-shadow(#24D1F9 100px 0);
  1559. //transform: translateX(-100px);
  1560. }
  1561. }
  1562. }
  1563. .monitor-name-p{
  1564. text-align: center;
  1565. font-size:16px;
  1566. line-height:30px;
  1567. color:#fff;
  1568. }
  1569. }
  1570. .null-box{
  1571. position: absolute;
  1572. left:50%;
  1573. top:50%;
  1574. margin-left:-88px;
  1575. margin-top:-91px;
  1576. width:176px;
  1577. height:183px;
  1578. .null-img{
  1579. width:176px;
  1580. height:143px;
  1581. }
  1582. .null-p{
  1583. margin-top:20px;
  1584. line-height:20px;
  1585. text-align: center;
  1586. font-size:16px;
  1587. color:#CCD6D6;
  1588. }
  1589. }
  1590. }
  1591. .content-monitor-null-box{
  1592. background-color: #021e30;
  1593. }
  1594. //滚动条
  1595. .scrollbar-box::-webkit-scrollbar{
  1596. width: 6px!important; /*高宽分别对应横竖滚动条的尺寸*/
  1597. height: 6px!important;
  1598. }
  1599. .scrollbar-box::-webkit-scrollbar-thumb{
  1600. border-radius: 5px!important;
  1601. -webkit-box-shadow: inset 0 0 5px #116e8e!important;
  1602. background: #116e8e!important;
  1603. }
  1604. .scrollbar-box::-webkit-scrollbar-track{
  1605. -webkit-box-shadow: inset 0 0 5px rgba(255,255,255,0)!important;
  1606. border-radius: 0!important;
  1607. background: rgba(255,255,255,0)!important;
  1608. }
  1609. }
  1610. .content-danger-box{
  1611. width:539px;
  1612. .content-danger-for-box{
  1613. margin-top:20px;
  1614. width:480px;
  1615. height:260px;
  1616. position: relative;
  1617. .danger-for-box{
  1618. width:480px;
  1619. height:260px;
  1620. }
  1621. .null-box{
  1622. position: absolute;
  1623. left:50%;
  1624. top:50%;
  1625. margin-left:-91px;
  1626. margin-top:-98px;
  1627. width:183px;
  1628. height:196px;
  1629. .null-img{
  1630. width:183px;
  1631. height:156px;
  1632. }
  1633. .null-p{
  1634. margin-top:20px;
  1635. line-height:20px;
  1636. text-align: center;
  1637. font-size:16px;
  1638. color:#CCD6D6;
  1639. }
  1640. }
  1641. }
  1642. .content-danger-null-box{
  1643. background-color: #021e30;
  1644. }
  1645. }
  1646. }
  1647. }
  1648. .content-right-max-big-box{
  1649. width:427px;
  1650. .big-title-box{
  1651. margin-top:12px;
  1652. }
  1653. .content-video-for-box{
  1654. margin:20px 30px 30px 0;
  1655. height:870px;
  1656. position: relative;
  1657. display: flex;
  1658. flex-direction: column;
  1659. overflow: hidden;
  1660. .video-for-box{
  1661. /*height:818px;*/
  1662. height:740px;
  1663. }
  1664. ::v-deep .pagination-box{
  1665. display: flex;
  1666. .flex-null-p{
  1667. flex:1;
  1668. }
  1669. .el-pagination__total,.active{
  1670. color:#24D1F9;
  1671. }
  1672. .active{
  1673. border:1px solid #24D1F9!important;
  1674. }
  1675. .btn-next,.btn-prev,.number{
  1676. border:1px solid #19667e;
  1677. background-color: rgba(0,0,0,0);
  1678. }
  1679. }
  1680. .null-box{
  1681. position: absolute;
  1682. left:50%;
  1683. top:50%;
  1684. margin-left:-82px;
  1685. margin-top:-75px;
  1686. width:165px;
  1687. height:150px;
  1688. .null-img{
  1689. width:165px;
  1690. height:110px;
  1691. }
  1692. .null-p{
  1693. margin-top:20px;
  1694. line-height:20px;
  1695. text-align: center;
  1696. font-size:16px;
  1697. color:#CCD6D6;
  1698. }
  1699. }
  1700. }
  1701. .content-video-null-box{
  1702. background-color: #021e30;
  1703. }
  1704. }
  1705. .big-title-box{
  1706. width:181px;
  1707. height:59px;
  1708. background: url("../../../assets/ZDimages/emergencyManagement/img_zjdp_bg.png");
  1709. background-size: 100%;
  1710. display: flex;
  1711. img{
  1712. width:18px;
  1713. height:18px;
  1714. margin:27px 16px 0 20px;
  1715. }
  1716. p{
  1717. margin-top:16px;
  1718. line-height:40px;
  1719. color:#fff;
  1720. font-size:16px;
  1721. }
  1722. }
  1723. }
  1724. }
  1725. </style>