newIndex.vue 79 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972
  1. <!--新版布局管理-->
  2. <template>
  3. <div class="app-container building">
  4. <div class="buildingManagement" v-if="pageType == 1">
  5. <div class="max-left-box">
  6. <div class="tree-box scrollbar-box" v-if="treeList[0]">
  7. <div class="terr-max-box" v-for="(item,index) in treeList" :key="index">
  8. <div class="max-name-box">
  9. <p class="max-name" :class="checkTreeId==item.id?'check-color':''" @click="clickCheckTree(item,1)">
  10. {{item.name}}</p>
  11. <el-dropdown @command="(command)=>handleCommand(command,item)" trigger="click">
  12. <img src="@/assets/ZDimages/evacuation3_2/icon_bjgl_gd.png"
  13. style="cursor:pointer;width:16px;height:4px;margin-top:7px;">
  14. <el-dropdown-menu slot="dropdown">
  15. <el-dropdown-item command="1">编辑</el-dropdown-item>
  16. <el-dropdown-item command="2">删除</el-dropdown-item>
  17. </el-dropdown-menu>
  18. </el-dropdown>
  19. </div>
  20. <div class="terr-big-box" v-for="(itemOne,indexOne) in item.buildFloorVoList" :key="indexOne">
  21. <div class="big-name-box">
  22. <p v-if="!itemOne.buildFloorVoList[0]" style="width:16px;"></p>
  23. <img v-if="!itemOne.onType&&itemOne.buildFloorVoList[0]"
  24. src="@/assets/ZDimages/evacuation3_2/icon_bjgl_jt.png" @click="terrClick(itemOne)">
  25. <img v-if="itemOne.onType&&itemOne.buildFloorVoList[0]"
  26. src="@/assets/ZDimages/evacuation3_2/icon_bjgl_xjt.png" @click="terrClick(itemOne)">
  27. <p class="name-p" :class="checkTreeId==itemOne.id?'check-color':''" @click="clickCheckTree(itemOne,2)">
  28. {{itemOne.name}}</p>
  29. </div>
  30. <div v-if="itemOne.onType" class="terr-min-box" v-for="(itemTwo,indexTwo) in itemOne.buildFloorVoList"
  31. :key="indexTwo">
  32. <p class="min-name" :class="checkTreeId==itemTwo.id?'check-color':''"
  33. @click="clickCheckTree(itemTwo,3,itemOne)">{{itemTwo.name}}</p>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. <p class="tree-null-p" v-if="!treeList[0]">暂无数据</p>
  39. <p class="max-left-big-button" @click="handleCommand(3)">+ 新增校区</p>
  40. </div>
  41. <div class="max-right-box">
  42. <div class="school-box" v-if="checkTreeType == 1">
  43. <div class="max-right-button-box">
  44. <p class="null-p"></p>
  45. <p class="max-right-big-button" @click="handleCommand(4)" v-hasPermi="['laboratory:buildfloor:add']">+ 新增楼栋</p>
  46. </div>
  47. <div class="right-big-list-box scrollbar-box">
  48. <div class="for-max-box" v-for="(item,index) in buildingList" :key="index"
  49. @dragover.prevent="dragoverPrevent(item)">
  50. <div class="for-big-box">
  51. <div class="for-big-box-left">
  52. <img src="@/assets/ZDimages/evacuation3_2/icon_bjgl_td.png" class="for-img-one"
  53. draggable="true"
  54. @dragstart="dragstartPlay($event)"
  55. @dragend="dragEnterOver($event, item)">
  56. <p class="for-text-one">{{item.name}}</p>
  57. <img src="@/assets/ZDimages/evacuation3_2/icon_bjgl_lcs.png" class="for-img-two">
  58. <div class="for-text-box-one">
  59. <p>{{item.floorNum}}</p>
  60. <p>楼层数</p>
  61. </div>
  62. <img src="@/assets/ZDimages/evacuation3_2/icon_bjgl_fj.png" class="for-img-three">
  63. <div class="for-text-box-two">
  64. <p>{{item.roomNum}}</p>
  65. <p>房间数</p>
  66. </div>
  67. </div>
  68. <div class="for-button-min-box">
  69. <div @click="handleCommand(5,item)" v-hasPermi="['laboratory:buildfloor:edit']">
  70. <img src="@/assets/ZDimages/evacuation3_2/icon_znwl_bj.png">
  71. <p>编辑</p>
  72. </div>
  73. <div @click="handleCommand(6,item)" v-hasPermi="['laboratory:buildfloor:remove']">
  74. <img src="@/assets/ZDimages/evacuation3_2/icon_znwl_sc.png">
  75. <p>删除</p>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. <img class="null-img" v-if="!buildingList[0]" src="@/assets/ZDimages/null-data-1.png">
  81. </div>
  82. </div>
  83. <div class="building-box" v-if="checkTreeType == 2">
  84. <div class="max-right-button-box">
  85. <p class="null-p"></p>
  86. <p class="max-right-big-button" style="margin-right:20px;" @click="handleCommand(7)">+ 新增楼层</p>
  87. <p class="max-right-big-button" @click="floorZK(1)">{{floorZkType==1?'一键收起':'一键展开'}}</p>
  88. </div>
  89. <div class="right-big-list-box scrollbar-box">
  90. <div class="for-max-box" v-for="(item,index) in buildingList" :key="index"
  91. @dragover.prevent="dragoverPrevent(item)">
  92. <div class="for-big-box">
  93. <div class="for-big-box-left">
  94. <img src="@/assets/ZDimages/evacuation3_2/icon_bjgl_td.png" class="for-img-one"
  95. draggable="true"
  96. @dragstart="dragstartPlay($event)"
  97. @dragend="dragEnterOver($event, item)">
  98. <p class="for-text-one">{{item.name}}</p>
  99. </div>
  100. <div class="for-button-min-box">
  101. <div @click="handleCommand(8,item)">
  102. <img src="@/assets/ZDimages/evacuation3_2/icon_znwl_bj.png">
  103. <p>编辑</p>
  104. </div>
  105. <div @click="handleCommand(9,item)">
  106. <img src="@/assets/ZDimages/evacuation3_2/icon_znwl_sc.png">
  107. <p>删除</p>
  108. </div>
  109. <div @click="floorZK(2,index)">
  110. <img src="@/assets/ZDimages/evacuation3_2/icon_bjgl_zk.png">
  111. <p>{{item.onType?'收起':'展开'}}</p>
  112. </div>
  113. </div>
  114. </div>
  115. <div v-if="item.onType">
  116. <div class="layout-data-max-big-box"
  117. v-if="item.layoutData">
  118. <div class="layout-data-max-big-min-box"
  119. :style="'width:'+item.width+'px;height:'+item.height+'px;transform: scale('+item.zoomData+');margin-top:-'+item.height/2+'px;margin-left:-'+item.width/2+'px;'">
  120. <div class="layout-data-max-min-box"
  121. :style="'width:'+item.width+'px;height:'+item.height+'px;'">
  122. <div class="map-max-for-box"
  123. v-for="(bigItem,index) in item.mapList" :key="index"
  124. :class="bigItem.type == 2?'for-map-box-one':''"
  125. :style="'top:'+bigItem.y+'px;left:'+bigItem.x+'px;width:'+bigItem.w+'px;height:'+bigItem.h+'px;'">
  126. <div class="map-max-for-left-box"></div>
  127. <div class="map-max-for-center-box">
  128. <div class="map-max-for-center-min-left"></div>
  129. <div class="map-max-for-center-min-center"
  130. :class="bigItem.type == 2?'for-map-box-one':(bigItem.type == 1?'for-map-box':(bigItem.type == 3?'for-map-box-two':''))">
  131. <div class="min-text-box"
  132. :style="'line-height:'+(bigItem.h-4)+'px;height:'+(bigItem.h-4)+'px;'"
  133. v-if="bigItem.type==1">{{bigItem.roomNum}}</div>
  134. <div v-if="bigItem.type == 1"
  135. :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':'')))"
  136. v-for="(minItem,minIndex) in bigItem.doorList" :key="minIndex"
  137. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  138. <div v-if="bigItem.type == 3"
  139. :class="minItem.toward=='top'?'center-move-door-p-t-ss':(minItem.toward=='bottom'?'center-move-door-p-b-ss':(minItem.toward=='left'?'center-move-door-p-l-ss':(minItem.toward=='right'?'center-move-door-p-r-ss':'')))"
  140. v-for="(minItem,minIndex) in bigItem.doorList" :key="minIndex"
  141. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  142. <div @click="lighButton(minItem)"
  143. :class="minItem.state=='1'?'lightTop':(minItem.state=='2'?'lightBottom':(minItem.state=='3'?'lightLeft':(minItem.state=='4'?'lightRight':'')))"
  144. v-for="(minItem,minIndex) in bigItem.lightList" :key="minIndex"
  145. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  146. </div>
  147. <div class="map-max-for-center-min-right"></div>
  148. </div>
  149. <div class="map-max-for-right-box"></div>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. <div class="layout-data-max-big-null-box" v-else>
  155. <img src="@/assets/ZDimages/evacuation3_2/icon_wsctp.png">
  156. <div>
  157. <p></p>
  158. <p>暂未设置房间布局</p>
  159. <p @click="clickPage(2,item)">设置布局</p>
  160. <p></p>
  161. </div>
  162. </div>
  163. </div>
  164. </div>
  165. <img class="null-img" v-if="!buildingList[0]" src="@/assets/ZDimages/null-data-1.png">
  166. </div>
  167. </div>
  168. <div class="floor-box" v-if="checkTreeType == 3">
  169. <div class="map-max-big-box">
  170. <div class="layout-data-max-big-box" v-if="buildingList.layoutData">
  171. <div class="layout-data-max-big-min-box"
  172. :style="'width:'+buildingList.width+'px;height:'+buildingList.height+'px;transform: scale('+buildingList.zoomData+');margin-top:-'+buildingList.height/2+'px;margin-left:-'+buildingList.width/2+'px;'">
  173. <div class="layout-data-max-min-box"
  174. :style="'width:'+buildingList.width+'px;height:'+buildingList.height+'px;'">
  175. <div class="map-max-for-box"
  176. v-for="(item,index) in buildingList.mapList" :key="index"
  177. :class="item.type == 2?'for-map-box-one':''"
  178. :style="'top:'+item.y+'px;left:'+item.x+'px;width:'+item.w+'px;height:'+item.h+'px;'">
  179. <div class="map-max-for-left-box"></div>
  180. <div class="map-max-for-center-box">
  181. <div class="map-max-for-center-min-left"></div>
  182. <div class="map-max-for-center-min-center"
  183. :class="item.type == 2?'for-map-box-one':(item.type == 1?'for-map-box':(item.type == 3?'for-map-box-two':''))">
  184. <div class="min-text-box"
  185. :style="'line-height:'+(item.h-4)+'px;height:'+(item.h-4)+'px;'"
  186. v-if="item.type==1">{{item.roomNum}}</div>
  187. <div v-if="item.type == 1"
  188. :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':'')))"
  189. v-for="(minItem,minIndex) in item.doorList" :key="minIndex"
  190. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  191. <div v-if="item.type == 3"
  192. :class="minItem.toward=='top'?'center-move-door-p-t-ss':(minItem.toward=='bottom'?'center-move-door-p-b-ss':(minItem.toward=='left'?'center-move-door-p-l-ss':(minItem.toward=='right'?'center-move-door-p-r-ss':'')))"
  193. v-for="(minItem,minIndex) in item.doorList" :key="minIndex"
  194. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  195. <div @click="lighButton(minItem)"
  196. :class="minItem.state=='1'?'lightTop':(minItem.state=='2'?'lightBottom':(minItem.state=='3'?'lightLeft':(minItem.state=='4'?'lightRight':'')))"
  197. v-for="(minItem,minIndex) in item.lightList" :key="minIndex"
  198. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  199. </div>
  200. <div class="map-max-for-center-min-right"></div>
  201. </div>
  202. <div class="map-max-for-right-box"></div>
  203. </div>
  204. </div>
  205. </div>
  206. </div>
  207. <div class="layout-data-max-big-null-box" v-else>
  208. <img src="@/assets/ZDimages/evacuation3_2/icon_wsctp.png">
  209. <div>
  210. <p></p>
  211. <p>暂未设置房间布局</p>
  212. <p @click="clickPage(2,buildingList)">设置布局</p>
  213. <p></p>
  214. </div>
  215. </div>
  216. <p class="position-button-p" @click="clickPage(2,buildingList)" v-if="buildingList.layoutData">设置布局</p>
  217. </div>
  218. <div class="table-box">
  219. <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
  220. <el-form-item label="关键字" prop="searchValue" style="margin-right:20px;margin-bottom:20px;">
  221. <el-input
  222. v-model="queryParams.searchValue"
  223. placeholder="房间号/房间名称"
  224. clearable
  225. size="small"
  226. />
  227. </el-form-item>
  228. <el-form-item label="房间类型" prop="roomType" style="margin-right:20px;margin-bottom:20px;">
  229. <el-select v-model="queryParams.roomType" placeholder="请选择房间类型"
  230. style="margin-right:20px;margin-bottom:20px;">
  231. <el-option
  232. v-for="dict in roomTypeOptions"
  233. :key="dict.dictValue"
  234. :label="dict.dictLabel"
  235. :value="dict.dictValue">
  236. </el-option>
  237. </el-select>
  238. </el-form-item>
  239. <el-form-item>
  240. <p class="inquire-button-one" @click="handleQuery" style="margin-right:20px;margin-bottom:20px;">查询</p>
  241. <p class="reset-button-one" @click="resetQuery">重置</p>
  242. </el-form-item>
  243. </el-form>
  244. <el-table border :data="dataList">
  245. <el-table-column label="房间号" align="left" prop="roomNum" width="100"/>
  246. <el-table-column label="房间名称" align="left" prop="roomName">
  247. <template slot-scope="scope">
  248. <span>{{scope.row.roomType!='-99'?scope.row.subName:scope.row.roomName}}</span>
  249. <!--<span>{{scope.row.roomType}}</span>-->
  250. </template>
  251. </el-table-column>
  252. <el-table-column label="房间类型" align="left" prop="roomType" width="200">
  253. <template slot-scope="scope">
  254. <span v-for="(item,index) in roomTypeOptions" :key="index" v-if="item.dictValue == scope.row.roomType">{{item.dictLabel}}</span>
  255. </template>
  256. </el-table-column>
  257. <el-table-column label="创建人" align="left" prop="createBy" width="200"/>
  258. <el-table-column label="创建时间" align="left" prop="createTime" width="200"/>
  259. <!--<el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="100">-->
  260. <!--<template slot-scope="scope">-->
  261. <!--<div class="button-box" style="display: flex">-->
  262. <!--<p class="table-min-button" @click="roomClick(1,scope.row)">编辑</p>-->
  263. <!--</div>-->
  264. <!--</template>-->
  265. <!--</el-table-column>-->
  266. </el-table>
  267. <pagination
  268. style="margin-top:20px;"
  269. v-show="total>0"
  270. :total="total"
  271. :page.sync="queryParams.pageNum"
  272. :limit.sync="queryParams.pageSize"
  273. @pagination="getList"
  274. />
  275. </div>
  276. </div>
  277. </div>
  278. <!-- 新增/编辑校区 -->
  279. <el-dialog :title="dialogTitle" v-if="dialogOpen" :visible.sync="dialogOpen" width="600px" append-to-body>
  280. <el-form ref="dialogForm" :model="dialogForm" :rules="rules" label-width="110px">
  281. <el-form-item label="校区名称:" prop="nameOne">
  282. <el-input v-model="dialogForm.nameOne" maxlength="10" placeholder="请输入校区名称"
  283. :disabled="dialogType==2 || dialogType==22 || dialogType==3 || dialogType==33"/>
  284. </el-form-item>
  285. <el-form-item label="楼栋名称:" prop="nameTwo"
  286. v-if="dialogType==2 || dialogType==22 || dialogType==3 || dialogType==33">
  287. <el-input v-model="dialogForm.nameTwo" maxlength="10" placeholder="请输入楼栋名称"
  288. :disabled="dialogType==3 || dialogType==33"/>
  289. </el-form-item>
  290. <el-form-item label="楼层名称:" prop="nameThree" v-if="dialogType==3 || dialogType==33">
  291. <el-input v-model="dialogForm.nameThree" maxlength="10" placeholder="请输入楼层名称"/>
  292. </el-form-item>
  293. <el-form-item label="排序序号:" prop="sortNo" class="dialog-sort-no-form-item-box">
  294. <el-input-number v-model="dialogForm.sortNo" :min="0" :max="999" placeholder="请输入排序序号" :controls="false"
  295. style="width:450px;"></el-input-number>
  296. </el-form-item>
  297. </el-form>
  298. <div slot="footer" class="dialog-footer">
  299. <div style="display: flex">
  300. <p style="flex:1;"></p>
  301. <p
  302. style="cursor:pointer;border-radius:6px;width:70px;line-height:30px;font-size:12px;text-align:center;margin-right:17px;color:#999999;background:#E0E0E0;"
  303. @click="cancel">取消</p>
  304. <p
  305. style="cursor:pointer;border-radius:6px;width:70px;line-height:30px;font-size:12px;text-align:center;color:#fff;background:#0045AF;"
  306. @click="submitForm">确定</p>
  307. <p style="flex:1;"></p>
  308. </div>
  309. </div>
  310. </el-dialog>
  311. <el-dialog title="房间配置" v-if="dialogOpenRoom" :visible.sync="dialogOpenRoom" width="800px" append-to-body class="building-dialog-box">
  312. <el-form ref="roomDialogForm" :model="roomDialogForm" :rules="rules" label-width="110px">
  313. <el-form-item label="楼栋名称:" prop="buildName">
  314. <el-input v-model="roomDialogForm.buildName" maxlength="10" placeholder="请输入楼栋名称" disabled style="width:575px;"/>
  315. </el-form-item>
  316. <el-form-item label="楼层名称:" prop="floorName">
  317. <el-input v-model="roomDialogForm.floorName" maxlength="10" placeholder="请输入楼层名称" disabled style="width:575px;"/>
  318. </el-form-item>
  319. <el-form-item label="房间类型:" prop="roomType">
  320. <el-select v-model="roomDialogForm.roomType" placeholder="请选择房间类型" style="width:575px;">
  321. <el-option
  322. v-for="dict in roomTypeOptions"
  323. :key="dict.dictValue"
  324. :label="dict.dictLabel"
  325. :value="dict.dictValue">
  326. </el-option>
  327. </el-select>
  328. </el-form-item>
  329. <el-form-item label="房间号:" prop="roomNum">
  330. <el-input v-model="roomDialogForm.roomNum" maxlength="10" placeholder="请输入房间号" style="width:575px;"/>
  331. </el-form-item>
  332. <el-form-item label="房间名称:" prop="roomName" v-if="roomDialogForm.roomType == '-99'">
  333. <el-input v-model="roomDialogForm.roomName" maxlength="10" placeholder="请输入房间名称" style="width:575px;"/>
  334. </el-form-item>
  335. <el-form-item label="房间选择:" prop="subId" v-if="roomDialogForm.roomType != '-99'">
  336. <el-select
  337. style="width:575px;"
  338. v-model="roomDialogForm.subId"
  339. filterable
  340. remote
  341. reserve-keyword
  342. @focus="selectFocus"
  343. placeholder="请选择房间"
  344. :remote-method="userSelectList"
  345. :loading="loading">
  346. <el-option
  347. v-for="item in subjectOptions"
  348. :key="item.id"
  349. :label="item.name"
  350. :value="item.id">
  351. </el-option>
  352. </el-select>
  353. </el-form-item>
  354. <el-form-item label="房间位置:">
  355. <div class="map-max-big-box">
  356. <div class="layout-data-max-big-box">
  357. <div class="layout-data-max-big-min-box"
  358. :style="'width:'+dialogBuildingData.width+'px;height:'+dialogBuildingData.height+'px;transform: scale('+minZoomData+');margin-top:-'+dialogBuildingData.height/2+'px;margin-left:-'+dialogBuildingData.width/2+'px;'">
  359. <div class="layout-data-max-min-box"
  360. :style="'width:'+dialogBuildingData.width+'px;height:'+dialogBuildingData.height+'px;'">
  361. <div class="map-max-for-box"
  362. v-for="(item,index) in dialogBuildingData.mapList" :key="index"
  363. :class="item.type == 2?'for-map-box-one':''"
  364. :style="'top:'+item.y+'px;left:'+item.x+'px;width:'+item.w+'px;height:'+item.h+'px;'">
  365. <div class="map-max-for-left-box"></div>
  366. <div class="map-max-for-center-box">
  367. <div class="map-max-for-center-min-left"></div>
  368. <div class="map-max-for-center-min-center"
  369. :class="item.type == 2?'for-map-box-one':(item.type == 1 &&item.checkType?'for-map-box-three':(item.type == 3?'for-map-box-two':(item.type == 1?'for-map-box':'')))">
  370. <div class="min-text-box"
  371. :style="'line-height:'+(item.h-4)+'px;height:'+(item.h-4)+'px;'"
  372. v-if="item.type==1">{{item.roomNum}}</div>
  373. <div v-if="item.type == 1"
  374. :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':'')))"
  375. v-for="(minItem,minIndex) in item.doorList" :key="minIndex"
  376. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  377. <div v-if="item.type == 3"
  378. :class="minItem.toward=='top'?'center-move-door-p-t-ss':(minItem.toward=='bottom'?'center-move-door-p-b-ss':(minItem.toward=='left'?'center-move-door-p-l-ss':(minItem.toward=='right'?'center-move-door-p-r-ss':'')))"
  379. v-for="(minItem,minIndex) in item.doorList" :key="minIndex"
  380. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  381. <div @click="lighButton(minItem)"
  382. :class="minItem.state=='1'?'lightTop':(minItem.state=='2'?'lightBottom':(minItem.state=='3'?'lightLeft':(minItem.state=='4'?'lightRight':'')))"
  383. v-for="(minItem,minIndex) in item.lightList" :key="minIndex"
  384. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  385. </div>
  386. <div class="map-max-for-center-min-right"></div>
  387. </div>
  388. <div class="map-max-for-right-box"></div>
  389. </div>
  390. </div>
  391. </div>
  392. </div>
  393. </div>
  394. </el-form-item>
  395. </el-form>
  396. <div slot="footer" class="dialog-footer">
  397. <div style="display: flex">
  398. <p style="flex:1;"></p>
  399. <p
  400. style="cursor:pointer;border-radius:6px;width:70px;line-height:30px;font-size:12px;text-align:center;margin-right:17px;color:#999999;background:#E0E0E0;"
  401. @click="roomCancel">取消</p>
  402. <p
  403. style="cursor:pointer;border-radius:6px;width:70px;line-height:30px;font-size:12px;text-align:center;color:#fff;background:#0045AF;"
  404. @click="roomSubmitForm">确定</p>
  405. <p style="flex:1;"></p>
  406. </div>
  407. </div>
  408. </el-dialog>
  409. </div>
  410. <building-details :propsData="propsData" v-if="pageType == 2"></building-details>
  411. </div>
  412. </template>
  413. <script>
  414. import {
  415. getTreeList, getTreeSonList, addBuildFloor, putBuildFloor, delBuildFloor, editSortNum, buildFloorLayoutList,
  416. getBuildFloorLayout, putBuildFloorLayout, subjectList
  417. } from '@/api/evacuation3_2/index'
  418. import buildingManagement from './buildingManagement.vue'
  419. import buildingDetails from './buildingDetails.vue'
  420. export default {
  421. name: 'newIndex',
  422. components: {
  423. buildingManagement,
  424. buildingDetails
  425. },
  426. data() {
  427. return {
  428. pageType: 1,
  429. //拖拽起始Y点(用于计算朝向)
  430. clientY: null,
  431. clientId: null,
  432. //学校/楼栋/楼层
  433. treeList: [],
  434. //选中状态
  435. checkTreeId: null,
  436. checkTreeType: 1,
  437. buildingList: [],
  438. //楼层展开/关闭状态
  439. floorZkType: null, //1.全部展开 2.全部关闭 3.有关有开
  440. //编辑弹窗开关
  441. dialogOpen: false,
  442. dialogType: null,
  443. dialogTitle: '',
  444. // 表单参数
  445. dialogForm: {},
  446. roomDialogForm: {},
  447. //校区名称
  448. yxName: null,
  449. ldName: null,
  450. lcName: null,
  451. parentId: null,
  452. // 表单校验
  453. rules: {
  454. nameOne: [
  455. { required: true, message: '请输入校区名称', trigger: 'blur' },
  456. { required: true, message: '请输入校区名称', validator: this.spaceJudgment, trigger: 'blur' }
  457. ],
  458. nameTwo: [
  459. { required: true, message: '请输入楼栋名称', trigger: 'blur' },
  460. { required: true, message: '请输入楼栋名称', validator: this.spaceJudgment, trigger: 'blur' }
  461. ],
  462. nameThree: [
  463. { required: true, message: '请输入楼层名称', trigger: 'blur' },
  464. { required: true, message: '请输入楼层名称', validator: this.spaceJudgment, trigger: 'blur' }
  465. ],
  466. sortNo: [
  467. { required: true, message: '请输入排序序号', trigger: 'blur' },
  468. { required: true, message: '请输入排序序号', validator: this.spaceJudgment, trigger: 'blur' }
  469. ]
  470. },
  471. // 显示搜索条件
  472. showSearch: true,
  473. loading: false,
  474. //楼层查询数据
  475. queryParams: {},
  476. //楼层表单数据
  477. dataList: [],
  478. total: 10,
  479. //房间配置相关
  480. dialogOpenRoom: false,
  481. //房间类型列表
  482. roomTypeOptions: [],
  483. //实验室选择列表
  484. subjectOptions: [],
  485. //传参数据
  486. propsData: {},
  487. //缩放比例
  488. zoomData: null,
  489. minZoomData: null,
  490. dialogBuildingData:[]
  491. }
  492. },
  493. created() {
  494. },
  495. mounted() {
  496. this.getTreeList()
  497. this.getDicts('layout_room_type').then(response => {
  498. this.roomTypeOptions = response.data
  499. this.roomTypeOptions.push({ dictLabel: '其他', dictValue: '-99' })
  500. })
  501. },
  502. methods: {
  503. //新增学校/楼栋/楼层数据
  504. addBuildFloor(type) {
  505. this.$refs['dialogForm'].validate(valid => {
  506. if (valid) {
  507. //1.学校 2.楼栋 3.楼层
  508. let obj = {
  509. name: type == 1 ? this.dialogForm.nameOne : (type == 2 ? this.dialogForm.nameTwo : (type == 3 ? this.dialogForm.nameThree : '')),
  510. type: type,
  511. sortNo: this.dialogForm.sortNo,
  512. parentId: type == 1 ? 0 : this.checkTreeId
  513. }
  514. addBuildFloor(obj).then(response => {
  515. this.msgSuccess(response.msg)
  516. this.cancel()
  517. this.getTreeList()
  518. })
  519. }
  520. })
  521. },
  522. //编辑学校/楼栋/楼层数据
  523. putBuildFloor(type) {
  524. this.$refs['dialogForm'].validate(valid => {
  525. if (valid) {
  526. //1.学校 2.楼栋 3.楼层
  527. let obj = {
  528. id: this.dialogForm.id,
  529. name: type == 1 ? this.dialogForm.nameOne : (type == 2 ? this.dialogForm.nameTwo : (type == 3 ? this.dialogForm.nameThree : '')),
  530. type: type,
  531. sortNo: this.dialogForm.sortNo
  532. }
  533. putBuildFloor(obj).then(response => {
  534. this.msgSuccess(response.msg)
  535. this.cancel()
  536. this.getTreeList()
  537. })
  538. }
  539. })
  540. },
  541. //删除学校/楼栋/楼层数据
  542. delBuildFloor(id) {
  543. delBuildFloor(id).then(response => {
  544. this.msgSuccess(response.msg)
  545. this.getTreeList()
  546. })
  547. },
  548. //调整排序
  549. editSortNum(data) {
  550. editSortNum(data).then(response => {
  551. this.msgSuccess(response.msg)
  552. this.getTreeList()
  553. })
  554. },
  555. roomCancel() {
  556. this.$set(this, 'dialogOpenRoom', false)
  557. },
  558. roomSubmitForm() {
  559. this.$refs['roomDialogForm'].validate(valid => {
  560. if (valid) {
  561. let obj = {
  562. id: this.roomDialogForm.id,
  563. roomNum: this.roomDialogForm.roomNum,
  564. roomType: this.roomDialogForm.roomType
  565. }
  566. if (this.roomDialogForm.roomType == '-99') {
  567. obj.roomName = this.roomDialogForm.roomName
  568. } else {
  569. obj.subId = this.roomDialogForm.subId
  570. }
  571. putBuildFloorLayout(obj).then(response => {
  572. this.$set(this, 'dialogOpenRoom', false)
  573. this.msgSuccess(response.msg)
  574. let obj = {
  575. id: this.checkTreeId ,
  576. type: this.checkTreeType,
  577. parentId: this.parentId
  578. }
  579. this.getTreeSonList(obj)
  580. })
  581. }
  582. })
  583. },
  584. // 取消按钮
  585. cancel() {
  586. this.$set(this, 'dialogOpen', false)
  587. this.$set(this, 'dialogForm', {})
  588. this.$set(this, 'dialogType', null)
  589. },
  590. //确定按钮
  591. submitForm() {
  592. if (this.dialogType == 1) {
  593. //新增
  594. this.addBuildFloor(1)
  595. } else if (this.dialogType == 11) {
  596. //编辑
  597. this.putBuildFloor(1)
  598. } else if (this.dialogType == 2) {
  599. //新增
  600. this.addBuildFloor(2)
  601. } else if (this.dialogType == 22) {
  602. //编辑
  603. this.putBuildFloor(2)
  604. } else if (this.dialogType == 3) {
  605. //新增
  606. this.addBuildFloor(3)
  607. } else if (this.dialogType == 33) {
  608. //编辑
  609. this.putBuildFloor(3)
  610. }
  611. },
  612. //楼栋弹出下啦列表选中事件
  613. handleCommand(command, item) {
  614. let self = this
  615. if (command == 1) {
  616. //编辑校区
  617. this.$set(this, 'dialogTitle', '编辑校区')
  618. this.$set(this, 'dialogForm', {
  619. id: item.id,
  620. nameOne: item.name,
  621. sortNo: item.sortNo
  622. })
  623. this.$set(this, 'dialogType', 11)
  624. this.$set(this, 'dialogOpen', true)
  625. } else if (command == 2) {
  626. //删除校区
  627. this.$confirm('确定要删除该校区吗?', '警告', {
  628. confirmButtonText: '确定',
  629. cancelButtonText: '取消',
  630. type: 'warning'
  631. }).then(function() {
  632. self.delBuildFloor(item.id)
  633. }).then(() => {
  634. }).catch(() => {
  635. })
  636. } else if (command == 3) {
  637. //新增校区
  638. this.$set(this, 'dialogForm', {})
  639. this.$set(this, 'dialogTitle', '新增校区')
  640. this.$set(this, 'dialogType', 1)
  641. this.$set(this, 'dialogOpen', true)
  642. } else if (command == 4) {
  643. //新增楼栋
  644. this.$set(this, 'dialogForm', {
  645. nameOne: this.yxName
  646. })
  647. this.$set(this, 'dialogTitle', '新增楼栋')
  648. this.$set(this, 'dialogType', 2)
  649. this.$set(this, 'dialogOpen', true)
  650. } else if (command == 5) {
  651. //编辑楼栋
  652. this.$set(this, 'dialogForm', {
  653. id: item.id,
  654. nameOne: this.yxName,
  655. nameTwo: item.name,
  656. sortNo: item.sortNo
  657. })
  658. this.$set(this, 'dialogTitle', '编辑楼栋')
  659. this.$set(this, 'dialogType', 22)
  660. this.$set(this, 'dialogOpen', true)
  661. } else if (command == 6) {
  662. //删除楼栋
  663. this.$confirm('确定要删除该楼栋吗?', '警告', {
  664. confirmButtonText: '确定',
  665. cancelButtonText: '取消',
  666. type: 'warning'
  667. }).then(function() {
  668. self.delBuildFloor(item.id)
  669. }).then(() => {
  670. }).catch(() => {
  671. })
  672. } else if (command == 7) {
  673. //新增楼层
  674. this.$set(this, 'dialogForm', {
  675. nameOne: this.yxName,
  676. nameTwo: this.ldName
  677. })
  678. this.$set(this, 'dialogTitle', '新增楼层')
  679. this.$set(this, 'dialogType', 3)
  680. this.$set(this, 'dialogOpen', true)
  681. } else if (command == 8) {
  682. //编辑楼层
  683. this.$set(this, 'dialogForm', {
  684. id: item.id,
  685. nameOne: this.yxName,
  686. nameTwo: this.ldName,
  687. nameThree: item.name,
  688. sortNo: item.sortNo
  689. })
  690. this.$set(this, 'dialogTitle', '编辑楼层')
  691. this.$set(this, 'dialogType', 33)
  692. this.$set(this, 'dialogOpen', true)
  693. } else if (command == 9) {
  694. //删除楼层
  695. this.$confirm('确定要删除该楼层吗?', '警告', {
  696. confirmButtonText: '确定',
  697. cancelButtonText: '取消',
  698. type: 'warning'
  699. }).then(function() {
  700. self.delBuildFloor(item.id)
  701. }).then(() => {
  702. }).catch(() => {
  703. })
  704. }
  705. },
  706. //获取学校/楼栋/楼层数据
  707. getTreeList() {
  708. getTreeList().then(response => {
  709. if (response.data[0]) {
  710. for (let i = 0; i < response.data.length; i++) {
  711. for (let o = 0; o < response.data[i].buildFloorVoList.length; o++) {
  712. response.data[i].buildFloorVoList[o].onType = true
  713. }
  714. }
  715. this.$set(this, 'treeList', response.data)
  716. if (!this.checkTreeId) {
  717. this.$set(this, 'checkTreeId', response.data[0].id)
  718. this.$set(this, 'yxName', response.data[0].name)
  719. this.$set(this, 'parentId', response.data[0].parentId)
  720. }
  721. let obj = {
  722. id: this.checkTreeId ? this.checkTreeId : response.data[0].id,
  723. type: 1,
  724. parentId: this.parentId ? this.parentId : 0
  725. }
  726. this.getTreeSonList(obj)
  727. }
  728. })
  729. },
  730. //获取校区/楼栋/楼层详情数据
  731. getTreeSonList(data) {
  732. getTreeSonList(data).then(response => {
  733. if (this.checkTreeType == 1) {
  734. this.$set(this, 'buildingList', response.rows)
  735. } else if (this.checkTreeType == 2) {
  736. for (let i = 0; i < response.rows.length; i++) {
  737. response.rows[i].onType = false
  738. if (response.rows[i].layoutData) {
  739. response.rows[i].mapList = JSON.parse(response.rows[i].layoutData)
  740. let obj = this.calculateMapMax(response.rows[i].mapList,380,1180)
  741. response.rows[i].width = obj.maxWidth
  742. response.rows[i].height = obj.maxHeight
  743. response.rows[i].zoomData = obj.zoomData
  744. }
  745. }
  746. this.$set(this, 'buildingList', response.rows)
  747. this.floorZkFor()
  748. } else if (this.checkTreeType == 3) {
  749. if (response.rows[0].layoutData) {
  750. response.rows[0].mapList = JSON.parse(response.rows[0].layoutData)
  751. let obj = this.calculateMapMax(response.rows[0].mapList,380,1180)
  752. response.rows[0].width = obj.maxWidth
  753. response.rows[0].height = obj.maxHeight
  754. response.rows[0].zoomData = obj.zoomData
  755. }
  756. this.$set(this, 'queryParams', {
  757. searchValue: '',
  758. roomType: '',
  759. pageNum: 1,
  760. pageSize: 10
  761. })
  762. this.getList()
  763. this.$set(this, 'buildingList', response.rows[0])
  764. }
  765. })
  766. },
  767. //获取楼层实验室数据列表
  768. getList() {
  769. this.queryParams.floorId = this.checkTreeId
  770. buildFloorLayoutList(this.queryParams).then(response => {
  771. this.dataList = response.rows
  772. this.total = response.total
  773. })
  774. },
  775. //页面切换
  776. clickPage(type, item) {
  777. if (type == 1) {
  778. this.$set(this, 'pageType', type)
  779. } else if (type == 2) {
  780. console.log('type',type)
  781. console.log('item',item)
  782. this.$set(this, 'propsData', item)
  783. if(item.name){
  784. this.$set(this.propsData, 'buildName', item.buildName)
  785. this.$set(this.propsData, 'floorName', item.name)
  786. }else{
  787. this.$set(this.propsData, 'buildName', this.ldName)
  788. this.$set(this.propsData, 'floorName', this.lcName)
  789. }
  790. this.$set(this, 'pageType', type)
  791. }else if(type == 3){
  792. this.$set(this, 'pageType', 1)
  793. let obj = {
  794. id: this.checkTreeId ,
  795. type: this.checkTreeType,
  796. parentId: this.parentId
  797. }
  798. this.getTreeSonList(obj)
  799. }
  800. },
  801. //懒加载实验室
  802. userSelectList(e) {
  803. subjectList({ name: e }).then(response => {
  804. this.subjectOptions = response.data
  805. this.subjectOptions.push({ id: this.roomDialogForm.subId, name: this.roomDialogForm.subName })
  806. })
  807. },
  808. selectFocus() {
  809. console.log('123')
  810. },
  811. //房间操作按钮
  812. roomClick(type, item) {
  813. //查询房间实验室详情
  814. getBuildFloorLayout(item.id).then(response => {
  815. let obj = {
  816. id: response.data.id,
  817. buildName: response.data.buildName,
  818. floorName: response.data.floorName,
  819. roomNum: response.data.roomNum,
  820. roomType: response.data.roomType + '',
  821. pointName: response.data.pointName
  822. }
  823. if (response.data.roomType == '-99') {
  824. obj.roomName = response.data.roomName
  825. } else {
  826. obj.subId = response.data.subId
  827. obj.subName = response.data.subName
  828. }
  829. //根据返回实验室名称查询实验室选择列表回填
  830. this.$set(this, 'roomDialogForm', obj)
  831. this.$set(this, 'subjectOptions', [{ id: response.data.subId, name: response.data.subName }])
  832. let newData = JSON.parse(JSON.stringify(this.buildingList));
  833. for(let i=0;i<newData.mapList.length;i++){
  834. if( response.data.subId == newData.mapList[i].subId || response.data.roomName == newData.mapList[i].roomName){
  835. newData.mapList[i].checkType = true;
  836. }else{
  837. newData.mapList[i].checkType = false;
  838. }
  839. }
  840. let newObj = this.calculateMapMax(newData.mapList,285,575,'min')
  841. newData.width = newObj.maxWidth
  842. newData.height = newObj.maxHeight
  843. newData.zoomData = newObj.zoomData
  844. this.$set(this,'dialogBuildingData',newData);
  845. this.dialogOpenRoom = true
  846. })
  847. },
  848. //树状结构选中
  849. clickCheckTree(item, type, itemOne) {
  850. console.log('item',item);
  851. console.log('type',type);
  852. if (item.id != this.checkTreeId) {
  853. this.$set(this, 'checkTreeId', item.id)
  854. this.$set(this, 'checkTreeType', type)
  855. if (type == 1) {
  856. this.$set(this, 'yxName', item.name)
  857. this.$set(this, 'buildingList', [])
  858. } else if (type == 2) {
  859. this.$set(this, 'ldName', item.name)
  860. this.$set(this, 'buildingList', [])
  861. } else if (type == 3) {
  862. this.$set(this, 'ldName', itemOne.name)
  863. this.$set(this, 'lcName', item.name)
  864. this.$set(this, 'buildingList', {})
  865. }
  866. let obj = {
  867. id: item.id,
  868. type: type,
  869. parentId: item.parentId
  870. }
  871. this.$set(this,'parentId',item.parentId);
  872. this.getTreeSonList(obj)
  873. }
  874. },
  875. //树状结构展开收回
  876. terrClick(itemOne) {
  877. itemOne.onType = !itemOne.onType
  878. },
  879. //展开/收起开关
  880. floorZK(type, index) {
  881. let self = this
  882. //type等于1时全部开关功能 等于2时单个开关
  883. if (type == 1) {
  884. let list = JSON.parse(JSON.stringify(self.buildingList))
  885. for (let i = 0; i < list.length; i++) {
  886. if (self.floorZkType == 1) {
  887. list[i].onType = false
  888. } else if (self.floorZkType == 2) {
  889. list[i].onType = true
  890. } else if (self.floorZkType == 3) {
  891. list[i].onType = true
  892. }
  893. }
  894. this.$set(this, 'buildingList', list)
  895. this.floorZkFor()
  896. } else if (type == 2) {
  897. this.$set(this.buildingList[index], 'onType', this.buildingList[index].onType ? false : true)
  898. this.floorZkFor()
  899. }
  900. },
  901. //层展开关闭判断
  902. floorZkFor() {
  903. let self = this
  904. let numOne = 0
  905. let numTwo = 0
  906. for (let i = 0; i < self.buildingList.length; i++) {
  907. if (self.buildingList[i].onType) {
  908. numOne++
  909. } else {
  910. numTwo++
  911. }
  912. }
  913. if (numOne == self.buildingList.length) {
  914. this.$set(this, 'floorZkType', 1)
  915. } else if (numTwo == self.buildingList.length) {
  916. this.$set(this, 'floorZkType', 2)
  917. } else {
  918. this.$set(this, 'floorZkType', 3)
  919. }
  920. },
  921. //拖拽抓取时触发
  922. dragstartPlay(event) {
  923. this.$set(this, 'clientY', event.clientY)
  924. },
  925. //拖拽途径触发
  926. dragoverPrevent(item) {
  927. this.$set(this, 'clientId', item.id)
  928. },
  929. //拖拽释放触发
  930. dragEnterOver(event, item) {
  931. let self = this
  932. let newList = []
  933. if (this.clientId && item.id != this.clientId) {
  934. let list = []
  935. let obj = null
  936. for (let i = 0; i < self.buildingList.length; i++) {
  937. if (self.buildingList[i].id == item.id) {
  938. obj = JSON.parse(JSON.stringify(self.buildingList[i]))
  939. }
  940. }
  941. if (event.clientY > this.clientY) {
  942. for (let i = 0; i < self.buildingList.length; i++) {
  943. if (self.buildingList[i].id != item.id && self.buildingList[i].id != this.clientId) {
  944. list.push(self.buildingList[i])
  945. } else if (self.buildingList[i].id == this.clientId) {
  946. list.push(self.buildingList[i])
  947. list.push(obj)
  948. }
  949. }
  950. } else if (event.clientY < this.clientY) {
  951. for (let i = 0; i < self.buildingList.length; i++) {
  952. if (self.buildingList[i].id == this.clientId) {
  953. list.push(obj)
  954. list.push(self.buildingList[i])
  955. } else if (self.buildingList[i].id != item.id && self.buildingList[i].id != this.clientId) {
  956. list.push(self.buildingList[i])
  957. }
  958. }
  959. }
  960. for (let i = 0; i < list.length; i++) {
  961. newList.push({ id: list[i].id, sortNo: i })
  962. }
  963. // this.$set(this,'buildingList',list);
  964. this.$set(this, 'clientId', null)
  965. this.editSortNum(newList)
  966. }
  967. },
  968. /** 搜索按钮操作 */
  969. handleQuery() {
  970. this.$set(this.queryParams, 'pageNum', 1)
  971. this.getList()
  972. },
  973. /** 重置按钮操作 */
  974. resetQuery() {
  975. this.$set(this, 'queryParams', {
  976. searchValue: '',
  977. roomType: '',
  978. pageNum: 1,
  979. pageSize: 10
  980. })
  981. this.handleQuery()
  982. },
  983. //计算布局最大尺寸
  984. calculateMapMax(list, height,width,type) {
  985. //基础参数
  986. let maxWidth = 0
  987. let maxHeight = 0
  988. let zoomData = 1;
  989. //参数处理
  990. for (let i = 0; i < list.length; i++) {
  991. if ((list[i].x + list[i].w) > maxWidth) {
  992. maxWidth = list[i].x + list[i].w
  993. }
  994. if ((list[i].y + list[i].h) > maxHeight) {
  995. maxHeight = list[i].y + list[i].h
  996. }
  997. }
  998. //处理等值数据
  999. if(maxHeight == height){
  1000. maxHeight++
  1001. }
  1002. if(maxWidth == width){
  1003. maxWidth++
  1004. }
  1005. //缩放判断
  1006. let zoomNumOne = height / maxHeight;
  1007. if(parseInt(this.accMul(zoomNumOne,maxHeight)) <= height && parseInt(this.accMul(zoomNumOne,maxWidth)) <= width){
  1008. zoomData = zoomNumOne;
  1009. this.$set(this,'zoomData',zoomNumOne);
  1010. this.$set(this,'minZoomData',zoomNumOne);
  1011. }
  1012. let zoomNumTwo = width / maxWidth;
  1013. if(parseInt(this.accMul(zoomNumTwo,maxHeight)) <= height && parseInt(this.accMul(zoomNumTwo,maxWidth)) <= width){
  1014. zoomData = zoomNumTwo;
  1015. this.$set(this,'zoomData',zoomNumTwo);
  1016. this.$set(this,'minZoomData',zoomNumTwo);
  1017. }
  1018. return { maxWidth: maxWidth, maxHeight: maxHeight,zoomData:zoomData }
  1019. },
  1020. accMul(arg1,arg2){
  1021. var m=0,s1=arg1.toString(),s2=arg2.toString();
  1022. try{m+=s1.split(".")[1].length}catch(e){}
  1023. try{m+=s2.split(".")[1].length}catch(e){}
  1024. return Number(s1.replace(".",""))*Number(s2.replace(".",""))/Math.pow(10,m)
  1025. },
  1026. }
  1027. }
  1028. </script>
  1029. <style scoped lang="scss">
  1030. .building {
  1031. flex: 1;
  1032. display: flex !important;
  1033. flex-direction: column;
  1034. overflow: hidden;
  1035. * {
  1036. margin: 0;
  1037. font-weight: 500;
  1038. }
  1039. .buildingManagement {
  1040. flex: 1;
  1041. display: flex !important;
  1042. overflow: hidden;
  1043. padding: 22px 28px 22px 32px;
  1044. .max-left-box {
  1045. width: 281px;
  1046. border-right: 1px dashed #A2A2A2;
  1047. display: flex;
  1048. flex-direction: column;
  1049. .tree-null-p {
  1050. text-align: center;
  1051. line-height: 100px;
  1052. flex: 1;
  1053. color: #999;
  1054. }
  1055. .tree-box {
  1056. flex: 1;
  1057. .terr-max-box {
  1058. margin-top: 20px;
  1059. .max-name-box {
  1060. display: flex;
  1061. margin-right: 20px;
  1062. margin-bottom: 10px;
  1063. color: #D8D8D8;
  1064. font-size: 20px;
  1065. .max-name {
  1066. flex: 1;
  1067. margin-right: 19px;
  1068. color: #333;
  1069. font-size: 16px;
  1070. line-height: 16px;
  1071. margin-top: 3px;
  1072. cursor: pointer;
  1073. }
  1074. }
  1075. .terr-big-box {
  1076. margin-left: 30px;
  1077. .big-name-box {
  1078. cursor: pointer;
  1079. height: 40px;
  1080. line-height: 40px;
  1081. display: flex;
  1082. font-size: 16px;
  1083. color: #333;
  1084. img {
  1085. width: 16px;
  1086. height: 16px;
  1087. margin-top: 12px;
  1088. margin-right: 4px;
  1089. }
  1090. .name-p {
  1091. flex: 1;
  1092. }
  1093. }
  1094. .terr-min-box {
  1095. margin-left: 30px;
  1096. .min-name {
  1097. cursor: pointer;
  1098. height: 40px;
  1099. line-height: 40px;
  1100. display: flex;
  1101. font-size: 16px;
  1102. color: #333;
  1103. }
  1104. }
  1105. }
  1106. .check-color {
  1107. color: #0183FA !important;
  1108. }
  1109. }
  1110. }
  1111. .max-left-big-button {
  1112. color: #0183FA;
  1113. border: 1px dashed #0183FA;
  1114. -webkit-border-radius: 6px;
  1115. -moz-border-radius: 6px;
  1116. border-radius: 6px;
  1117. width: 180px;
  1118. line-height: 40px;
  1119. margin: 20px 0 20px 40px;
  1120. text-align: center;
  1121. font-size: 14px;
  1122. cursor: pointer;
  1123. }
  1124. .max-left-big-button:hover {
  1125. color: #fff;
  1126. background: #0183FA;
  1127. border: 1px solid #0183FA;
  1128. }
  1129. }
  1130. .max-right-box {
  1131. flex: 1;
  1132. display: flex;
  1133. flex-direction: column;
  1134. overflow: hidden;
  1135. .school-box {
  1136. flex: 1;
  1137. display: flex;
  1138. flex-direction: column;
  1139. overflow: hidden;
  1140. .max-right-button-box {
  1141. height: 40px;
  1142. display: flex;
  1143. margin-bottom: 22px;
  1144. .null-p {
  1145. flex: 1;
  1146. }
  1147. .max-right-big-button {
  1148. color: #fff;
  1149. background: #0045AF;
  1150. -webkit-border-radius: 6px;
  1151. -moz-border-radius: 6px;
  1152. border-radius: 6px;
  1153. width: 130px;
  1154. line-height: 40px;
  1155. text-align: center;
  1156. font-size: 14px;
  1157. cursor: pointer;
  1158. }
  1159. .max-right-big-button:hover {
  1160. color: #fff;
  1161. background: #0183FA;
  1162. }
  1163. }
  1164. .right-big-list-box {
  1165. flex: 1;
  1166. position: relative;
  1167. .for-max-box {
  1168. .for-big-box {
  1169. display: flex;
  1170. border: 1px solid #dedede;
  1171. height: 100px;
  1172. box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.16);
  1173. margin-bottom: 30px;
  1174. margin-left: 36px;
  1175. border-radius: 6px;
  1176. .for-big-box-left {
  1177. flex: 1;
  1178. display: flex;
  1179. .for-img-one {
  1180. cursor: pointer;
  1181. height: 30px;
  1182. width: 30px;
  1183. margin: 35px 0 0 30px;
  1184. }
  1185. .for-text-one {
  1186. font-size: 16px;
  1187. line-height: 100px;
  1188. margin-left: 95px;
  1189. width: 230px;
  1190. font-weight: 500;
  1191. }
  1192. .for-img-two {
  1193. height: 48px;
  1194. width: 48px;
  1195. margin: 26px 23px 0 30px;
  1196. }
  1197. .for-text-box-one {
  1198. width: 88px;
  1199. margin-right: 73px;
  1200. p {
  1201. text-align: center;
  1202. }
  1203. p:nth-child(1) {
  1204. margin-top: 20px;
  1205. font-size: 24px;
  1206. line-height: 30px;
  1207. color: #0183FA;
  1208. }
  1209. p:nth-child(2) {
  1210. margin-top: 10px;
  1211. font-size: 16px;
  1212. line-height: 16px;
  1213. color: #333;
  1214. }
  1215. }
  1216. .for-img-three {
  1217. height: 48px;
  1218. width: 48px;
  1219. margin: 26px 23px 0 0;
  1220. }
  1221. .for-text-box-two {
  1222. width: 88px;
  1223. p {
  1224. text-align: center;
  1225. }
  1226. p:nth-child(1) {
  1227. margin-top: 20px;
  1228. font-size: 24px;
  1229. line-height: 30px;
  1230. color: #0183FA;
  1231. }
  1232. p:nth-child(2) {
  1233. margin-top: 10px;
  1234. font-size: 16px;
  1235. line-height: 16px;
  1236. color: #333;
  1237. }
  1238. }
  1239. }
  1240. .for-button-min-box {
  1241. width: 220px;
  1242. margin-top: 9px;
  1243. height: 82px;
  1244. border-left: 1px dashed rgba(0, 0, 0, 0.3);
  1245. display: flex;
  1246. line-height: 82px;
  1247. div {
  1248. margin-left: 34px;
  1249. display: flex;
  1250. width: 60px;
  1251. cursor: pointer;
  1252. img {
  1253. width: 16px;
  1254. height: 16px;
  1255. margin-right: 8px;
  1256. margin-top: 33px;
  1257. }
  1258. p {
  1259. font-size: 14px;
  1260. color: #333;
  1261. }
  1262. }
  1263. }
  1264. }
  1265. }
  1266. .null-img {
  1267. position: absolute;
  1268. top: 40%;
  1269. left: 50%;
  1270. width: 276px;
  1271. height: 321px;
  1272. margin-top: -160px;
  1273. margin-left: -138px;
  1274. }
  1275. }
  1276. }
  1277. .building-box {
  1278. flex: 1;
  1279. display: flex;
  1280. flex-direction: column;
  1281. overflow: hidden;
  1282. .max-right-button-box {
  1283. height: 40px;
  1284. display: flex;
  1285. margin-bottom: 22px;
  1286. .null-p {
  1287. flex: 1;
  1288. }
  1289. .max-right-big-button {
  1290. color: #fff;
  1291. background: #0045AF;
  1292. -webkit-border-radius: 6px;
  1293. -moz-border-radius: 6px;
  1294. border-radius: 6px;
  1295. width: 130px;
  1296. line-height: 40px;
  1297. text-align: center;
  1298. font-size: 14px;
  1299. cursor: pointer;
  1300. }
  1301. .max-right-big-button:hover {
  1302. color: #fff;
  1303. background: #0183FA;
  1304. }
  1305. }
  1306. .right-big-list-box {
  1307. flex: 1;
  1308. position: relative;
  1309. .for-max-box {
  1310. margin-bottom: 30px;
  1311. .for-big-box {
  1312. display: flex;
  1313. border: 1px solid #dedede;
  1314. height: 100px;
  1315. box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.16);
  1316. margin-left: 36px;
  1317. border-radius: 6px;
  1318. .for-big-box-left {
  1319. flex: 1;
  1320. display: flex;
  1321. .for-img-one {
  1322. cursor: pointer;
  1323. height: 30px;
  1324. width: 30px;
  1325. margin: 35px 0 0 30px;
  1326. }
  1327. .for-text-one {
  1328. font-size: 16px;
  1329. line-height: 100px;
  1330. margin-left: 95px;
  1331. width: 230px;
  1332. font-weight: 500;
  1333. }
  1334. .for-img-two {
  1335. height: 48px;
  1336. width: 48px;
  1337. margin: 26px 23px 0 30px;
  1338. }
  1339. .for-text-box-one {
  1340. width: 88px;
  1341. margin-right: 73px;
  1342. p {
  1343. text-align: center;
  1344. }
  1345. p:nth-child(1) {
  1346. margin-top: 20px;
  1347. font-size: 24px;
  1348. line-height: 30px;
  1349. color: #0183FA;
  1350. }
  1351. p:nth-child(2) {
  1352. margin-top: 10px;
  1353. font-size: 16px;
  1354. line-height: 16px;
  1355. color: #333;
  1356. }
  1357. }
  1358. .for-img-three {
  1359. height: 48px;
  1360. width: 48px;
  1361. margin: 26px 23px 0 0;
  1362. }
  1363. .for-text-box-two {
  1364. width: 88px;
  1365. p {
  1366. text-align: center;
  1367. }
  1368. p:nth-child(1) {
  1369. margin-top: 20px;
  1370. font-size: 24px;
  1371. line-height: 30px;
  1372. color: #0183FA;
  1373. }
  1374. p:nth-child(2) {
  1375. margin-top: 10px;
  1376. font-size: 16px;
  1377. line-height: 16px;
  1378. color: #333;
  1379. }
  1380. }
  1381. }
  1382. .for-button-min-box {
  1383. width: 330px;
  1384. margin-top: 9px;
  1385. height: 82px;
  1386. border-left: 1px dashed rgba(0, 0, 0, 0.3);
  1387. display: flex;
  1388. line-height: 82px;
  1389. div {
  1390. margin-left: 34px;
  1391. display: flex;
  1392. width: 60px;
  1393. cursor: pointer;
  1394. img {
  1395. width: 16px;
  1396. height: 16px;
  1397. margin-right: 8px;
  1398. margin-top: 33px;
  1399. }
  1400. p {
  1401. font-size: 14px;
  1402. color: #333;
  1403. }
  1404. }
  1405. }
  1406. }
  1407. .layout-data-max-big-box {
  1408. width: 1195px;
  1409. height: 400px;
  1410. margin-left: 36px;
  1411. border-left: 1px solid #e0e0e0;
  1412. border-right: 1px solid #e0e0e0;
  1413. border-bottom: 1px solid #e0e0e0;
  1414. position: relative;
  1415. .layout-data-max-big-min-box {
  1416. position: absolute;
  1417. top: 50%;
  1418. left: 50%;
  1419. .layout-data-max-min-box {
  1420. position: relative;
  1421. /*border:1px solid #e0e0e0;*/
  1422. .map-max-for-box {
  1423. position: absolute;
  1424. display: flex;
  1425. flex-direction: column;
  1426. .map-max-for-left-box {
  1427. height: 2px;
  1428. }
  1429. .map-max-for-center-box {
  1430. flex: 1;
  1431. display: flex;
  1432. .map-max-for-center-min-left {
  1433. width: 2px;
  1434. }
  1435. .map-max-for-center-min-center {
  1436. flex: 1;
  1437. position: relative;
  1438. .min-text-box{
  1439. width:100%;
  1440. text-align: center;
  1441. color:#333;
  1442. word-wrap:break-word;
  1443. word-break:break-all;
  1444. overflow: hidden;
  1445. z-index:999;
  1446. font-size:14px;
  1447. line-height:20px;
  1448. }
  1449. div {
  1450. position: absolute
  1451. }
  1452. .center-move-door-p-t {
  1453. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1454. background-size: 100% !important;
  1455. transform: rotate(180deg);
  1456. }
  1457. .center-move-door-p-b {
  1458. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1459. background-size: 100% !important;
  1460. }
  1461. .center-move-door-p-l {
  1462. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1463. background-size: 100% !important;
  1464. transform: rotate(90deg);
  1465. }
  1466. .center-move-door-p-r {
  1467. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1468. background-size: 100% !important;
  1469. transform: rotateZ(270deg);
  1470. }
  1471. .center-move-door-p-t-ss {
  1472. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1473. background-size: 100% !important;
  1474. transform: rotate(180deg);
  1475. }
  1476. .center-move-door-p-b-ss {
  1477. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1478. background-size: 100% !important;
  1479. }
  1480. .center-move-door-p-l-ss {
  1481. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1482. background-size: 100% !important;
  1483. transform: rotate(90deg);
  1484. }
  1485. .center-move-door-p-r-ss {
  1486. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1487. background-size: 100% !important;
  1488. transform: rotateZ(270deg);
  1489. }
  1490. .lightTop {
  1491. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sjt.png");
  1492. background-size: 100%;
  1493. }
  1494. .lightBottom {
  1495. background: url("../../../../assets/ZDimages/evacuation3_2/icon_xjt.png");
  1496. background-size: 100%;
  1497. }
  1498. .lightLeft {
  1499. background: url("../../../../assets/ZDimages/evacuation3_2/icon_zuo.png");
  1500. background-size: 100%;
  1501. }
  1502. .lightRight {
  1503. background: url("../../../../assets/ZDimages/evacuation3_2/icon_yuo.png");
  1504. background-size: 100%;
  1505. }
  1506. }
  1507. .map-max-for-center-min-right {
  1508. width: 2px;
  1509. }
  1510. }
  1511. .map-max-for-right-box {
  1512. height: 2px;
  1513. }
  1514. .map-max-for-min-box {
  1515. position: relative;
  1516. div {
  1517. position: absolute
  1518. }
  1519. }
  1520. }
  1521. .for-map-box {
  1522. background: #CEF2FD;
  1523. }
  1524. .for-map-box-one {
  1525. background: #CEFDD5;
  1526. }
  1527. .for-map-box-two {
  1528. background: url("../../../../assets/ZDimages/evacuation3_2/icon_yjtd.png") center center no-repeat #39AE36;
  1529. background-size: 60px 60px;
  1530. }
  1531. }
  1532. }
  1533. }
  1534. .layout-data-max-big-null-box {
  1535. height: 400px;
  1536. margin-left: 36px;
  1537. border-left: 1px solid #e0e0e0;
  1538. border-right: 1px solid #e0e0e0;
  1539. border-bottom: 1px solid #e0e0e0;
  1540. position: relative;
  1541. overflow: hidden;
  1542. img {
  1543. position: absolute;
  1544. top: 50%;
  1545. left: 50%;
  1546. margin-left: -71px;
  1547. margin-top: -71px;
  1548. width: 142px;
  1549. height: 142px;
  1550. }
  1551. div {
  1552. margin-top: 300px;
  1553. height: 30px;
  1554. display: flex;
  1555. p:nth-child(1) {
  1556. flex: 1;
  1557. }
  1558. p:nth-child(2) {
  1559. margin-right: 20px;
  1560. color: #333;
  1561. font-size: 14px;
  1562. }
  1563. p:nth-child(3) {
  1564. color: #0183FA;
  1565. font-size: 14px;
  1566. cursor: pointer;
  1567. }
  1568. p:nth-child(4) {
  1569. flex: 1;
  1570. }
  1571. }
  1572. }
  1573. }
  1574. .null-img {
  1575. position: absolute;
  1576. top: 40%;
  1577. left: 50%;
  1578. width: 276px;
  1579. height: 321px;
  1580. margin-top: -160px;
  1581. margin-left: -138px;
  1582. }
  1583. }
  1584. }
  1585. .floor-box {
  1586. flex: 1;
  1587. display: flex;
  1588. flex-direction: column;
  1589. overflow: hidden;
  1590. .map-max-big-box {
  1591. height: 400px;
  1592. position: relative;
  1593. border: 1px solid #E0E0E0;
  1594. margin-bottom: 20px;
  1595. margin-left: 36px;
  1596. .layout-data-max-big-box {
  1597. width: 1195px;
  1598. height: 400px;
  1599. position: relative;
  1600. .layout-data-max-big-min-box {
  1601. position: absolute;
  1602. top: 50%;
  1603. left: 50%;
  1604. .layout-data-max-min-box {
  1605. position: relative;
  1606. /*border:1px solid #e0e0e0;*/
  1607. .map-max-for-box {
  1608. position: absolute;
  1609. display: flex;
  1610. flex-direction: column;
  1611. .map-max-for-left-box {
  1612. height: 2px;
  1613. }
  1614. .map-max-for-center-box {
  1615. flex: 1;
  1616. display: flex;
  1617. .map-max-for-center-min-left {
  1618. width: 2px;
  1619. }
  1620. .map-max-for-center-min-center {
  1621. flex: 1;
  1622. position: relative;
  1623. .min-text-box{
  1624. width:100%;
  1625. text-align: center;
  1626. color:#333;
  1627. word-wrap:break-word;
  1628. word-break:break-all;
  1629. overflow: hidden;
  1630. z-index:999;
  1631. font-size:14px;
  1632. line-height:20px;
  1633. }
  1634. div {
  1635. position: absolute
  1636. }
  1637. .center-move-door-p-t {
  1638. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1639. background-size: 100% !important;
  1640. transform: rotate(180deg);
  1641. }
  1642. .center-move-door-p-b {
  1643. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1644. background-size: 100% !important;
  1645. }
  1646. .center-move-door-p-l {
  1647. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1648. background-size: 100% !important;
  1649. transform: rotate(90deg);
  1650. }
  1651. .center-move-door-p-r {
  1652. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1653. background-size: 100% !important;
  1654. transform: rotateZ(270deg);
  1655. }
  1656. .center-move-door-p-t-ss {
  1657. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1658. background-size: 100% !important;
  1659. transform: rotate(180deg);
  1660. }
  1661. .center-move-door-p-b-ss {
  1662. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1663. background-size: 100% !important;
  1664. }
  1665. .center-move-door-p-l-ss {
  1666. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1667. background-size: 100% !important;
  1668. transform: rotate(90deg);
  1669. }
  1670. .center-move-door-p-r-ss {
  1671. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1672. background-size: 100% !important;
  1673. transform: rotateZ(270deg);
  1674. }
  1675. .lightTop {
  1676. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sjt.png");
  1677. background-size: 100%;
  1678. }
  1679. .lightBottom {
  1680. background: url("../../../../assets/ZDimages/evacuation3_2/icon_xjt.png");
  1681. background-size: 100%;
  1682. }
  1683. .lightLeft {
  1684. background: url("../../../../assets/ZDimages/evacuation3_2/icon_zuo.png");
  1685. background-size: 100%;
  1686. }
  1687. .lightRight {
  1688. background: url("../../../../assets/ZDimages/evacuation3_2/icon_yuo.png");
  1689. background-size: 100%;
  1690. }
  1691. }
  1692. .map-max-for-center-min-right {
  1693. width: 2px;
  1694. }
  1695. }
  1696. .map-max-for-right-box {
  1697. height: 2px;
  1698. }
  1699. .map-max-for-min-box {
  1700. position: relative;
  1701. div {
  1702. position: absolute
  1703. }
  1704. }
  1705. }
  1706. .for-map-box {
  1707. background: #CEF2FD;
  1708. }
  1709. .for-map-box-one {
  1710. background: #CEFDD5;
  1711. }
  1712. .for-map-box-two {
  1713. background: url("../../../../assets/ZDimages/evacuation3_2/icon_yjtd.png") center center no-repeat #39AE36;
  1714. background-size: 60px 60px;
  1715. }
  1716. }
  1717. }
  1718. }
  1719. .layout-data-max-big-null-box {
  1720. height: 400px;
  1721. position: relative;
  1722. overflow: hidden;
  1723. img {
  1724. position: absolute;
  1725. top: 50%;
  1726. left: 50%;
  1727. margin-left: -71px;
  1728. margin-top: -71px;
  1729. width: 142px;
  1730. height: 142px;
  1731. }
  1732. div {
  1733. margin-top: 300px;
  1734. height: 30px;
  1735. display: flex;
  1736. p:nth-child(1) {
  1737. flex: 1;
  1738. }
  1739. p:nth-child(2) {
  1740. margin-right: 20px;
  1741. color: #333;
  1742. font-size: 14px;
  1743. }
  1744. p:nth-child(3) {
  1745. color: #0183FA;
  1746. font-size: 14px;
  1747. cursor: pointer;
  1748. }
  1749. p:nth-child(4) {
  1750. flex: 1;
  1751. }
  1752. }
  1753. }
  1754. .position-button-p {
  1755. position: absolute;
  1756. right: 12px;
  1757. top: 13px;
  1758. width: 100px;
  1759. line-height: 40px;
  1760. font-size: 14px;
  1761. color: #fff;
  1762. background: #0045AF;
  1763. border-radius: 6px;
  1764. text-align: center;
  1765. cursor: pointer;
  1766. }
  1767. }
  1768. .table-box {
  1769. margin-left: 36px;
  1770. flex: 1;
  1771. display: flex;
  1772. flex-direction: column;
  1773. overflow: hidden;
  1774. }
  1775. }
  1776. }
  1777. }
  1778. }
  1779. </style>
  1780. <style lang="scss">
  1781. .dialog-sort-no-form-item-box input {
  1782. text-align: left !important;
  1783. }
  1784. .building-dialog-box{
  1785. .map-max-big-box {
  1786. width: 575px;
  1787. height: 286px;
  1788. position: relative;
  1789. border: 1px solid #E0E0E0;
  1790. overflow: hidden;
  1791. .layout-data-max-big-box {
  1792. width: 575px;
  1793. height: 286px;
  1794. position: relative;
  1795. .layout-data-max-big-min-box {
  1796. position: absolute;
  1797. top: 50%;
  1798. left: 50%;
  1799. .layout-data-max-min-box {
  1800. position: relative;
  1801. .map-max-for-box {
  1802. position: absolute;
  1803. display: flex;
  1804. flex-direction: column;
  1805. .map-max-for-left-box {
  1806. height: 2px;
  1807. }
  1808. .map-max-for-center-box {
  1809. flex: 1;
  1810. display: flex;
  1811. .map-max-for-center-min-left {
  1812. width: 2px;
  1813. }
  1814. .map-max-for-center-min-center {
  1815. flex: 1;
  1816. position: relative;
  1817. .min-text-box{
  1818. width:100%;
  1819. text-align: center;
  1820. color:#333;
  1821. word-wrap:break-word;
  1822. word-break:break-all;
  1823. overflow: hidden;
  1824. z-index:999;
  1825. font-size:14px;
  1826. line-height:20px;
  1827. }
  1828. div {
  1829. position: absolute
  1830. }
  1831. .center-move-door-p-t {
  1832. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1833. background-size: 100% !important;
  1834. transform: rotate(180deg);
  1835. }
  1836. .center-move-door-p-b {
  1837. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1838. background-size: 100% !important;
  1839. }
  1840. .center-move-door-p-l {
  1841. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1842. background-size: 100% !important;
  1843. transform: rotate(90deg);
  1844. }
  1845. .center-move-door-p-r {
  1846. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1847. background-size: 100% !important;
  1848. transform: rotateZ(270deg);
  1849. }
  1850. .center-move-door-p-t-ss {
  1851. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1852. background-size: 100% !important;
  1853. transform: rotate(180deg);
  1854. }
  1855. .center-move-door-p-b-ss {
  1856. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1857. background-size: 100% !important;
  1858. }
  1859. .center-move-door-p-l-ss {
  1860. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1861. background-size: 100% !important;
  1862. transform: rotate(90deg);
  1863. }
  1864. .center-move-door-p-r-ss {
  1865. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1866. background-size: 100% !important;
  1867. transform: rotateZ(270deg);
  1868. }
  1869. .lightTop {
  1870. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sjt.png");
  1871. background-size: 100%;
  1872. }
  1873. .lightBottom {
  1874. background: url("../../../../assets/ZDimages/evacuation3_2/icon_xjt.png");
  1875. background-size: 100%;
  1876. }
  1877. .lightLeft {
  1878. background: url("../../../../assets/ZDimages/evacuation3_2/icon_zuo.png");
  1879. background-size: 100%;
  1880. }
  1881. .lightRight {
  1882. background: url("../../../../assets/ZDimages/evacuation3_2/icon_yuo.png");
  1883. background-size: 100%;
  1884. }
  1885. }
  1886. .map-max-for-center-min-right {
  1887. width: 2px;
  1888. }
  1889. }
  1890. .map-max-for-right-box {
  1891. height: 2px;
  1892. }
  1893. .map-max-for-min-box {
  1894. position: relative;
  1895. div {
  1896. position: absolute
  1897. }
  1898. }
  1899. }
  1900. .for-map-box {
  1901. background: #CEF2FD;
  1902. }
  1903. .for-map-box-one {
  1904. background: #CEFDD5;
  1905. }
  1906. .for-map-box-two {
  1907. background: url("../../../../assets/ZDimages/evacuation3_2/icon_yjtd.png") center center no-repeat #39AE36;
  1908. background-size: 60px 60px;
  1909. }
  1910. .for-map-box-three {
  1911. background: #FFBBBB!important;
  1912. }
  1913. }
  1914. }
  1915. }
  1916. .layout-data-max-big-null-box {
  1917. height: 400px;
  1918. position: relative;
  1919. overflow: hidden;
  1920. img {
  1921. position: absolute;
  1922. top: 50%;
  1923. left: 50%;
  1924. margin-left: -71px;
  1925. margin-top: -71px;
  1926. width: 142px;
  1927. height: 142px;
  1928. }
  1929. div {
  1930. margin-top: 300px;
  1931. height: 30px;
  1932. display: flex;
  1933. p:nth-child(1) {
  1934. flex: 1;
  1935. }
  1936. p:nth-child(2) {
  1937. margin-right: 20px;
  1938. color: #333;
  1939. font-size: 14px;
  1940. }
  1941. p:nth-child(3) {
  1942. color: #0183FA;
  1943. font-size: 14px;
  1944. cursor: pointer;
  1945. }
  1946. p:nth-child(4) {
  1947. flex: 1;
  1948. }
  1949. }
  1950. }
  1951. .position-button-p {
  1952. position: absolute;
  1953. right: 12px;
  1954. top: 13px;
  1955. width: 100px;
  1956. line-height: 40px;
  1957. font-size: 14px;
  1958. color: #fff;
  1959. background: #0045AF;
  1960. border-radius: 6px;
  1961. text-align: center;
  1962. cursor: pointer;
  1963. }
  1964. }
  1965. }
  1966. </style>